Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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.Chopper,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",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.001368/0.001368, allocations: 108 kB / 16.92 MB, free: 6.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.001391/0.001391, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.414/1.414, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1811/0.1811, allocations: 38.04 MB / 329.7 MB, free: 8.879 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002417/0.002417, allocations: 58.36 kB / 398.9 MB, free: 34.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.14, allocations: 58.06 MB / 457 MB, free: 8.004 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.008328/0.1483, allocations: 6.589 MB / 463.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002775/0.1511, allocations: 1.749 MB / 465.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004644/0.1516, allocations: 23.88 kB / 465.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007304/0.1524, allocations: 226.4 kB / 465.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009867/0.1534, allocations: 381.9 kB / 465.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005937/0.154, allocations: 235.6 kB / 466.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001468/0.1555, allocations: 1.059 MB / 467.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007313/0.1562, allocations: 0.5022 MB / 467.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009037/0.1572, allocations: 478.2 kB / 468.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008589/0.158, allocations: 490.3 kB / 468.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001571/0.1582, allocations: 84 kB / 468.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001984/0.1584, allocations: 88 kB / 468.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002644/0.1587, allocations: 279.3 kB / 469.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005584/0.1592, allocations: 398.3 kB / 469.5 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001079/0.1603, allocations: 1.028 MB / 470.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.1604, allocations: 4 kB / 470.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1604, allocations: 0 / 470.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.179e-05/0.1604, allocations: 0 / 470.5 MB, free: 10.38 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.002186/0.1626, allocations: 1.025 MB / 471.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.1627, allocations: 11.89 kB / 471.6 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00013/0.1628, allocations: 102.7 kB / 471.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.1629, allocations: 76.08 kB / 471.7 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.164, allocations: 0.6252 MB / 472.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.1642, allocations: 113 kB / 472.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.212e-05/0.1643, allocations: 60 kB / 472.5 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.1656, allocations: 0.746 MB / 473.3 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.1656, allocations: 0 / 473.3 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.086e-05/0.1657, allocations: 27.98 kB / 473.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.1657, allocations: 12 kB / 473.3 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.1669, allocations: 0.6089 MB / 473.9 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003147/0.17, allocations: 2.467 MB / 476.4 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008666/0.1709, allocations: 417 kB / 476.8 MB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004033/0.1713, allocations: 199.1 kB / 477 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.226e-05/0.1714, allocations: 4.281 kB / 477 MB, free: 3.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000437/0.1718, allocations: 251.3 kB / 477.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 1.713e-06/0.1718, allocations: 0 / 477.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.003202/0.175, allocations: 0.8784 MB / 478.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.653e-05/0.1751, allocations: 136.5 kB / 478.3 MB, free: 2.289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004084/0.1755, allocations: 401.8 kB / 478.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.1756, allocations: 37.7 kB / 478.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002014/0.1758, allocations: 316.2 kB / 479 MB, free: 1.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.533e-05/0.1759, allocations: 126.2 kB / 479.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.176, allocations: 78.12 kB / 479.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1761, allocations: 350.8 kB / 479.5 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003086/0.1764, allocations: 136.8 kB / 479.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003515/0.1768, allocations: 246 kB / 479.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001524/0.1783, allocations: 0.6672 MB / 480.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.1783, allocations: 3.938 kB / 480.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001043/0.1794, allocations: 0.5169 MB / 481.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.1794, allocations: 10.81 kB / 481.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.1794, allocations: 11.92 kB / 481.1 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004571/0.1799, allocations: 152.7 kB / 481.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002792/0.1802, allocations: 75.91 kB / 481.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003416/0.1836, allocations: 2.261 MB / 483.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003551/0.184, allocations: 55.5 kB / 483.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.346e-05/0.184, allocations: 16 kB / 483.7 MB, free: 12.59 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t1,$PRE.chopper.modulator.t0,chopper.chopper.diode.on,chopper.modulator.t1,chopper.modulator.t0,chopper.modulator.gate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003228/0.1844, allocations: 248.2 kB / 483.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.21e-05/0.1845, allocations: 51.38 kB / 484 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001276/0.1857, allocations: 482.5 kB / 484.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.1858, allocations: 7.984 kB / 484.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1858, allocations: 4 kB / 484.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1858, allocations: 0 / 484.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007864/0.1866, allocations: 0.6862 MB / 485.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.1866, allocations: 0 / 485.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.1868, allocations: 43.98 kB / 485.2 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004314/0.1873, allocations: 148.7 kB / 485.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.729e-05/0.1873, allocations: 8 kB / 485.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003361/0.1907, allocations: 2.24 MB / 487.6 MB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.716e-06/0.1907, allocations: 0 / 487.6 MB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/0.1925, allocations: 0.6998 MB / 488.3 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00027/0.1928, allocations: 148.5 kB / 488.4 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.462e-05/0.1929, allocations: 11.94 kB / 488.4 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.1932, allocations: 19.92 kB / 488.4 MB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.1934, allocations: 39.95 kB / 488.5 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-05/0.1934, allocations: 8 kB / 488.5 MB, free: 7.496 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003318/0.1937, allocations: 283.1 kB / 488.8 MB, free: 7.223 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1937, allocations: 0 / 488.8 MB, free: 7.223 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006384/0.1944, allocations: 163.6 kB / 488.9 MB, free: 7.062 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {(2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001912/0.1963, allocations: 1.259 MB / 490.2 MB, free: 5.758 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.1975, allocations: 0.5337 MB / 490.7 MB, free: 5.211 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.1975, allocations: 4 kB / 490.7 MB, free: 5.207 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005776/0.1981, allocations: 335.2 kB / 491.1 MB, free: 4.867 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007975/0.1989, allocations: 152.5 kB / 491.2 MB, free: 4.719 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007423/0.2064, allocations: 4.613 MB / 495.8 MB, free: 15.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005629/0.207, allocations: 0.9289 MB / 496.7 MB, free: 14.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003322/0.2073, allocations: 84.64 kB / 496.8 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002386/0.2076, allocations: 199.4 kB / 497 MB, free: 14.67 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2076, allocations: 0 / 497 MB, free: 14.67 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03933/0.2469, allocations: 13.04 MB / 0.4981 GB, free: 1.852 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.43, allocations: 0 / 0.4981 GB, free: 1.852 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_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_Chopper.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches