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.001971/0.001971, allocations: 112.3 kB / 17.68 MB, free: 5.473 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.00211/0.00211, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.484/1.484, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1992/0.1992, allocations: 38.03 MB / 330.5 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001767/0.001768, allocations: 60.44 kB / 400.2 MB, free: 33.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1197, allocations: 58.06 MB / 458.3 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.006306/0.1261, allocations: 4.409 MB / 462.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002665/0.1288, allocations: 1.515 MB / 464.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000254/0.1291, allocations: 15.88 kB / 464.2 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009243/0.13, allocations: 278.7 kB / 464.5 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000634/0.1306, allocations: 290.6 kB / 464.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000604/0.1313, allocations: 243.4 kB / 465 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006742/0.1319, allocations: 0.6119 MB / 465.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003725/0.1323, allocations: 223.8 kB / 465.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003502/0.1327, allocations: 259 kB / 466.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004788/0.1332, allocations: 374.9 kB / 466.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.658e-05/0.1333, allocations: 39.94 kB / 466.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004031/0.1337, allocations: 231.6 kB / 466.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002204/0.1339, allocations: 227.4 kB / 467 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002491/0.1342, allocations: 254.7 kB / 467.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007425/0.1349, allocations: 0.6737 MB / 467.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1349, allocations: 0 / 467.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1349, allocations: 0 / 467.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.1349, allocations: 4 kB / 467.9 MB, free: 13.74 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.1364, allocations: 0.7699 MB / 468.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.1365, allocations: 11.89 kB / 468.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006207/0.1371, allocations: 88.22 kB / 468.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007131/0.1378, allocations: 423.2 kB / 469.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.1379, allocations: 25.36 kB / 469.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.138, allocations: 56.11 kB / 469.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009873/0.139, allocations: 0.6914 MB / 470 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.1391, allocations: 0 / 470 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.891e-05/0.1391, allocations: 23.98 kB / 470 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001994/0.1393, allocations: 72.88 kB / 470.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009686/0.1403, allocations: 0.6635 MB / 470.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004007/0.1443, allocations: 2.638 MB / 473.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006092/0.1449, allocations: 317.3 kB / 473.7 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003117/0.1453, allocations: 217.4 kB / 473.9 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.361e-05/0.1453, allocations: 4 kB / 473.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.295e-05/0.1454, allocations: 38.48 kB / 473.9 MB, free: 7.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 2.785e-06/0.1454, allocations: 0 / 473.9 MB, free: 7.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002132/0.1475, allocations: 1.292 MB / 475.2 MB, free: 6.066 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.89e-05/0.1476, allocations: 85.05 kB / 475.3 MB, free: 5.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003079/0.1479, allocations: 295.2 kB / 475.6 MB, free: 5.672 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.148, allocations: 29.7 kB / 475.6 MB, free: 5.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.1481, allocations: 243.7 kB / 475.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.1483, allocations: 141.9 kB / 476 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001339/0.1484, allocations: 94.14 kB / 476.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1486, allocations: 350.7 kB / 476.4 MB, free: 4.801 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002733/0.1488, allocations: 192.9 kB / 476.6 MB, free: 4.613 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000368/0.1492, allocations: 325.2 kB / 476.9 MB, free: 4.242 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000709/0.1499, allocations: 0.5545 MB / 477.5 MB, free: 3.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.1499, allocations: 0 / 477.5 MB, free: 3.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001257/0.1512, allocations: 0.6777 MB / 478.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.1512, allocations: 8.562 kB / 478.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007984/0.152, allocations: 491.5 kB / 478.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004445/0.1525, allocations: 109.6 kB / 478.8 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003224/0.1528, allocations: 87.75 kB / 478.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003063/0.1559, allocations: 3.266 MB / 482.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003354/0.1563, allocations: 23.92 kB / 482.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.609e-05/0.1564, allocations: 19.98 kB / 482.1 MB, free: 14.65 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.0003112/0.1567, allocations: 217.7 kB / 482.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.1568, allocations: 35.53 kB / 482.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007573/0.1576, allocations: 465.2 kB / 482.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.13e-05/0.1576, allocations: 8 kB / 482.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.1576, allocations: 0 / 482.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.1576, allocations: 11.92 kB / 482.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/0.1592, allocations: 1.008 MB / 483.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.1592, allocations: 0 / 483.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003509/0.1595, allocations: 67.89 kB / 483.9 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.196e-06/0.1596, allocations: 15.86 kB / 484 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.922e-05/0.1596, allocations: 8 kB / 484 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.231e-06/0.1596, allocations: 4 kB / 484 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1596, allocations: 8 kB / 484 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009326/0.1606, allocations: 0.7471 MB / 484.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/0.1608, allocations: 136.7 kB / 484.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.002e-05/0.1608, allocations: 15.92 kB / 484.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/0.161, allocations: 15.98 kB / 484.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.521e-05/0.1611, allocations: 23.97 kB / 484.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.1611, allocations: 8 kB / 484.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002083/0.1613, allocations: 207.1 kB / 485.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.512e-06/0.1613, allocations: 0 / 485.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005791/0.1619, allocations: 107.9 kB / 485.2 MB, free: 11.44 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.000291/0.1622, allocations: 138.4 kB / 485.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00123/0.1635, allocations: 0.7132 MB / 486.1 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.1635, allocations: 1.125 kB / 486.1 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002752/0.1638, allocations: 213.4 kB / 486.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005338/0.1643, allocations: 72.67 kB / 486.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.1662, allocations: 1.099 MB / 487.5 MB, free: 9.148 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005249/0.1667, allocations: 0.8746 MB / 488.3 MB, free: 8.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000277/0.167, allocations: 111.2 kB / 488.4 MB, free: 8.141 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.2e-05/0.1671, allocations: 27.44 kB / 488.5 MB, free: 8.113 MB / 366.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1671, allocations: 0 / 488.5 MB, free: 8.113 MB / 366.1 MB Notification: Performance of Templates: time 0.009198/0.1763, allocations: 4.262 MB / 492.7 MB, free: 3.875 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 -s cvode -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