Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.001447/0.001447, allocations: 112.3 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.001662/0.001662, 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.44/1.44, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1857/0.1857, allocations: 38.04 MB / 329.7 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 66.03 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1037, allocations: 58.06 MB / 457 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Transformer): time 0.008037/0.1118, allocations: 6.523 MB / 463.5 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004212/0.116, allocations: 2.442 MB / 465.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005719/0.1166, allocations: 23.88 kB / 466 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002012/0.1187, allocations: 0.6096 MB / 466.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001936/0.1206, allocations: 0.6769 MB / 467.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001445/0.1221, allocations: 455 kB / 467.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001882/0.124, allocations: 1.365 MB / 469.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000882/0.1249, allocations: 483.9 kB / 469.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001139/0.126, allocations: 0.5643 MB / 470.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001379/0.1274, allocations: 0.7906 MB / 470.9 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002989/0.1277, allocations: 83.88 kB / 471 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008644/0.1286, allocations: 279.6 kB / 471.2 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008489/0.1295, allocations: 0.5144 MB / 471.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001135/0.1306, allocations: 0.5208 MB / 472.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001976/0.1326, allocations: 1.304 MB / 473.6 MB, free: 7.273 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.1326, allocations: 4 kB / 473.6 MB, free: 7.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.1326, allocations: 0 / 473.6 MB, free: 7.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.21e-05/0.1327, allocations: 0 / 473.6 MB, free: 7.27 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.003581/0.1363, allocations: 1.334 MB / 474.9 MB, free: 5.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.1364, allocations: 15.89 kB / 474.9 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002736/0.1367, allocations: 144.3 kB / 475.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001197/0.1379, allocations: 207.5 kB / 475.3 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001211/0.1391, allocations: 0.6628 MB / 475.9 MB, free: 4.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.025e-05/0.1392, allocations: 66.3 kB / 476 MB, free: 4.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002178/0.1394, allocations: 99.91 kB / 476.1 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.1414, allocations: 1.388 MB / 477.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.496e-05/0.1415, allocations: 7.938 kB / 477.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.291e-05/0.1416, allocations: 35.98 kB / 477.5 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000282/0.1418, allocations: 121.9 kB / 477.7 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001961/0.1438, allocations: 1.093 MB / 478.7 MB, free: 1.898 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00769/0.1515, allocations: 5.969 MB / 484.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.1527, allocations: 0.7054 MB / 485.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004694/0.1532, allocations: 315.3 kB / 485.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.165e-05/0.1532, allocations: 8.547 kB / 485.7 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006617/0.1539, allocations: 480.5 kB / 486.2 MB, free: 10.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 3.256e-06/0.1539, allocations: 0 / 486.2 MB, free: 10.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.003342/0.1573, allocations: 2.148 MB / 488.4 MB, free: 7.836 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.817e-05/0.1574, allocations: 170.8 kB / 488.5 MB, free: 7.633 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007151/0.1581, allocations: 0.6407 MB / 489.2 MB, free: 6.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.869e-05/0.1582, allocations: 37.7 kB / 489.2 MB, free: 6.938 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003869/0.1585, allocations: 0.5288 MB / 489.7 MB, free: 6.398 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001873/0.1587, allocations: 236.8 kB / 490 MB, free: 6.164 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002665/0.159, allocations: 202.7 kB / 490.2 MB, free: 5.961 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.1592, allocations: 390.7 kB / 490.5 MB, free: 5.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005409/0.1598, allocations: 342.3 kB / 490.9 MB, free: 5.234 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008628/0.1606, allocations: 0.7698 MB / 491.6 MB, free: 4.266 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/0.1621, allocations: 1.256 MB / 492.9 MB, free: 2.793 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.1621, allocations: 4 kB / 492.9 MB, free: 2.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002437/0.1645, allocations: 1.43 MB / 494.3 MB, free: 1.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.822e-05/0.1646, allocations: 45.62 kB / 494.4 MB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00139/0.166, allocations: 0.7903 MB / 495.2 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007158/0.1667, allocations: 257.4 kB / 495.4 MB, free: 240 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006502/0.1674, allocations: 215.6 kB / 495.6 MB, free: 24 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004614/0.172, allocations: 4.37 MB / 500 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006629/0.1727, allocations: 51.97 kB / 0.4883 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.1728, allocations: 68.09 kB / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,12,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005298/0.1734, allocations: 403 kB / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.1735, allocations: 79 kB / 0.4889 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001519/0.175, allocations: 0.8593 MB / 0.4897 GB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.175, allocations: 4.062 kB / 0.4897 GB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1751, allocations: 4 kB / 0.4897 GB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.1751, allocations: 11.92 kB / 0.4897 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002568/0.1776, allocations: 1.76 MB / 0.4914 GB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.1777, allocations: 4 kB / 0.4914 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006957/0.1784, allocations: 151.9 kB / 0.4916 GB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/0.1784, allocations: 4 kB / 0.4916 GB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.131e-05/0.1784, allocations: 23.98 kB / 0.4916 GB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.1785, allocations: 4 kB / 0.4916 GB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1785, allocations: 4 kB / 0.4916 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00165/0.1801, allocations: 1.305 MB / 0.4929 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002976/0.1804, allocations: 200.1 kB / 0.4931 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/0.1805, allocations: 16 kB / 0.4931 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000368/0.1809, allocations: 31.97 kB / 0.4931 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.1811, allocations: 48.44 kB / 0.4932 GB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.109e-05/0.1812, allocations: 39.97 kB / 0.4932 GB, free: 6.145 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004504/0.1816, allocations: 423 kB / 0.4936 GB, free: 5.738 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1816, allocations: 3.938 kB / 0.4936 GB, free: 5.734 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008532/0.1825, allocations: 236 kB / 0.4938 GB, free: 5.504 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (trafo.i1[1],trafo.i1[2],trafo.i1[3]) * 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 (64): * Single equations (assignments): 62 * 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.002074/0.1846, allocations: 1.862 MB / 0.4957 GB, free: 3.594 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002547/0.1871, allocations: 1.412 MB / 0.497 GB, free: 2.145 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.1871, allocations: 1.75 kB / 0.497 GB, free: 2.145 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005864/0.1877, allocations: 474.3 kB / 0.4975 GB, free: 1.672 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008428/0.1886, allocations: 135.3 kB / 0.4976 GB, free: 1.539 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0117/0.2003, allocations: 8.255 MB / 0.5057 GB, free: 8.742 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000808/0.2011, allocations: 1.11 MB / 0.5068 GB, free: 7.602 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007746/0.2019, allocations: 294.4 kB / 0.507 GB, free: 7.309 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004328/0.2024, allocations: 327.3 kB / 0.5074 GB, free: 6.988 MB / 398.1 MB Notification: Performance of SimCode: time 1.252e-06/0.2024, allocations: 0 / 0.5074 GB, free: 6.988 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2141/0.4165, allocations: 15.79 MB / 0.5228 GB, free: 71.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.418/9.835, allocations: 5.844 kB / 0.5228 GB, free: 71.01 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Transformer.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Transformer.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches