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: translateModel(PowerSystems.Examples.AC3ph.Elementary.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter1.i.1.|meter1.i.2.|meter1.i.3.|meter1.p.1.|meter1.p.2.|meter1.p.3.|meter1.v.1.|meter1.v.2.|meter1.v.3.|meter2.i.1.|meter2.i.2.|meter2.i.3.|meter2.p.1.|meter2.p.2.|meter2.p.3.|meter2.v.1.|meter2.v.2.|meter2.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer") translateModel(PowerSystems.Examples.AC3ph.Elementary.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter1.i.1.|meter1.i.2.|meter1.i.3.|meter1.p.1.|meter1.p.2.|meter1.p.3.|meter1.v.1.|meter1.v.2.|meter1.v.3.|meter2.i.1.|meter2.i.2.|meter2.i.3.|meter2.p.1.|meter2.p.2.|meter2.p.3.|meter2.v.1.|meter2.v.2.|meter2.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 110 kB / 16.63 MB, free: 6.816 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.001648/0.001648, allocations: 189.8 kB / 17.55 MB, free: 5.949 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.398/1.398, allocations: 222.9 MB / 241.2 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1748/0.1748, allocations: 38.05 MB / 329.4 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 60.52 kB / 398.3 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1055, allocations: 58.07 MB / 456.4 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Transformer): time 0.008455/0.114, allocations: 7.572 MB / 463.9 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004954/0.119, allocations: 2.73 MB / 466.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007734/0.1198, allocations: 47.69 kB / 466.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001668/0.1215, allocations: 0.5798 MB / 467.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001606/0.1231, allocations: 0.6306 MB / 467.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.1242, allocations: 403.3 kB / 468.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001418/0.1257, allocations: 1.38 MB / 469.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007055/0.1264, allocations: 0.4999 MB / 470.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008353/0.1272, allocations: 0.5759 MB / 470.8 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001141/0.1284, allocations: 0.8568 MB / 471.6 MB, free: 9.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001256/0.1285, allocations: 76 kB / 471.7 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005433/0.1291, allocations: 271.6 kB / 472 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000519/0.1296, allocations: 0.53 MB / 472.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000533/0.1302, allocations: 0.5247 MB / 473 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001404/0.1316, allocations: 1.308 MB / 474.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.1316, allocations: 0 / 474.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1316, allocations: 0 / 474.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.308e-05/0.1316, allocations: 0 / 474.3 MB, free: 6.379 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.002339/0.134, allocations: 1.33 MB / 475.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.134, allocations: 19.88 kB / 475.7 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001036/0.1351, allocations: 207.4 kB / 475.9 MB, free: 4.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.1361, allocations: 0.6667 MB / 476.5 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.364e-05/0.1362, allocations: 66.36 kB / 476.6 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002039/0.1364, allocations: 96.11 kB / 476.7 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001871/0.1383, allocations: 1.388 MB / 478.1 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.146e-05/0.1383, allocations: 11.84 kB / 478.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.43e-05/0.1384, allocations: 39.98 kB / 478.1 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002535/0.1387, allocations: 117.9 kB / 478.3 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.1403, allocations: 1.097 MB / 479.4 MB, free: 1.148 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.00664/0.147, allocations: 5.958 MB / 485.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.148, allocations: 0.7138 MB / 486 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004683/0.1485, allocations: 315.3 kB / 486.3 MB, free: 9.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.927e-05/0.1485, allocations: 12.56 kB / 486.3 MB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006706/0.1492, allocations: 472.6 kB / 486.8 MB, free: 9.312 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.514e-06/0.1492, allocations: 3.938 kB / 486.8 MB, free: 9.309 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.003325/0.1526, allocations: 2.152 MB / 489 MB, free: 7.082 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.942e-05/0.1527, allocations: 170.9 kB / 489.1 MB, free: 6.879 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007056/0.1534, allocations: 0.6366 MB / 489.8 MB, free: 6.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.88e-05/0.1534, allocations: 41.69 kB / 489.8 MB, free: 6.184 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003793/0.1538, allocations: 0.5211 MB / 490.3 MB, free: 5.652 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.154, allocations: 232.8 kB / 490.6 MB, free: 5.422 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002565/0.1543, allocations: 202.7 kB / 490.7 MB, free: 5.219 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.1544, allocations: 394.7 kB / 491.1 MB, free: 4.824 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004964/0.1549, allocations: 338.4 kB / 491.5 MB, free: 4.492 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007834/0.1557, allocations: 0.7776 MB / 492.2 MB, free: 3.516 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.1572, allocations: 1.244 MB / 493.5 MB, free: 2.055 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.1572, allocations: 4 kB / 493.5 MB, free: 2.051 MB / 366.1 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002349/0.1595, allocations: 1.438 MB / 494.9 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.069e-05/0.1596, allocations: 41.64 kB / 495 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001421/0.161, allocations: 0.7906 MB / 495.8 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007073/0.1617, allocations: 252.8 kB / 496 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006383/0.1624, allocations: 215.6 kB / 496.2 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004448/0.1668, allocations: 4.371 MB / 0.4889 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006574/0.1675, allocations: 59.88 kB / 0.4889 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.149e-05/0.1676, allocations: 59.98 kB / 0.489 GB, free: 10.51 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.0005885/0.1682, allocations: 403.7 kB / 0.4894 GB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.1683, allocations: 79 kB / 0.4894 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001294/0.1696, allocations: 0.8554 MB / 0.4903 GB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.1697, allocations: 12.03 kB / 0.4903 GB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.1697, allocations: 4 kB / 0.4903 GB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.1697, allocations: 0 / 0.4903 GB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00248/0.1722, allocations: 1.763 MB / 0.492 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.1722, allocations: 4.156 kB / 0.492 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006653/0.1728, allocations: 151.8 kB / 0.4922 GB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.792e-06/0.1729, allocations: 4 kB / 0.4922 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.043e-05/0.1729, allocations: 23.98 kB / 0.4922 GB, free: 7.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.1729, allocations: 4 kB / 0.4922 GB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1729, allocations: 0 / 0.4922 GB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002547/0.1755, allocations: 1.305 MB / 0.4935 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004016/0.1759, allocations: 196.2 kB / 0.4936 GB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.1761, allocations: 19.98 kB / 0.4937 GB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005149/0.1766, allocations: 31.97 kB / 0.4937 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.1767, allocations: 52.39 kB / 0.4937 GB, free: 5.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.478e-05/0.1768, allocations: 47.89 kB / 0.4938 GB, free: 5.398 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004658/0.1773, allocations: 427 kB / 0.4942 GB, free: 4.988 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1773, allocations: 0 / 0.4942 GB, free: 4.988 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009462/0.1782, allocations: 232 kB / 0.4944 GB, free: 4.762 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.0001718/0.1784, allocations: 121.6 kB / 0.4945 GB, free: 4.641 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002223/0.1806, allocations: 1.421 MB / 0.4959 GB, free: 3.184 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1806, allocations: 0 / 0.4959 GB, free: 3.184 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005423/0.1812, allocations: 470.9 kB / 0.4964 GB, free: 2.715 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007218/0.1819, allocations: 135 kB / 0.4965 GB, free: 2.582 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003187/0.1851, allocations: 2.392 MB / 0.4988 GB, free: 148 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008897/0.186, allocations: 1.111 MB / 0.4999 GB, free: 15.01 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007347/0.1868, allocations: 286.4 kB / 0.5002 GB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001663/0.1869, allocations: 63.42 kB / 0.5003 GB, free: 14.66 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.187, allocations: 0 / 0.5003 GB, free: 14.66 MB / 398.1 MB Notification: Performance of Templates: time 0.01515/0.2021, allocations: 8.462 MB / 0.5085 GB, free: 6.254 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Transformer.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches