Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source") translateModel(PowerSystems.Examples.AC3ph.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 104.2 kB / 17.59 MB, free: 5.586 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.00184/0.00184, allocations: 187.3 kB / 18.51 MB, free: 4.664 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.4/1.4, allocations: 222.9 MB / 242.2 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.1747/0.1747, allocations: 38.02 MB / 330.4 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 63.33 kB / 399.5 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1054, allocations: 58.06 MB / 457.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.006285/0.1117, allocations: 4.401 MB / 461.9 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002528/0.1143, allocations: 1.523 MB / 463.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002051/0.1145, allocations: 15.88 kB / 463.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009288/0.1154, allocations: 282.7 kB / 463.7 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006331/0.1161, allocations: 286.6 kB / 464 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006783/0.1168, allocations: 243.4 kB / 464.3 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006072/0.1174, allocations: 0.604 MB / 464.9 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003892/0.1178, allocations: 231.8 kB / 465.1 MB, free: 468 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003501/0.1181, allocations: 267 kB / 465.4 MB, free: 200 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005741/0.1187, allocations: 363 kB / 465.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.406e-05/0.1188, allocations: 40 kB / 465.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004642/0.1193, allocations: 239.5 kB / 466 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002166/0.1195, allocations: 231.4 kB / 466.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002562/0.1198, allocations: 254.7 kB / 466.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006915/0.1205, allocations: 0.6504 MB / 467.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1205, allocations: 4 kB / 467.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1205, allocations: 0 / 467.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.1205, allocations: 0 / 467.1 MB, free: 14.43 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001493/0.122, allocations: 0.7768 MB / 467.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.1221, allocations: 11.89 kB / 467.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006818/0.1228, allocations: 92.22 kB / 468 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006156/0.1234, allocations: 411.2 kB / 468.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.1234, allocations: 25.36 kB / 468.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001547/0.1236, allocations: 44.12 kB / 468.5 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.1246, allocations: 0.7031 MB / 469.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.1246, allocations: 0 / 469.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.768e-05/0.1247, allocations: 12 kB / 469.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002291/0.1249, allocations: 84.86 kB / 469.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.126, allocations: 0.6596 MB / 469.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003576/0.1295, allocations: 2.654 MB / 472.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005691/0.1301, allocations: 321.3 kB / 472.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.1304, allocations: 205.7 kB / 473.1 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.585e-05/0.1305, allocations: 4 kB / 473.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.188e-05/0.1305, allocations: 42.5 kB / 473.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 2.255e-06/0.1305, allocations: 3.938 kB / 473.1 MB, free: 8.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002109/0.1326, allocations: 1.29 MB / 474.4 MB, free: 6.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.567e-05/0.1327, allocations: 81.11 kB / 474.5 MB, free: 6.652 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003311/0.1331, allocations: 287.2 kB / 474.8 MB, free: 6.367 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.1331, allocations: 29.7 kB / 474.8 MB, free: 6.332 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.1333, allocations: 247.7 kB / 475.1 MB, free: 6.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.1334, allocations: 145.9 kB / 475.2 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001457/0.1335, allocations: 90.16 kB / 475.3 MB, free: 5.844 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1337, allocations: 350.8 kB / 475.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/0.134, allocations: 192.8 kB / 475.8 MB, free: 5.305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003448/0.1343, allocations: 325.3 kB / 476.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006842/0.135, allocations: 0.5623 MB / 476.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.135, allocations: 0 / 476.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001213/0.1362, allocations: 0.6777 MB / 477.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1363, allocations: 4.562 kB / 477.4 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008247/0.1371, allocations: 491.5 kB / 477.9 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004817/0.1376, allocations: 117.5 kB / 478 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003266/0.1379, allocations: 79.89 kB / 478.1 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002841/0.1408, allocations: 3.262 MB / 481.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/0.1411, allocations: 31.98 kB / 481.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.289e-05/0.1411, allocations: 16 kB / 481.4 MB, free: 15.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 0 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000246/0.1414, allocations: 209.7 kB / 481.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.1415, allocations: 35.53 kB / 481.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007756/0.1423, allocations: 464.7 kB / 482.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-05/0.1423, allocations: 19.98 kB / 482.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.1423, allocations: 0 / 482.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.1423, allocations: 3.938 kB / 482.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001433/0.1438, allocations: 1.013 MB / 483.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.1438, allocations: 3.938 kB / 483.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003584/0.1442, allocations: 67.89 kB / 483.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.909e-06/0.1442, allocations: 12 kB / 483.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.104e-05/0.1442, allocations: 4 kB / 483.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.1442, allocations: 7.938 kB / 483.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.1442, allocations: 3.938 kB / 483.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009517/0.1452, allocations: 0.7478 MB / 483.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001512/0.1454, allocations: 140.6 kB / 484.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.195e-05/0.1454, allocations: 11.94 kB / 484.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.1456, allocations: 15.98 kB / 484.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.438e-05/0.1457, allocations: 15.97 kB / 484.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.1457, allocations: 12 kB / 484.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002072/0.146, allocations: 203.1 kB / 484.3 MB, free: 12.24 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.146, allocations: 3.938 kB / 484.3 MB, free: 12.24 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005292/0.1465, allocations: 116 kB / 484.4 MB, free: 12.12 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 2 * Algorithm blocks: 0 * 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.0002475/0.1468, allocations: 134 kB / 484.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001196/0.148, allocations: 0.7876 MB / 485.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.148, allocations: 0 / 485.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002769/0.1483, allocations: 211.8 kB / 485.6 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005438/0.1488, allocations: 64.5 kB / 485.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001869/0.1507, allocations: 1.169 MB / 486.8 MB, free: 9.699 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004822/0.1512, allocations: 0.8668 MB / 487.7 MB, free: 8.809 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.1513, allocations: 39.42 kB / 487.7 MB, free: 8.77 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1513, allocations: 0 / 487.7 MB, free: 8.77 MB / 366.1 MB Notification: Performance of Templates: time 0.009858/0.1612, allocations: 6.854 MB / 494.6 MB, free: 1.918 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches