Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",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.001606/0.001606, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.001876/0.001876, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.386/1.386, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1762/0.1762, allocations: 38.05 MB / 329.7 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002312, allocations: 66.86 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1368, allocations: 58.07 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.01183/0.1487, allocations: 5.502 MB / 462.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003891/0.1527, allocations: 1.371 MB / 463.9 MB, free: 1.059 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003972/0.1531, allocations: 15.88 kB / 463.9 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006375/0.1538, allocations: 131.1 kB / 464 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001386/0.1552, allocations: 382.1 kB / 464.4 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005521/0.1558, allocations: 151.7 kB / 464.5 MB, free: 400 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001212/0.157, allocations: 0.7748 MB / 465.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000469/0.1575, allocations: 217.7 kB / 465.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006701/0.1582, allocations: 342.6 kB / 465.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009896/0.1592, allocations: 410.6 kB / 466.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.1593, allocations: 40 kB / 466.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001558/0.1595, allocations: 40 kB / 466.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003256/0.1598, allocations: 203.3 kB / 466.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004271/0.1603, allocations: 274.6 kB / 466.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008989/0.1612, allocations: 0.5644 MB / 467.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.1612, allocations: 0 / 467.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1612, allocations: 0 / 467.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.121e-05/0.1613, allocations: 0 / 467.4 MB, free: 13.55 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002253/0.1635, allocations: 0.8958 MB / 468.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.1636, allocations: 11.89 kB / 468.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001301/0.1637, allocations: 78.72 kB / 468.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001563/0.1639, allocations: 64.19 kB / 468.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001167/0.1651, allocations: 0.4905 MB / 468.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.911e-05/0.1652, allocations: 29 kB / 468.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.1653, allocations: 43.98 kB / 469 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.1667, allocations: 0.5352 MB / 469.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.1667, allocations: 0 / 469.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.942e-05/0.1668, allocations: 16 kB / 469.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-05/0.1669, allocations: 20.98 kB / 469.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.168, allocations: 391.6 kB / 469.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004123/0.1722, allocations: 1.932 MB / 471.8 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009941/0.1732, allocations: 337.3 kB / 472.2 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005408/0.1737, allocations: 185.7 kB / 472.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-05/0.1738, allocations: 4 kB / 472.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005848/0.1744, allocations: 276.8 kB / 472.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 3.607e-06/0.1744, allocations: 0 / 472.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.003081/0.1775, allocations: 1.191 MB / 473.8 MB, free: 6.695 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.1777, allocations: 166.1 kB / 474 MB, free: 6.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007771/0.1785, allocations: 397.8 kB / 474.4 MB, free: 6.094 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.706e-05/0.1785, allocations: 33.7 kB / 474.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003791/0.1789, allocations: 295.6 kB / 474.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002049/0.1792, allocations: 122.3 kB / 474.8 MB, free: 5.641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002386/0.1794, allocations: 94.28 kB / 474.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002599/0.1797, allocations: 358.8 kB / 475.3 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003798/0.1801, allocations: 129 kB / 475.4 MB, free: 5.059 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005646/0.1807, allocations: 286.1 kB / 475.7 MB, free: 4.703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.1817, allocations: 477.3 kB / 476.1 MB, free: 4.152 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/0.1817, allocations: 4 kB / 476.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001251/0.183, allocations: 0.5214 MB / 476.7 MB, free: 3.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.597e-05/0.1831, allocations: 33.7 kB / 476.7 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.1831, allocations: 4 kB / 476.7 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.975e-05/0.1831, allocations: 12.67 kB / 476.7 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005379/0.1837, allocations: 115.8 kB / 476.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.044e-05/0.1837, allocations: 8 kB / 476.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.184, allocations: 23.98 kB / 476.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.904e-05/0.1841, allocations: 31.92 kB / 476.9 MB, free: 3.383 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003005/0.1844, allocations: 244.2 kB / 477.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.669e-05/0.1845, allocations: 51.38 kB / 477.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007175/0.1852, allocations: 455.2 kB / 477.6 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.403e-06/0.1852, allocations: 8 kB / 477.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.1852, allocations: 7.922 kB / 477.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.1853, allocations: 7.938 kB / 477.6 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001328/0.1866, allocations: 0.9653 MB / 478.6 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.1866, allocations: 4 kB / 478.6 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.1869, allocations: 67.89 kB / 478.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.1869, allocations: 0 / 478.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.187, allocations: 16.03 kB / 478.7 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.187, allocations: 0 / 478.7 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.187, allocations: 0 / 478.7 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008618/0.1878, allocations: 0.7133 MB / 479.4 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.188, allocations: 136.6 kB / 479.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.613e-05/0.1881, allocations: 19.98 kB / 479.6 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002144/0.1883, allocations: 12.06 kB / 479.6 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.986e-05/0.1884, allocations: 23.97 kB / 479.6 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.993e-05/0.1884, allocations: 39.94 kB / 479.6 MB, free: 500 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002491/0.1887, allocations: 271.1 kB / 479.9 MB, free: 232 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1887, allocations: 0 / 479.9 MB, free: 232 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004262/0.1891, allocations: 104 kB / 480 MB, free: 128 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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.001094/0.1902, allocations: 1.258 MB / 481.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006591/0.1909, allocations: 448.2 kB / 481.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1909, allocations: 0 / 481.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000294/0.1912, allocations: 263.6 kB / 481.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006113/0.1918, allocations: 111.5 kB / 482.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004684/0.1965, allocations: 4.16 MB / 486.2 MB, free: 9.613 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/0.197, allocations: 0.8781 MB / 487.1 MB, free: 8.711 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003064/0.1973, allocations: 96.25 kB / 487.2 MB, free: 8.613 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002278/0.1975, allocations: 175.4 kB / 487.4 MB, free: 8.441 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1975, allocations: 0 / 487.4 MB, free: 8.441 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02936/0.2269, allocations: 8.519 MB / 495.9 MB, free: 64 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.973/8.2, allocations: 15.5 kB / 495.9 MB, free: 52 kB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches