Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001654/0.001654, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002054/0.002054, allocations: 164.4 kB / 24.82 MB, free: 9.266 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.116/1.116, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.33/0.33, allocations: 29.42 MB / 291.2 MB, free: 2.473 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 370.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.605e-05/3.79e-05, allocations: 2.312 kB / 370.1 MB, free: 10.72 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.01038/0.01042, allocations: 5.474 MB / 375.6 MB, free: 5.215 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.0126, allocations: 1.309 MB / 376.9 MB, free: 3.902 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003012/0.0129, allocations: 35.69 kB / 376.9 MB, free: 3.867 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003235/0.01323, allocations: 123 kB / 377.1 MB, free: 3.746 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007555/0.01398, allocations: 441.4 kB / 377.5 MB, free: 3.312 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003734/0.01436, allocations: 247.5 kB / 377.7 MB, free: 3.07 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008225/0.01518, allocations: 1.121 MB / 378.9 MB, free: 1.945 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003264/0.0155, allocations: 250.2 kB / 379.1 MB, free: 1.703 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006783/0.01618, allocations: 0.7247 MB / 379.8 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005098/0.01669, allocations: 474.7 kB / 380.3 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.58e-05/0.01677, allocations: 64 kB / 380.3 MB, free: 460 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.83e-05/0.01686, allocations: 60 kB / 380.4 MB, free: 400 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002347/0.01709, allocations: 355.1 kB / 380.8 MB, free: 44 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002287/0.01732, allocations: 275.4 kB / 381 MB, free: 15.77 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005706/0.01789, allocations: 0.615 MB / 381.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.0179, allocations: 8 kB / 381.6 MB, free: 15.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.0179, allocations: 0 / 381.6 MB, free: 15.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.01791, allocations: 0 / 381.6 MB, free: 15.15 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001251/0.01916, allocations: 1.149 MB / 382.8 MB, free: 13.95 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.0192, allocations: 15.98 kB / 382.8 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001815/0.01938, allocations: 140.4 kB / 382.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005424/0.01992, allocations: 0.5135 MB / 383.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001319/0.02005, allocations: 220 kB / 383.7 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.04e-05/0.02013, allocations: 64.38 kB / 383.7 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006204/0.02076, allocations: 0.5722 MB / 384.3 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.02077, allocations: 0 / 384.3 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.151e-05/0.02081, allocations: 28 kB / 384.3 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.198e-05/0.02088, allocations: 25.31 kB / 384.4 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002694/0.02115, allocations: 212.7 kB / 384.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002075/0.02323, allocations: 2.676 MB / 387.2 MB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000563/0.02379, allocations: 350.9 kB / 387.6 MB, free: 8.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001924/0.02398, allocations: 139.5 kB / 387.7 MB, free: 8.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.02401, allocations: 12.31 kB / 387.7 MB, free: 8.758 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002424/0.02425, allocations: 217 kB / 388 MB, free: 8.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.543e-06/0.02425, allocations: 0 / 388 MB, free: 8.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001351/0.0256, allocations: 0.7986 MB / 388.7 MB, free: 7.676 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.02565, allocations: 114.8 kB / 388.9 MB, free: 7.539 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003325/0.02599, allocations: 470.3 kB / 389.3 MB, free: 7.059 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.855e-05/0.02602, allocations: 33.7 kB / 389.4 MB, free: 7.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/0.02622, allocations: 431 kB / 389.8 MB, free: 6.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.929e-05/0.02632, allocations: 150.8 kB / 389.9 MB, free: 6.441 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.02644, allocations: 131.8 kB / 390.1 MB, free: 6.305 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002373/0.02668, allocations: 0.5546 MB / 390.6 MB, free: 5.738 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.02679, allocations: 107 kB / 390.7 MB, free: 5.629 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.027, allocations: 353.4 kB / 391.1 MB, free: 5.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003278/0.02733, allocations: 450.2 kB / 391.5 MB, free: 4.641 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.02733, allocations: 4 kB / 391.5 MB, free: 4.637 MB / 362.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006981/0.02803, allocations: 0.5741 MB / 392.1 MB, free: 4.031 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.369e-05/0.02807, allocations: 49.75 kB / 392.1 MB, free: 3.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.02808, allocations: 8 kB / 392.1 MB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001777/0.02826, allocations: 67.31 kB / 392.2 MB, free: 3.895 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.02845, allocations: 99.83 kB / 392.3 MB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001927/0.03038, allocations: 3.733 MB / 396 MB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.03054, allocations: 32.16 kB / 396.1 MB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.826e-05/0.03059, allocations: 31.98 kB / 396.1 MB, free: 15.78 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001452/0.03073, allocations: 208.3 kB / 396.3 MB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.425e-05/0.0308, allocations: 75.56 kB / 396.4 MB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004198/0.03122, allocations: 353.4 kB / 396.7 MB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.03122, allocations: 11.94 kB / 396.7 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.197e-06/0.03122, allocations: 3.938 kB / 396.7 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.03123, allocations: 3.984 kB / 396.7 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008511/0.03208, allocations: 0.9681 MB / 397.7 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.03208, allocations: 7.984 kB / 397.7 MB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001518/0.03224, allocations: 51.92 kB / 397.8 MB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001496/0.03239, allocations: 67.38 kB / 397.8 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.03241, allocations: 11.98 kB / 397.8 MB, free: 13.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00155/0.03396, allocations: 3.729 MB / 401.6 MB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.03396, allocations: 3.938 kB / 401.6 MB, free: 9.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005886/0.03455, allocations: 0.6133 MB / 402.2 MB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.03465, allocations: 83.61 kB / 402.3 MB, free: 9.246 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.806e-05/0.0347, allocations: 27.98 kB / 402.3 MB, free: 9.219 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.03483, allocations: 15.98 kB / 402.3 MB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.777e-05/0.03489, allocations: 31.94 kB / 402.3 MB, free: 9.172 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.981e-05/0.0349, allocations: 15.98 kB / 402.4 MB, free: 9.156 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001609/0.03507, allocations: 279 kB / 402.6 MB, free: 8.887 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03507, allocations: 0 / 402.6 MB, free: 8.887 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004104/0.03548, allocations: 152 kB / 402.8 MB, free: 8.738 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007136/0.03619, allocations: 123.2 kB / 402.9 MB, free: 8.609 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000721/0.03691, allocations: 0.7467 MB / 403.6 MB, free: 7.805 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.03691, allocations: 0 / 403.6 MB, free: 7.805 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004401/0.03735, allocations: 480 kB / 404.1 MB, free: 7.297 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004647/0.03782, allocations: 135.7 kB / 404.2 MB, free: 7.164 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/0.0395, allocations: 1.242 MB / 405.5 MB, free: 5.871 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001256/0.03963, allocations: 193.8 kB / 405.7 MB, free: 5.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001408/0.03977, allocations: 68.66 kB / 405.7 MB, free: 5.594 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003934/0.04016, allocations: 186.1 kB / 405.9 MB, free: 5.41 MB / 378.7 MB Notification: Performance of SimCode: time 1.142e-06/0.04016, allocations: 0 / 405.9 MB, free: 5.41 MB / 378.7 MB Notification: Performance of Templates: time 0.01175/0.05191, allocations: 7.266 MB / 413.2 MB, free: 14.27 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.541643103118986]