Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) 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.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 112.7 kB / 17.75 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 183 kB / 18.68 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1775/0.1775, allocations: 38.03 MB / 330.6 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 67.91 kB / 458.8 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2791, allocations: 58.06 MB / 0.5048 GB, free: 8.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.006513/0.2856, allocations: 6.494 MB / 0.5111 GB, free: 3.551 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003218/0.2889, allocations: 2.439 MB / 0.5135 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002987/0.2892, allocations: 28.31 kB / 0.5135 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001081/0.2903, allocations: 434.9 kB / 0.5139 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001073/0.2913, allocations: 0.5959 MB / 0.5145 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009348/0.2923, allocations: 497.7 kB / 0.515 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001674/0.294, allocations: 1.963 MB / 0.5169 GB, free: 224 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001054/0.295, allocations: 0.8572 MB / 0.5177 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001183/0.2962, allocations: 0.7858 MB / 0.5185 GB, free: 15.51 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001336/0.2976, allocations: 0.974 MB / 0.5195 GB, free: 15.17 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002345/0.2978, allocations: 159.8 kB / 0.5196 GB, free: 15.17 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001028/0.2989, allocations: 0.6465 MB / 0.5202 GB, free: 15.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006989/0.2996, allocations: 0.6512 MB / 0.5209 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007458/0.3003, allocations: 0.668 MB / 0.5215 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002128/0.3025, allocations: 2.036 MB / 0.5235 GB, free: 13.69 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3025, allocations: 5.469 kB / 0.5235 GB, free: 13.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3025, allocations: 0 / 0.5235 GB, free: 13.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.968e-05/0.3025, allocations: 0 / 0.5235 GB, free: 13.68 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.004642/0.3072, allocations: 1.903 MB / 0.5254 GB, free: 12.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.3072, allocations: 13.39 kB / 0.5254 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007345/0.308, allocations: 164.6 kB / 0.5256 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002135/0.3101, allocations: 0.9732 MB / 0.5265 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006326/0.3108, allocations: 0.4933 MB / 0.527 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002864/0.3111, allocations: 108.2 kB / 0.5271 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004102/0.3152, allocations: 2.015 MB / 0.5291 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.844e-05/0.3152, allocations: 5.875 kB / 0.5291 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/0.3153, allocations: 36.39 kB / 0.5291 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000209/0.3156, allocations: 92.22 kB / 0.5292 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004909/0.3205, allocations: 2.24 MB / 0.5314 GB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009419/0.3299, allocations: 5.657 MB / 0.5369 GB, free: 5.211 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004816/0.3348, allocations: 1.8 MB / 0.5387 GB, free: 4.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002701/0.3375, allocations: 1.153 MB / 0.5398 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001029/0.3376, allocations: 15.36 kB / 0.5398 GB, free: 3.652 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003062/0.3407, allocations: 1.388 MB / 0.5412 GB, free: 2.859 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 4.108e-06/0.3407, allocations: 0 / 0.5412 GB, free: 2.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.01411/0.3548, allocations: 5.626 MB / 0.5466 GB, free: 13.4 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.842e-05/0.3549, allocations: 102.1 kB / 0.5467 GB, free: 13.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005976/0.3555, allocations: 497.9 kB / 0.5472 GB, free: 12.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001267/0.3557, allocations: 57.69 kB / 0.5473 GB, free: 12.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002966/0.356, allocations: 368.5 kB / 0.5476 GB, free: 12.36 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003628/0.3563, allocations: 422 kB / 0.548 GB, free: 11.95 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004387/0.3568, allocations: 222.8 kB / 0.5482 GB, free: 11.72 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.357, allocations: 394.8 kB / 0.5486 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002099/0.3591, allocations: 1.029 MB / 0.5496 GB, free: 10.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002159/0.3612, allocations: 1.176 MB / 0.5508 GB, free: 9.082 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003964/0.3652, allocations: 2.043 MB / 0.5528 GB, free: 6.992 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3652, allocations: 4 kB / 0.5528 GB, free: 6.988 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01142/0.3766, allocations: 3.899 MB / 0.5566 GB, free: 3.07 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.957e-05/0.3768, allocations: 61.67 kB / 0.5566 GB, free: 3.004 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.3768, allocations: 4 kB / 0.5566 GB, free: 3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006075/0.3829, allocations: 2.063 MB / 0.5587 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.3839, allocations: 195.7 kB / 0.5588 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02637/0.4103, allocations: 11.3 MB / 0.5699 GB, free: 5.297 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/0.4119, allocations: 159.8 kB / 0.57 GB, free: 5.141 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002019/0.4121, allocations: 71.94 kB / 0.5701 GB, free: 5.07 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0007206/0.4128, allocations: 385.6 kB / 0.5705 GB, free: 4.684 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002301/0.4131, allocations: 79 kB / 0.5705 GB, free: 4.605 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005719/0.4188, allocations: 2.369 MB / 0.5729 GB, free: 2.227 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.4188, allocations: 7.984 kB / 0.5729 GB, free: 2.219 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.4188, allocations: 0 / 0.5729 GB, free: 2.219 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006416/0.4195, allocations: 336 kB / 0.5732 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002532/0.4197, allocations: 83.95 kB / 0.5733 GB, free: 1.789 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.4211, allocations: 191.7 kB / 0.5734 GB, free: 1.602 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004248/0.4215, allocations: 192.6 kB / 0.5736 GB, free: 1.414 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0153/0.4368, allocations: 4.31 MB / 0.5778 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.008384/0.4452, allocations: 3.897 MB / 0.5816 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002624/0.4479, allocations: 1.218 MB / 0.5828 GB, free: 7.945 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000443/0.4484, allocations: 346.8 kB / 0.5832 GB, free: 7.605 MB / 446.1 MB Notification: Performance of Backend: time 4.61e-07/0.4484, allocations: 0 / 0.5832 GB, free: 7.605 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005351/0.4537, allocations: 2.173 MB / 0.5853 GB, free: 5.398 MB / 446.1 MB Notification: Performance of SimCode: time 0.003553/0.4573, allocations: 2.627 MB / 0.5879 GB, free: 2.719 MB / 446.1 MB Notification: Performance of Templates: time 0.03897/0.4963, allocations: 28.41 MB / 0.6156 GB, free: 6.426 MB / 478.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches