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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001814/0.001814, allocations: 104 kB / 16.92 MB, free: 5.793 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.00152/0.00152, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.375/1.375, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1829/0.1829, allocations: 38.04 MB / 329.7 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 63.34 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0928/0.09409, allocations: 58.06 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.008997/0.1031, allocations: 6.491 MB / 463.5 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004102/0.1073, allocations: 2.446 MB / 465.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004526/0.1077, allocations: 23.88 kB / 465.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.109, allocations: 437.9 kB / 466.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001296/0.1103, allocations: 0.5872 MB / 466.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.1114, allocations: 499.1 kB / 467.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00199/0.1134, allocations: 1.953 MB / 469.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001161/0.1146, allocations: 0.8571 MB / 470.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00118/0.1158, allocations: 0.7635 MB / 471 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001509/0.1173, allocations: 0.9663 MB / 472 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004089/0.1177, allocations: 160 kB / 472.1 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001237/0.1189, allocations: 0.6865 MB / 472.8 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000728/0.1197, allocations: 0.6471 MB / 473.5 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009372/0.1206, allocations: 0.6653 MB / 474.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002084/0.1227, allocations: 2.026 MB / 476.2 MB, free: 4.715 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1227, allocations: 0 / 476.2 MB, free: 4.715 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1228, allocations: 0 / 476.2 MB, free: 4.715 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.249e-05/0.1228, allocations: 0 / 476.2 MB, free: 4.715 MB / 350.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.005751/0.1286, allocations: 1.9 MB / 478.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.1286, allocations: 19.88 kB / 478.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005009/0.1291, allocations: 168.3 kB / 478.2 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001005/0.1301, allocations: 159.6 kB / 478.4 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002338/0.1325, allocations: 0.9322 MB / 479.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007291/0.1332, allocations: 0.5065 MB / 479.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003525/0.1336, allocations: 95.98 kB / 479.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004486/0.1381, allocations: 2.011 MB / 481.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.646e-05/0.1382, allocations: 7.938 kB / 481.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001591/0.1383, allocations: 36 kB / 482 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000235/0.1386, allocations: 93.88 kB / 482.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005702/0.1443, allocations: 2.24 MB / 484.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009946/0.1543, allocations: 5.695 MB / 490 MB, free: 6.504 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004807/0.1591, allocations: 1.785 MB / 491.8 MB, free: 4.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002841/0.162, allocations: 1.148 MB / 492.9 MB, free: 3.523 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001169/0.1621, allocations: 13 kB / 493 MB, free: 3.512 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003303/0.1654, allocations: 1.399 MB / 494.4 MB, free: 2.094 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 4.739e-06/0.1655, allocations: 0 / 494.4 MB, free: 2.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.01396/0.1794, allocations: 5.614 MB / 500 MB, free: 12.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.642e-05/0.1795, allocations: 102.1 kB / 0.4883 GB, free: 12.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006205/0.1802, allocations: 0.4901 MB / 0.4888 GB, free: 11.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001287/0.1803, allocations: 61.69 kB / 0.4889 GB, free: 11.74 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002915/0.1806, allocations: 360.7 kB / 0.4892 GB, free: 11.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003806/0.181, allocations: 414.1 kB / 0.4896 GB, free: 10.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004263/0.1814, allocations: 226.8 kB / 0.4898 GB, free: 10.74 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.1816, allocations: 394.8 kB / 0.4902 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00201/0.1836, allocations: 1.025 MB / 0.4912 GB, free: 9.324 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002092/0.1857, allocations: 1.184 MB / 0.4924 GB, free: 8.098 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003862/0.1896, allocations: 2.036 MB / 0.4944 GB, free: 6.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.1896, allocations: 0 / 0.4944 GB, free: 6.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01103/0.2006, allocations: 3.895 MB / 0.4982 GB, free: 2.105 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.172e-05/0.2007, allocations: 63.86 kB / 0.4982 GB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.2008, allocations: 7.984 kB / 0.4982 GB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.217/0.4177, allocations: 2.07 MB / 0.5003 GB, free: 56.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/0.4189, allocations: 189.8 kB / 0.5004 GB, free: 56.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02847/0.4474, allocations: 11.31 MB / 0.5115 GB, free: 53.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001497/0.449, allocations: 163.6 kB / 0.5116 GB, free: 53.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002765/0.4493, allocations: 78.88 kB / 0.5117 GB, free: 53.35 MB / 382.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.0007177/0.45, allocations: 377.6 kB / 0.5121 GB, free: 53.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002766/0.4503, allocations: 87.5 kB / 0.5122 GB, free: 53.13 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005623/0.4559, allocations: 2.353 MB / 0.5145 GB, free: 52.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.175e-05/0.456, allocations: 30.42 kB / 0.5145 GB, free: 52.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.456, allocations: 1.406 kB / 0.5145 GB, free: 52.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.456, allocations: 6.516 kB / 0.5145 GB, free: 52.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007891/0.4639, allocations: 4.117 MB / 0.5185 GB, free: 50.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.4639, allocations: 3.969 kB / 0.5185 GB, free: 50.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01065/0.4746, allocations: 2.018 MB / 0.5205 GB, free: 49.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.655e-05/0.4746, allocations: 7.844 kB / 0.5205 GB, free: 49.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001433/0.4747, allocations: 39.44 kB / 0.5205 GB, free: 49.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.106e-06/0.4748, allocations: 10.03 kB / 0.5205 GB, free: 49.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.4748, allocations: 2.531 kB / 0.5205 GB, free: 49.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007231/0.482, allocations: 3.859 MB / 0.5243 GB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004713/0.4825, allocations: 339.5 kB / 0.5246 GB, free: 47.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002168/0.4827, allocations: 83.94 kB / 0.5247 GB, free: 47.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.484, allocations: 191.7 kB / 0.5249 GB, free: 47.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003461/0.4844, allocations: 192.7 kB / 0.5251 GB, free: 46.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.743e-05/0.4845, allocations: 43.91 kB / 0.5251 GB, free: 46.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003241/0.4848, allocations: 347 kB / 0.5255 GB, free: 46.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4848, allocations: 0 / 0.5255 GB, free: 46.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009639/0.4858, allocations: 351.7 kB / 0.5258 GB, free: 46.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.007292/0.4931, allocations: 4.536 MB / 0.5302 GB, free: 41.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006765/0.4999, allocations: 3.765 MB / 0.5339 GB, free: 37.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4999, allocations: 4.25 kB / 0.5339 GB, free: 37.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005668/0.5056, allocations: 1.93 MB / 0.5358 GB, free: 35.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009787/0.5066, allocations: 174.8 kB / 0.536 GB, free: 35.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03017/0.5367, allocations: 15.81 MB / 0.5514 GB, free: 19.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006026/0.5374, allocations: 1.146 MB / 0.5525 GB, free: 18.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001039/0.5384, allocations: 324.7 kB / 0.5528 GB, free: 18.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006222/0.5391, allocations: 343.3 kB / 0.5532 GB, free: 17.84 MB / 382.1 MB Notification: Performance of SimCode: time 6.72e-07/0.5391, allocations: 0 / 0.5532 GB, free: 17.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05589/0.595, allocations: 32.25 MB / 0.5846 GB, free: 1.852 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/12.01, allocations: 3.938 kB / 0.5846 GB, free: 1.848 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_res.csv","/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