Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 114.8 kB / 17.74 MB, free: 5.344 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.001199/0.001199, allocations: 180.5 kB / 18.67 MB, free: 4.426 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.347/1.347, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1778/0.1778, allocations: 38.04 MB / 330.6 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 64.08 kB / 458.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3084, allocations: 58.06 MB / 0.5048 GB, free: 7.723 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.00616/0.3146, allocations: 5.971 MB / 0.5106 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002569/0.3172, allocations: 1.548 MB / 0.5121 GB, free: 2.512 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003712/0.3176, allocations: 23.22 kB / 0.5121 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004641/0.3181, allocations: 142.8 kB / 0.5123 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007624/0.3189, allocations: 366.2 kB / 0.5126 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007107/0.3196, allocations: 309.1 kB / 0.5129 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001373/0.321, allocations: 1.344 MB / 0.5142 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004999/0.3215, allocations: 377.3 kB / 0.5146 GB, free: 1.305 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000904/0.3224, allocations: 0.5465 MB / 0.5151 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007391/0.3232, allocations: 0.546 MB / 0.5156 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001623/0.3233, allocations: 92.28 kB / 0.5157 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.3235, allocations: 90.88 kB / 0.5158 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003505/0.3239, allocations: 346.6 kB / 0.5162 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003808/0.3243, allocations: 409 kB / 0.5165 GB, free: 488 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001248/0.3255, allocations: 1.06 MB / 0.5176 GB, free: 92 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3255, allocations: 0 / 0.5176 GB, free: 92 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3255, allocations: 0.5 kB / 0.5176 GB, free: 92 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.923e-05/0.3256, allocations: 0.625 kB / 0.5176 GB, free: 92 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002884/0.3285, allocations: 1.199 MB / 0.5187 GB, free: 15.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.3285, allocations: 14.11 kB / 0.5188 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002098/0.3287, allocations: 82.53 kB / 0.5188 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001457/0.3302, allocations: 0.6604 MB / 0.5195 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000427/0.3306, allocations: 336.4 kB / 0.5198 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.3308, allocations: 59.5 kB / 0.5199 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002233/0.333, allocations: 1.045 MB / 0.5209 GB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.3331, allocations: 4.938 kB / 0.5209 GB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.242e-05/0.3331, allocations: 22.36 kB / 0.5209 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.3332, allocations: 14.25 kB / 0.5209 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002702/0.3359, allocations: 1.093 MB / 0.522 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005333/0.3412, allocations: 3.201 MB / 0.5251 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002116/0.3434, allocations: 0.7496 MB / 0.5258 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/0.3447, allocations: 0.5353 MB / 0.5264 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.208e-05/0.3448, allocations: 5.125 kB / 0.5264 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001467/0.3462, allocations: 0.6288 MB / 0.527 GB, free: 11.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.985e-06/0.3462, allocations: 1.438 kB / 0.527 GB, free: 11.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003774/0.35, allocations: 1.364 MB / 0.5283 GB, free: 10.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.895e-05/0.3501, allocations: 151.2 kB / 0.5285 GB, free: 10.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004535/0.3506, allocations: 386.6 kB / 0.5288 GB, free: 10.15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.285e-05/0.3507, allocations: 38.92 kB / 0.5289 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002328/0.3509, allocations: 298.1 kB / 0.5292 GB, free: 9.844 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.3511, allocations: 163.7 kB / 0.5293 GB, free: 9.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002151/0.3513, allocations: 118 kB / 0.5294 GB, free: 9.633 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.3515, allocations: 358.8 kB / 0.5298 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009742/0.3524, allocations: 456.8 kB / 0.5302 GB, free: 9.066 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/0.3535, allocations: 0.5575 MB / 0.5307 GB, free: 8.715 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001854/0.3554, allocations: 0.8841 MB / 0.5316 GB, free: 8.191 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.3554, allocations: 1.094 kB / 0.5316 GB, free: 8.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002327/0.3577, allocations: 1.083 MB / 0.5327 GB, free: 7.633 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.129e-05/0.3578, allocations: 51.84 kB / 0.5327 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.3578, allocations: 2.969 kB / 0.5327 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.3579, allocations: 5.219 kB / 0.5327 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005253/0.3631, allocations: 1.111 MB / 0.5338 GB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007561/0.3707, allocations: 4.697 MB / 0.5384 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008555/0.3716, allocations: 115.2 kB / 0.5385 GB, free: 3.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.663e-05/0.3717, allocations: 38.62 kB / 0.5385 GB, free: 3.172 MB / 398.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: 14 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004509/0.3722, allocations: 244.7 kB / 0.5388 GB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.3723, allocations: 55.44 kB / 0.5388 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00257/0.3749, allocations: 0.9836 MB / 0.5398 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.3749, allocations: 5.969 kB / 0.5398 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.3749, allocations: 1.062 kB / 0.5398 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.3749, allocations: 5.078 kB / 0.5398 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004028/0.3789, allocations: 2.13 MB / 0.5419 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/0.379, allocations: 2.562 kB / 0.5419 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006412/0.3854, allocations: 1.29 MB / 0.5431 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.414e-05/0.3854, allocations: 4 kB / 0.5432 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001264/0.3856, allocations: 19.92 kB / 0.5432 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.115e-06/0.3856, allocations: 4 kB / 0.5432 GB, free: 436 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.3856, allocations: 4 kB / 0.5432 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003905/0.3895, allocations: 1.701 MB / 0.5448 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004045/0.3899, allocations: 208.3 kB / 0.545 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.3901, allocations: 27.98 kB / 0.5451 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006732/0.3907, allocations: 87.88 kB / 0.5451 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002256/0.391, allocations: 103.7 kB / 0.5452 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.604e-05/0.391, allocations: 12 kB / 0.5453 GB, free: 14.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003156/0.3913, allocations: 275.1 kB / 0.5455 GB, free: 13.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3914, allocations: 0 / 0.5455 GB, free: 13.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007128/0.3921, allocations: 171.7 kB / 0.5457 GB, free: 13.79 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001857/0.3923, allocations: 131.1 kB / 0.5458 GB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006971/0.3992, allocations: 2.078 MB / 0.5478 GB, free: 11.56 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.3993, allocations: 0 / 0.5478 GB, free: 11.56 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003196/0.4025, allocations: 0.9331 MB / 0.5488 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008858/0.4034, allocations: 143.9 kB / 0.5489 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003618/0.407, allocations: 1.635 MB / 0.5505 GB, free: 8.805 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005102/0.4076, allocations: 0.9251 MB / 0.5514 GB, free: 7.852 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002674/0.4078, allocations: 51.42 kB / 0.5514 GB, free: 7.801 MB / 414.1 MB Notification: Performance of SimCode: time 8.91e-07/0.4078, allocations: 0 / 0.5514 GB, free: 7.801 MB / 414.1 MB Notification: Performance of Templates: time 0.01553/0.4234, allocations: 11.45 MB / 0.5626 GB, free: 12.39 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches