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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_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.001259/0.001258, allocations: 108.5 kB / 16.92 MB, free: 5.895 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.001332/0.001332, allocations: 191.3 kB / 17.85 MB, free: 5.195 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.44/1.44, allocations: 222.9 MB / 241.6 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.187/0.187, allocations: 38.03 MB / 329.7 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 62.42 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.12, allocations: 58.07 MB / 457 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.009711/0.1298, allocations: 5.97 MB / 462.9 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003496/0.1333, allocations: 1.551 MB / 464.5 MB, free: 444 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009716/0.1344, allocations: 27.81 kB / 464.5 MB, free: 416 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001036/0.1354, allocations: 134.9 kB / 464.7 MB, free: 280 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001604/0.1371, allocations: 366.3 kB / 465 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.1382, allocations: 319.3 kB / 465.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001808/0.14, allocations: 1.337 MB / 466.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006209/0.1406, allocations: 372.6 kB / 467 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001302/0.1419, allocations: 0.5179 MB / 467.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001221/0.1432, allocations: 0.553 MB / 468.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003142/0.1435, allocations: 92 kB / 468.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000363/0.1439, allocations: 92 kB / 468.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005243/0.1444, allocations: 343.2 kB / 468.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008001/0.1452, allocations: 410.3 kB / 469 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001361/0.1466, allocations: 1.044 MB / 470.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1466, allocations: 0 / 470.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.849e-06/0.1467, allocations: 3.984 kB / 470.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.423e-05/0.1467, allocations: 3.938 kB / 470.1 MB, free: 10.85 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.003338/0.15, allocations: 1.192 MB / 471.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.1501, allocations: 11.89 kB / 471.3 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002502/0.1504, allocations: 110.7 kB / 471.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002531/0.1506, allocations: 88.09 kB / 471.5 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001447/0.1521, allocations: 0.6237 MB / 472.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004629/0.1526, allocations: 343.2 kB / 472.4 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.1527, allocations: 63.91 kB / 472.5 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002256/0.155, allocations: 1.039 MB / 473.5 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.155, allocations: 4 kB / 473.5 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.409e-05/0.1551, allocations: 24 kB / 473.5 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.1551, allocations: 12 kB / 473.6 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002735/0.1579, allocations: 1.089 MB / 474.6 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00531/0.1632, allocations: 3.221 MB / 477.9 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002302/0.1655, allocations: 0.7455 MB / 478.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/0.1671, allocations: 0.5324 MB / 479.1 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.889e-05/0.1671, allocations: 8.438 kB / 479.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001515/0.1687, allocations: 0.6186 MB / 479.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 3.897e-06/0.1687, allocations: 0 / 479.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004141/0.1728, allocations: 1.367 MB / 481.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.055e-05/0.1729, allocations: 140.5 kB / 481.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000565/0.1735, allocations: 389.9 kB / 481.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.157e-05/0.1736, allocations: 41.7 kB / 481.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000328/0.1739, allocations: 304.2 kB / 482 MB, free: 14.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002155/0.1742, allocations: 157.7 kB / 482.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002524/0.1744, allocations: 114.1 kB / 482.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.1746, allocations: 366.8 kB / 482.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001078/0.1757, allocations: 452.9 kB / 483.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.1768, allocations: 0.5562 MB / 483.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002075/0.1789, allocations: 0.8818 MB / 484.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.029e-05/0.1789, allocations: 4 kB / 484.5 MB, free: 11.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002629/0.1816, allocations: 1.085 MB / 485.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.861e-05/0.1817, allocations: 53.69 kB / 485.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/0.1817, allocations: 4 kB / 485.6 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.545e-05/0.1817, allocations: 4.219 kB / 485.6 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005995/0.1878, allocations: 1.108 MB / 486.8 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008404/0.1962, allocations: 4.701 MB / 491.5 MB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008836/0.1971, allocations: 111.5 kB / 491.6 MB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001828/0.1973, allocations: 39.97 kB / 491.6 MB, free: 4.5 MB / 366.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.0006014/0.1979, allocations: 255.3 kB / 491.9 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/0.1981, allocations: 55.27 kB / 491.9 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00282/0.201, allocations: 0.9849 MB / 492.9 MB, free: 3.191 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.201, allocations: 12 kB / 492.9 MB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.201, allocations: 0 / 492.9 MB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.201, allocations: 3.984 kB / 492.9 MB, free: 3.176 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004547/0.2056, allocations: 2.131 MB / 495 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.2056, allocations: 0 / 495 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007282/0.2129, allocations: 1.276 MB / 496.3 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.67e-05/0.2129, allocations: 4 kB / 496.3 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001396/0.2131, allocations: 19.98 kB / 496.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.677e-06/0.2131, allocations: 7.938 kB / 496.3 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.2131, allocations: 3.938 kB / 496.4 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00438/0.2175, allocations: 1.695 MB / 498 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004507/0.218, allocations: 200.4 kB / 498.2 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001929/0.2182, allocations: 31.98 kB / 498.3 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000844/0.219, allocations: 87.88 kB / 498.4 MB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000274/0.2193, allocations: 95.8 kB / 498.5 MB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.866e-05/0.2194, allocations: 23.98 kB / 498.5 MB, free: 13.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004642/0.2199, allocations: 267.1 kB / 498.7 MB, free: 13.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2199, allocations: 4 kB / 498.7 MB, free: 13.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009547/0.2209, allocations: 179.6 kB / 498.9 MB, free: 13.02 MB / 382.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.004748/0.2256, allocations: 2.263 MB / 0.4894 GB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00838/0.234, allocations: 2.168 MB / 0.4915 GB, free: 8.527 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.2341, allocations: 7.875 kB / 0.4916 GB, free: 8.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003811/0.2379, allocations: 0.9683 MB / 0.4925 GB, free: 7.551 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.239, allocations: 136.5 kB / 0.4926 GB, free: 7.422 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01322/0.2522, allocations: 6.604 MB / 0.4991 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000742/0.253, allocations: 0.9407 MB / 0.5 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007394/0.2537, allocations: 160.6 kB / 0.5002 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004222/0.2542, allocations: 195.4 kB / 0.5003 GB, free: 15.3 MB / 398.1 MB Notification: Performance of SimCode: time 1.343e-06/0.2542, allocations: 0 / 0.5003 GB, free: 15.3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04998/0.3042, allocations: 13.49 MB / 0.5135 GB, free: 2.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.53, allocations: 15.42 kB / 0.5135 GB, free: 2.008 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_res.csv","/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