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.00167/0.00167, allocations: 105.8 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.002152/0.002153, 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.366/1.366, 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.1748/0.1748, allocations: 38.04 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 66.48 kB / 398.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1055, allocations: 58.07 MB / 456.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.008242/0.1138, allocations: 7.293 MB / 464.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002946/0.1168, allocations: 1.714 MB / 465.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000309/0.1171, allocations: 27.81 kB / 465.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005784/0.1177, allocations: 234.4 kB / 466.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001092/0.1188, allocations: 0.5715 MB / 466.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003954/0.1192, allocations: 223.6 kB / 466.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001128/0.1204, allocations: 1.254 MB / 468.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004109/0.1208, allocations: 370.4 kB / 468.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006172/0.1214, allocations: 0.5329 MB / 469.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008385/0.1223, allocations: 0.6424 MB / 469.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001075/0.1224, allocations: 60 kB / 469.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000145/0.1226, allocations: 64 kB / 469.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002897/0.1228, allocations: 339 kB / 470.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003968/0.1233, allocations: 429.8 kB / 470.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008123/0.1241, allocations: 0.8992 MB / 471.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1241, allocations: 3.938 kB / 471.5 MB, free: 9.402 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1241, allocations: 0 / 471.5 MB, free: 9.402 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.1241, allocations: 0 / 471.5 MB, free: 9.402 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.001976/0.1261, allocations: 1.229 MB / 472.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.1261, allocations: 15.89 kB / 472.7 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.1263, allocations: 95.81 kB / 472.8 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009947/0.1273, allocations: 0.6603 MB / 473.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.119e-05/0.1274, allocations: 53.25 kB / 473.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-05/0.1275, allocations: 60 kB / 473.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.1286, allocations: 0.8099 MB / 474.4 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.1286, allocations: 0 / 474.4 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.076e-05/0.1287, allocations: 31.98 kB / 474.4 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.437e-05/0.1287, allocations: 33.25 kB / 474.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009152/0.1296, allocations: 0.6218 MB / 475.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003211/0.1329, allocations: 2.63 MB / 477.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009143/0.1338, allocations: 0.6127 MB / 478.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006139/0.1344, allocations: 372 kB / 478.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.1345, allocations: 4.438 kB / 478.7 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005462/0.135, allocations: 487 kB / 479.2 MB, free: 1.379 MB / 350.1 MB Notification: Performance of pre-optimization done (n=63): time 1.813e-06/0.135, allocations: 4 kB / 479.2 MB, free: 1.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.002677/0.1377, allocations: 1.981 MB / 481.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.1378, allocations: 255.8 kB / 481.4 MB, free: 15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000605/0.1384, allocations: 0.5625 MB / 482 MB, free: 14.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.865e-05/0.1385, allocations: 37.7 kB / 482 MB, free: 14.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002672/0.1388, allocations: 407.5 kB / 482.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001514/0.1389, allocations: 205.2 kB / 482.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.1391, allocations: 150.5 kB / 482.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1393, allocations: 382.8 kB / 483.1 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003446/0.1396, allocations: 225.8 kB / 483.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004651/0.1401, allocations: 461.8 kB / 483.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008585/0.141, allocations: 0.7973 MB / 484.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.141, allocations: 4 kB / 484.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.00144/0.1424, allocations: 0.9402 MB / 485.5 MB, free: 10.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.565e-05/0.1425, allocations: 67.39 kB / 485.6 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.1425, allocations: 8 kB / 485.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003694/0.1429, allocations: 118.1 kB / 485.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004657/0.1434, allocations: 147.7 kB / 485.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002756/0.1461, allocations: 3.244 MB / 489.1 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003957/0.1465, allocations: 35.98 kB / 489.2 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.184e-05/0.1466, allocations: 55.95 kB / 489.2 MB, free: 6.605 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.0003724/0.147, allocations: 346.7 kB / 489.5 MB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.464e-05/0.1471, allocations: 75.09 kB / 489.6 MB, free: 6.172 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001047/0.1481, allocations: 0.7896 MB / 490.4 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1482, allocations: 4 kB / 490.4 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.1482, allocations: 0 / 490.4 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1482, allocations: 3.984 kB / 490.4 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/0.15, allocations: 1.543 MB / 492 MB, free: 3.738 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.1501, allocations: 4 kB / 492 MB, free: 3.734 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004945/0.1506, allocations: 119.8 kB / 492.1 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.1506, allocations: 0 / 492.1 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.628e-05/0.1506, allocations: 23.97 kB / 492.1 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.1506, allocations: 4 kB / 492.1 MB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1506, allocations: 0 / 492.1 MB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/0.1521, allocations: 1.214 MB / 493.3 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002019/0.1523, allocations: 180.2 kB / 493.5 MB, free: 2.145 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.032e-05/0.1524, allocations: 16 kB / 493.5 MB, free: 2.129 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003016/0.1527, allocations: 31.97 kB / 493.5 MB, free: 2.098 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.558e-05/0.1528, allocations: 44.31 kB / 493.6 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.154e-05/0.1528, allocations: 59.92 kB / 493.6 MB, free: 1.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003772/0.1532, allocations: 399.1 kB / 494 MB, free: 1.613 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1532, allocations: 0 / 494 MB, free: 1.613 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005611/0.1538, allocations: 180 kB / 494.2 MB, free: 1.438 MB / 366.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.000135/0.1539, allocations: 128.6 kB / 494.3 MB, free: 1.305 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.1555, allocations: 1.093 MB / 495.4 MB, free: 164 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1555, allocations: 1.312 kB / 495.4 MB, free: 164 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005145/0.156, allocations: 0.4894 MB / 495.9 MB, free: 15.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007442/0.1568, allocations: 167.8 kB / 496.1 MB, free: 15.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002105/0.1589, allocations: 1.548 MB / 497.6 MB, free: 13.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005523/0.1595, allocations: 1.013 MB / 498.6 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004342/0.1599, allocations: 157.8 kB / 498.8 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.16, allocations: 47.44 kB / 498.8 MB, free: 12.66 MB / 382.1 MB Notification: Performance of SimCode: time 1.693e-06/0.16, allocations: 0 / 498.8 MB, free: 12.66 MB / 382.1 MB Notification: Performance of Templates: time 0.01285/0.1729, allocations: 7.458 MB / 0.4944 GB, free: 5.273 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