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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 108.6 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.001148/0.001148, 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.362/1.362, 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.1877/0.1877, allocations: 38.04 MB / 329.7 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 64.91 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09783/0.09905, allocations: 58.06 MB / 456.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.006806/0.1059, allocations: 5.495 MB / 462.4 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00225/0.1082, allocations: 1.371 MB / 463.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003536/0.1085, allocations: 15.88 kB / 463.8 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005086/0.1091, allocations: 139 kB / 463.9 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009067/0.11, allocations: 374.2 kB / 464.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003555/0.1104, allocations: 159.7 kB / 464.4 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009696/0.1114, allocations: 0.7748 MB / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003448/0.1117, allocations: 221.6 kB / 465.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005951/0.1123, allocations: 338.5 kB / 465.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006842/0.113, allocations: 402.6 kB / 466.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.147e-05/0.1131, allocations: 40 kB / 466.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001192/0.1133, allocations: 44 kB / 466.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002134/0.1135, allocations: 207.4 kB / 466.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003147/0.1138, allocations: 270.6 kB / 466.7 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006146/0.1144, allocations: 0.5645 MB / 467.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.1144, allocations: 3.938 kB / 467.2 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1145, allocations: 7.875 kB / 467.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.831e-05/0.1145, allocations: 0 / 467.3 MB, free: 13.64 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.001427/0.1159, allocations: 0.888 MB / 468.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.116, allocations: 8.031 kB / 468.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.1161, allocations: 64.28 kB / 468.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007284/0.1168, allocations: 494.5 kB / 468.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.054e-05/0.1169, allocations: 36.94 kB / 468.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.92e-05/0.1169, allocations: 40 kB / 468.8 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007364/0.1177, allocations: 0.5312 MB / 469.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.1177, allocations: 0 / 469.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.278e-05/0.1178, allocations: 20 kB / 469.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.927e-05/0.1178, allocations: 20.94 kB / 469.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005868/0.1184, allocations: 399.6 kB / 469.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.1208, allocations: 1.928 MB / 471.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005654/0.1214, allocations: 333.3 kB / 472 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003216/0.1217, allocations: 185.6 kB / 472.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/0.1218, allocations: 11.94 kB / 472.2 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003558/0.1221, allocations: 272.8 kB / 472.4 MB, free: 8.152 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.974e-06/0.1221, allocations: 0 / 472.4 MB, free: 8.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001841/0.124, allocations: 1.199 MB / 473.6 MB, free: 6.879 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.351e-05/0.1241, allocations: 162.2 kB / 473.8 MB, free: 6.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003796/0.1245, allocations: 393.9 kB / 474.2 MB, free: 6.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.549e-05/0.1245, allocations: 33.7 kB / 474.2 MB, free: 6.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/0.1247, allocations: 295.5 kB / 474.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.02e-05/0.1248, allocations: 118.4 kB / 474.6 MB, free: 5.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.125, allocations: 94.14 kB / 474.7 MB, free: 5.738 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.1251, allocations: 354.8 kB / 475.1 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.1253, allocations: 129.1 kB / 475.2 MB, free: 5.254 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002948/0.1256, allocations: 286.1 kB / 475.5 MB, free: 4.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005577/0.1262, allocations: 481.3 kB / 475.9 MB, free: 4.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.1262, allocations: 4 kB / 475.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007618/0.127, allocations: 0.5178 MB / 476.5 MB, free: 3.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.134e-05/0.127, allocations: 37.69 kB / 476.5 MB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.127, allocations: 4 kB / 476.5 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.289e-05/0.1271, allocations: 8 kB / 476.5 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000417/0.1275, allocations: 107.8 kB / 476.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.679e-05/0.1275, allocations: 15.92 kB / 476.6 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.1278, allocations: 36.27 kB / 476.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.409e-05/0.1278, allocations: 27.98 kB / 476.7 MB, free: 3.57 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.0002327/0.1281, allocations: 240.2 kB / 476.9 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.581e-05/0.1281, allocations: 55.38 kB / 477 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006428/0.1288, allocations: 447.2 kB / 477.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.1288, allocations: 4 kB / 477.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.1288, allocations: 3.938 kB / 477.4 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.1288, allocations: 4 kB / 477.4 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001144/0.13, allocations: 0.9888 MB / 478.4 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.13, allocations: 4 kB / 478.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003117/0.1303, allocations: 59.91 kB / 478.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.1303, allocations: 0 / 478.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.647e-05/0.1304, allocations: 19.97 kB / 478.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.1304, allocations: 0 / 478.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1304, allocations: 0 / 478.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008912/0.1313, allocations: 0.7133 MB / 479.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/0.1314, allocations: 144.5 kB / 479.4 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.808e-05/0.1315, allocations: 12 kB / 479.4 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.1317, allocations: 11.98 kB / 479.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.356e-05/0.1318, allocations: 23.97 kB / 479.4 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-05/0.1318, allocations: 32.03 kB / 479.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002505/0.1321, allocations: 271.1 kB / 479.7 MB, free: 432 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1321, allocations: 0 / 479.7 MB, free: 432 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004176/0.1325, allocations: 107.9 kB / 479.8 MB, free: 324 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.0001257/0.1326, allocations: 114.4 kB / 479.9 MB, free: 204 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006685/0.1333, allocations: 443.4 kB / 480.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.1333, allocations: 0 / 480.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003225/0.1337, allocations: 263.6 kB / 480.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006172/0.1343, allocations: 109.4 kB / 480.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00149/0.1358, allocations: 0.9841 MB / 481.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004536/0.1363, allocations: 0.8781 MB / 482.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002908/0.1366, allocations: 100.3 kB / 482.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.259e-05/0.1366, allocations: 35.44 kB / 482.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1367, allocations: 0 / 482.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of Templates: time 0.009292/0.146, allocations: 4.214 MB / 486.9 MB, free: 9.164 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.mat","/var/lib/jenkins/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