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.001292/0.001292, allocations: 110.5 kB / 17.75 MB, free: 5.305 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.001267/0.001267, allocations: 183 kB / 18.68 MB, free: 4.383 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.34/1.34, 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.1742/0.1742, allocations: 38.05 MB / 330.6 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 67.89 kB / 458.8 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2756, allocations: 58.06 MB / 0.5048 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.006254/0.2819, allocations: 6.484 MB / 0.5111 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0033/0.2852, allocations: 2.443 MB / 0.5135 GB, free: 1.625 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003116/0.2856, allocations: 24.34 kB / 0.5135 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001125/0.2867, allocations: 440.9 kB / 0.5139 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001102/0.2878, allocations: 0.5928 MB / 0.5145 GB, free: 1.051 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.2888, allocations: 496.9 kB / 0.515 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001899/0.2907, allocations: 1.965 MB / 0.5169 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001151/0.2919, allocations: 0.8596 MB / 0.5178 GB, free: 15.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001281/0.2932, allocations: 0.7851 MB / 0.5185 GB, free: 15.26 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001354/0.2946, allocations: 0.9668 MB / 0.5195 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002672/0.2948, allocations: 160.2 kB / 0.5196 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001134/0.296, allocations: 0.6444 MB / 0.5202 GB, free: 14.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007275/0.2967, allocations: 0.6446 MB / 0.5209 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008324/0.2976, allocations: 0.6788 MB / 0.5215 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002312/0.2999, allocations: 2.051 MB / 0.5235 GB, free: 13.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2999, allocations: 0 / 0.5235 GB, free: 13.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2999, allocations: 0 / 0.5235 GB, free: 13.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.2999, allocations: 0 / 0.5235 GB, free: 13.43 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.004791/0.3047, allocations: 1.93 MB / 0.5254 GB, free: 12.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.3048, allocations: 13.08 kB / 0.5254 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007126/0.3055, allocations: 164.9 kB / 0.5256 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002139/0.3077, allocations: 0.9816 MB / 0.5266 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005829/0.3083, allocations: 0.4972 MB / 0.527 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002747/0.3085, allocations: 107.4 kB / 0.5271 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003859/0.3124, allocations: 2.007 MB / 0.5291 GB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.052e-05/0.3125, allocations: 1.781 kB / 0.5291 GB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001356/0.3126, allocations: 35.58 kB / 0.5291 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002064/0.3128, allocations: 91.59 kB / 0.5292 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004664/0.3175, allocations: 2.245 MB / 0.5314 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009001/0.3265, allocations: 5.659 MB / 0.5369 GB, free: 4.965 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004401/0.3309, allocations: 1.797 MB / 0.5387 GB, free: 4.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002377/0.3333, allocations: 1.152 MB / 0.5398 GB, free: 3.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.875e-05/0.3334, allocations: 16.3 kB / 0.5398 GB, free: 3.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002718/0.3362, allocations: 1.392 MB / 0.5412 GB, free: 2.613 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 3.577e-06/0.3362, allocations: 0 / 0.5412 GB, free: 2.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.01282/0.349, allocations: 5.654 MB / 0.5467 GB, free: 13.19 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.124e-05/0.3491, allocations: 102 kB / 0.5468 GB, free: 13.08 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000557/0.3497, allocations: 0.4902 MB / 0.5473 GB, free: 12.58 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001276/0.3498, allocations: 57.69 kB / 0.5474 GB, free: 12.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002837/0.3501, allocations: 377.5 kB / 0.5477 GB, free: 12.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003584/0.3505, allocations: 436.4 kB / 0.5481 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004249/0.3509, allocations: 226.9 kB / 0.5483 GB, free: 11.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.3511, allocations: 390.8 kB / 0.5487 GB, free: 11.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001933/0.353, allocations: 1.025 MB / 0.5497 GB, free: 10.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002034/0.355, allocations: 1.18 MB / 0.5509 GB, free: 8.848 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003785/0.3588, allocations: 2.043 MB / 0.5529 GB, free: 6.758 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3589, allocations: 0 / 0.5529 GB, free: 6.758 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01043/0.3693, allocations: 3.9 MB / 0.5567 GB, free: 2.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.853e-05/0.3694, allocations: 65.92 kB / 0.5567 GB, free: 2.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.3694, allocations: 0 / 0.5567 GB, free: 2.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005734/0.3751, allocations: 2.071 MB / 0.5588 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008435/0.376, allocations: 187.7 kB / 0.5589 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02534/0.4014, allocations: 11.32 MB / 0.57 GB, free: 5.043 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.4028, allocations: 163.8 kB / 0.5701 GB, free: 4.883 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002993/0.4032, allocations: 75.88 kB / 0.5702 GB, free: 4.809 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.0009752/0.4042, allocations: 376.6 kB / 0.5706 GB, free: 4.434 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003317/0.4045, allocations: 87.42 kB / 0.5707 GB, free: 4.348 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005639/0.4101, allocations: 2.361 MB / 0.573 GB, free: 1.977 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.4102, allocations: 3.984 kB / 0.573 GB, free: 1.973 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.4102, allocations: 3.984 kB / 0.573 GB, free: 1.969 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006343/0.4108, allocations: 348.4 kB / 0.5733 GB, free: 1.609 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002586/0.4111, allocations: 87.89 kB / 0.5734 GB, free: 1.523 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.4124, allocations: 195.7 kB / 0.5736 GB, free: 1.332 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004215/0.4128, allocations: 192.6 kB / 0.5738 GB, free: 1.145 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01387/0.4267, allocations: 4.31 MB / 0.578 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00795/0.4346, allocations: 3.897 MB / 0.5818 GB, free: 8.895 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002491/0.4372, allocations: 1.21 MB / 0.583 GB, free: 7.684 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004297/0.4376, allocations: 350.8 kB / 0.5833 GB, free: 7.34 MB / 446.1 MB Notification: Performance of Backend: time 4.51e-07/0.4376, allocations: 0 / 0.5833 GB, free: 7.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005283/0.4429, allocations: 2.169 MB / 0.5854 GB, free: 5.137 MB / 446.1 MB Notification: Performance of SimCode: time 0.003602/0.4465, allocations: 2.667 MB / 0.588 GB, free: 2.418 MB / 446.1 MB Notification: Performance of Templates: time 0.04143/0.488, allocations: 28.4 MB / 0.6158 GB, free: 6.121 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