Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.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.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter12.i|meter12.p|meter12.v|meter22.i|meter22.p|meter22.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") translateModel(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter12.i|meter12.p|meter12.v|meter22.i|meter22.p|meter22.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001629/0.001629, allocations: 106 kB / 16.62 MB, free: 6.805 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.001779/0.001779, allocations: 193.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.361/1.361, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1759/0.1759, allocations: 38.04 MB / 329.4 MB, free: 8.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002188/0.002188, allocations: 61.81 kB / 398.3 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1166, allocations: 58.06 MB / 456.3 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.01084/0.1275, allocations: 8.954 MB / 465.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00489/0.1325, allocations: 2.201 MB / 467.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001187/0.1337, allocations: 71.56 kB / 467.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008306/0.1346, allocations: 206.8 kB / 467.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001594/0.1362, allocations: 0.5136 MB / 468.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005592/0.1368, allocations: 199.7 kB / 468.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001598/0.1384, allocations: 1.262 MB / 469.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005225/0.1389, allocations: 370.4 kB / 470.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001137/0.1401, allocations: 0.5523 MB / 470.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001372/0.1414, allocations: 0.6853 MB / 471.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002558/0.1417, allocations: 63.94 kB / 471.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003382/0.1421, allocations: 64 kB / 471.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004711/0.1425, allocations: 331.1 kB / 471.8 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008304/0.1434, allocations: 445.7 kB / 472.2 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001763/0.1452, allocations: 0.8992 MB / 473.1 MB, free: 7.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/0.1452, allocations: 0 / 473.1 MB, free: 7.586 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.097e-06/0.1452, allocations: 0 / 473.1 MB, free: 7.586 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.208e-05/0.1453, allocations: 0 / 473.1 MB, free: 7.586 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: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.003207/0.1485, allocations: 1.225 MB / 474.4 MB, free: 6.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.1486, allocations: 11.89 kB / 474.4 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002193/0.1488, allocations: 95.81 kB / 474.5 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.15, allocations: 0.6603 MB / 475.1 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.554e-05/0.1501, allocations: 53.25 kB / 475.2 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.396e-05/0.1502, allocations: 60 kB / 475.2 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.1514, allocations: 0.8137 MB / 476 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.1514, allocations: 0 / 476 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.399e-05/0.1515, allocations: 27.98 kB / 476.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.537e-05/0.1516, allocations: 33.3 kB / 476.1 MB, free: 4.465 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009184/0.1525, allocations: 0.6217 MB / 476.7 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003419/0.1559, allocations: 2.622 MB / 479.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009389/0.1569, allocations: 0.6182 MB / 480 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005994/0.1575, allocations: 368 kB / 480.3 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.122e-05/0.1575, allocations: 16.44 kB / 480.3 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006092/0.1582, allocations: 482.9 kB / 480.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=63): time 2.164e-06/0.1582, allocations: 0 / 480.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.002783/0.161, allocations: 1.985 MB / 482.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/0.1611, allocations: 255.8 kB / 483 MB, free: 13.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006081/0.1617, allocations: 0.5663 MB / 483.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.295e-05/0.1618, allocations: 37.7 kB / 483.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002774/0.1621, allocations: 391.5 kB / 484 MB, free: 12.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001539/0.1622, allocations: 217 kB / 484.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.1624, allocations: 154.5 kB / 484.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1626, allocations: 378.8 kB / 484.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003458/0.1629, allocations: 225.9 kB / 485 MB, free: 11.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000528/0.1635, allocations: 461.9 kB / 485.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008774/0.1644, allocations: 0.7973 MB / 486.2 MB, free: 9.738 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.1644, allocations: 4 kB / 486.2 MB, free: 9.734 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001454/0.1658, allocations: 0.9519 MB / 487.2 MB, free: 8.758 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.417e-05/0.1659, allocations: 73.73 kB / 487.3 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.1659, allocations: 4 kB / 487.3 MB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003956/0.1663, allocations: 117.8 kB / 487.4 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004836/0.1668, allocations: 139.8 kB / 487.5 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003052/0.1699, allocations: 3.232 MB / 490.7 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004331/0.1703, allocations: 35.98 kB / 490.8 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.168e-05/0.1704, allocations: 56.03 kB / 490.8 MB, free: 4.812 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,tapRelay1.cnt_2,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_1,$whenCondition4,$whenCondition3,tapRelay2.cnt_2,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_1,$whenCondition2,$whenCondition1,tapRelay1.tap_2,$PRE.tapRelay1.tap_2,tapRelay1.tap_1,$PRE.tapRelay1.tap_1,tapRelay2.tap_2,$PRE.tapRelay2.tap_2,tapRelay2.tap_1,$PRE.tapRelay2.tap_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 2 * 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 {(1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004361/0.1709, allocations: 346.9 kB / 491.2 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.509e-05/0.171, allocations: 75.06 kB / 491.3 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001067/0.172, allocations: 0.7935 MB / 492 MB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.1721, allocations: 8 kB / 492.1 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.1721, allocations: 8 kB / 492.1 MB, free: 3.543 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.1721, allocations: 3.984 kB / 492.1 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001902/0.174, allocations: 1.539 MB / 493.6 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.174, allocations: 0 / 493.6 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005212/0.1745, allocations: 111.9 kB / 493.7 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.842e-06/0.1745, allocations: 4 kB / 493.7 MB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.358e-05/0.1746, allocations: 28 kB / 493.7 MB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.728e-06/0.1746, allocations: 4 kB / 493.7 MB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1746, allocations: 0 / 493.7 MB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001497/0.1761, allocations: 1.211 MB / 495 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002216/0.1763, allocations: 188.1 kB / 495.1 MB, free: 344 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.377e-05/0.1764, allocations: 12 kB / 495.2 MB, free: 332 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003191/0.1768, allocations: 36.03 kB / 495.2 MB, free: 296 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.1769, allocations: 36.39 kB / 495.2 MB, free: 260 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.258e-05/0.177, allocations: 59.91 kB / 495.3 MB, free: 200 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004326/0.1774, allocations: 391.1 kB / 495.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1774, allocations: 3.938 kB / 495.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000637/0.1781, allocations: 180 kB / 495.8 MB, free: 15.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (trafo1.i1,trafo2.i1) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tapRelay2.tap_1,tapRelay2.tap_2,tapRelay2.cnt_1,tapRelay2.cnt_2,tapRelay1.tap_1,tapRelay1.tap_2,tapRelay1.cnt_1,tapRelay1.cnt_2,system.initime) * Number of discrete states: 12 (tapRelay1.tap_2,tapRelay1.cnt_2,$whenCondition4,tapRelay1.tap_1,tapRelay1.cnt_1,$whenCondition3,tapRelay2.tap_2,tapRelay2.cnt_2,$whenCondition2,tapRelay2.tap_1,tapRelay2.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 2 * 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.0001837/0.1783, allocations: 139 kB / 496 MB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001799/0.1801, allocations: 1.093 MB / 497.1 MB, free: 14.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1801, allocations: 0 / 497.1 MB, free: 14.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005475/0.1806, allocations: 497.2 kB / 497.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007941/0.1814, allocations: 165.6 kB / 497.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002547/0.184, allocations: 1.845 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006042/0.1846, allocations: 1.009 MB / 0.4888 GB, free: 10.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004722/0.1851, allocations: 161.8 kB / 0.489 GB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.1852, allocations: 47.44 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1852, allocations: 8 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of Templates: time 0.01392/0.1992, allocations: 7.246 MB / 0.4961 GB, free: 3.375 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches