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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 114.9 kB / 19.04 MB, free: 3.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001779/0.001779, allocations: 190 kB / 22.21 MB, free: 112 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1771/0.1771, allocations: 38.52 MB / 344.5 MB, free: 2.594 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001955/0.001955, allocations: 63.89 kB / 482.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3329, allocations: 61.24 MB / 0.5306 GB, free: 5.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006701/0.3396, allocations: 6.658 MB / 0.5371 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00221/0.3418, allocations: 1.332 MB / 0.5384 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002508/0.342, allocations: 26.94 kB / 0.5384 GB, free: 15.74 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003525/0.3424, allocations: 130 kB / 0.5385 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009476/0.3433, allocations: 424.2 kB / 0.5389 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004751/0.3438, allocations: 234 kB / 0.5392 GB, free: 15.1 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001157/0.345, allocations: 1.11 MB / 0.5402 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003914/0.3454, allocations: 260.4 kB / 0.5405 GB, free: 14.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000781/0.3461, allocations: 0.5084 MB / 0.541 GB, free: 14.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008048/0.3469, allocations: 0.5537 MB / 0.5415 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.669e-05/0.347, allocations: 68.62 kB / 0.5416 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.3472, allocations: 64.59 kB / 0.5417 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003429/0.3475, allocations: 343.2 kB / 0.542 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004285/0.3479, allocations: 400 kB / 0.5424 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001074/0.349, allocations: 0.9214 MB / 0.5433 GB, free: 12.58 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.349, allocations: 6.266 kB / 0.5433 GB, free: 12.58 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.349, allocations: 0 / 0.5433 GB, free: 12.58 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.349, allocations: 4 kB / 0.5433 GB, free: 12.57 MB / 398.1 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.002199/0.3512, allocations: 1.169 MB / 0.5444 GB, free: 11.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.3513, allocations: 9.188 kB / 0.5444 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001701/0.3514, allocations: 91.73 kB / 0.5445 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.3525, allocations: 0.6182 MB / 0.5451 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001442/0.3527, allocations: 123.4 kB / 0.5452 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.3528, allocations: 63.72 kB / 0.5453 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001631/0.3544, allocations: 0.8627 MB / 0.5461 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.3545, allocations: 1.312 kB / 0.5461 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.892e-05/0.3545, allocations: 21.91 kB / 0.5462 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000119/0.3546, allocations: 41.91 kB / 0.5462 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001271/0.3559, allocations: 0.6268 MB / 0.5468 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004014/0.3599, allocations: 2.75 MB / 0.5495 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001683/0.3616, allocations: 0.8687 MB / 0.5503 GB, free: 7.227 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007795/0.3624, allocations: 300.1 kB / 0.5506 GB, free: 7.074 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.003e-05/0.3624, allocations: 8.766 kB / 0.5506 GB, free: 7.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007104/0.3631, allocations: 350.5 kB / 0.551 GB, free: 6.836 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.265e-06/0.3631, allocations: 0 / 0.551 GB, free: 6.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004556/0.3677, allocations: 1.986 MB / 0.5529 GB, free: 5.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.732e-05/0.3678, allocations: 114.8 kB / 0.553 GB, free: 5.133 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000723/0.3685, allocations: 0.5105 MB / 0.5535 GB, free: 4.613 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.101e-05/0.3686, allocations: 37.7 kB / 0.5536 GB, free: 4.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003343/0.3689, allocations: 368.6 kB / 0.5539 GB, free: 4.203 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/0.369, allocations: 146.8 kB / 0.554 GB, free: 4.059 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001978/0.3692, allocations: 126.1 kB / 0.5542 GB, free: 3.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.3694, allocations: 366.8 kB / 0.5545 GB, free: 3.562 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003894/0.3698, allocations: 221.1 kB / 0.5547 GB, free: 3.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005036/0.3703, allocations: 402 kB / 0.5551 GB, free: 2.879 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008929/0.3712, allocations: 0.6211 MB / 0.5557 GB, free: 2.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3712, allocations: 0 / 0.5557 GB, free: 2.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001404/0.3726, allocations: 0.8984 MB / 0.5566 GB, free: 1.242 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.124e-05/0.3727, allocations: 49.69 kB / 0.5566 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.3727, allocations: 4 kB / 0.5566 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003083/0.373, allocations: 89.66 kB / 0.5567 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000396/0.3734, allocations: 107.8 kB / 0.5568 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002967/0.3764, allocations: 3.271 MB / 0.56 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004296/0.3768, allocations: 31.92 kB / 0.5601 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.664e-05/0.3769, allocations: 39.97 kB / 0.5601 GB, free: 13.36 MB / 414.1 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.0004374/0.3773, allocations: 264.7 kB / 0.5604 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.018e-05/0.3774, allocations: 63.61 kB / 0.5604 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001525/0.3789, allocations: 0.7042 MB / 0.5611 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.3789, allocations: 4 kB / 0.5611 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.3789, allocations: 4 kB / 0.5611 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.379, allocations: 7.922 kB / 0.5611 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002572/0.3815, allocations: 1.536 MB / 0.5626 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.3815, allocations: 4 kB / 0.5626 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003084/0.3818, allocations: 59.89 kB / 0.5627 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003004/0.3821, allocations: 97.69 kB / 0.5628 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.362e-05/0.3822, allocations: 15.98 kB / 0.5628 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00287/0.3851, allocations: 3.255 MB / 0.566 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.3851, allocations: 4 kB / 0.566 GB, free: 6.941 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002173/0.3872, allocations: 1.073 MB / 0.567 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002983/0.3875, allocations: 172.7 kB / 0.5672 GB, free: 5.633 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.3876, allocations: 27.98 kB / 0.5672 GB, free: 5.605 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003824/0.388, allocations: 43.94 kB / 0.5672 GB, free: 5.562 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.392e-05/0.3881, allocations: 32.08 kB / 0.5673 GB, free: 5.531 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.911e-05/0.3881, allocations: 19.98 kB / 0.5673 GB, free: 5.512 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004666/0.3886, allocations: 354.8 kB / 0.5676 GB, free: 5.168 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3886, allocations: 0 / 0.5676 GB, free: 5.168 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007089/0.3893, allocations: 144 kB / 0.5678 GB, free: 5.027 MB / 414.1 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.0002194/0.3895, allocations: 139.1 kB / 0.5679 GB, free: 4.883 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.3911, allocations: 0.8548 MB / 0.5687 GB, free: 3.988 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3911, allocations: 0 / 0.5687 GB, free: 3.988 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009116/0.392, allocations: 489.9 kB / 0.5692 GB, free: 3.484 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008174/0.3929, allocations: 154.8 kB / 0.5694 GB, free: 3.344 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002713/0.3956, allocations: 1.518 MB / 0.5708 GB, free: 1.781 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006657/0.3962, allocations: 0.9682 MB / 0.5718 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003034/0.3965, allocations: 104.9 kB / 0.5719 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.3966, allocations: 43.44 kB / 0.5719 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3966, allocations: 0 / 0.5719 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of Templates: time 0.01538/0.412, allocations: 7.789 MB / 0.5795 GB, free: 8.914 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.174320865422487]