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.001142/0.001142, allocations: 108.1 kB / 16.62 MB, free: 6.809 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.0011/0.0011, 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.385/1.385, allocations: 222.9 MB / 241.2 MB, free: 15.44 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.4 MB, free: 9.039 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 74.53 kB / 398.3 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1245, allocations: 58.06 MB / 456.4 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.007071/0.1316, allocations: 5.048 MB / 461.4 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002969/0.1346, allocations: 1.698 MB / 463.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005018/0.1351, allocations: 27.81 kB / 463.1 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009395/0.1361, allocations: 269.9 kB / 463.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000781/0.1369, allocations: 259 kB / 463.6 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006612/0.1376, allocations: 223.6 kB / 463.9 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007154/0.1383, allocations: 0.6118 MB / 464.5 MB, free: 292 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004501/0.1388, allocations: 239.8 kB / 464.7 MB, free: 56 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005615/0.1393, allocations: 267 kB / 465 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006492/0.14, allocations: 394.8 kB / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001044/0.1401, allocations: 40 kB / 465.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005529/0.1407, allocations: 235.6 kB / 465.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002758/0.141, allocations: 235.5 kB / 465.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003465/0.1413, allocations: 250.7 kB / 466.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007647/0.1421, allocations: 0.6659 MB / 466.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1421, allocations: 0 / 466.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1421, allocations: 4 kB / 466.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.636e-05/0.1421, allocations: 0 / 466.8 MB, free: 13.99 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.001466/0.1436, allocations: 0.7738 MB / 467.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.1437, allocations: 11.89 kB / 467.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006794/0.1444, allocations: 92.2 kB / 467.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006039/0.145, allocations: 403.2 kB / 468 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/0.145, allocations: 25.38 kB / 468.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.1452, allocations: 52.09 kB / 468.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.1462, allocations: 0.6954 MB / 468.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.1462, allocations: 3.938 kB / 468.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.054e-05/0.1463, allocations: 23.98 kB / 468.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002087/0.1465, allocations: 64.95 kB / 468.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001027/0.1475, allocations: 0.6674 MB / 469.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003442/0.151, allocations: 2.654 MB / 472.2 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005172/0.1515, allocations: 317.3 kB / 472.5 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002697/0.1518, allocations: 205.7 kB / 472.7 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.033e-05/0.1518, allocations: 8 kB / 472.7 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.1519, allocations: 34.5 kB / 472.8 MB, free: 7.668 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 2.024e-06/0.1519, allocations: 0 / 472.8 MB, free: 7.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002035/0.1539, allocations: 1.299 MB / 474.1 MB, free: 6.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.154, allocations: 81.11 kB / 474.2 MB, free: 6.219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002908/0.1543, allocations: 291.2 kB / 474.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.1543, allocations: 29.7 kB / 474.5 MB, free: 5.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/0.1545, allocations: 259.5 kB / 474.7 MB, free: 5.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.1546, allocations: 142 kB / 474.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.1547, allocations: 82.03 kB / 474.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1549, allocations: 354.8 kB / 475.3 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002577/0.1551, allocations: 188.9 kB / 475.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003449/0.1555, allocations: 321.3 kB / 475.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006629/0.1562, allocations: 0.5622 MB / 476.3 MB, free: 3.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1562, allocations: 4 kB / 476.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001245/0.1574, allocations: 0.6776 MB / 477 MB, free: 3.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.1575, allocations: 8 kB / 477 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008088/0.1583, allocations: 492.1 kB / 477.5 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004377/0.1587, allocations: 117.5 kB / 477.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002977/0.159, allocations: 79.89 kB / 477.7 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00296/0.162, allocations: 3.254 MB / 481 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.1623, allocations: 31.97 kB / 481 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.362e-05/0.1623, allocations: 24 kB / 481 MB, free: 14.89 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.0002678/0.1626, allocations: 201.7 kB / 481.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.1627, allocations: 39.52 kB / 481.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000682/0.1634, allocations: 460.7 kB / 481.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.15e-05/0.1634, allocations: 12 kB / 481.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1634, allocations: 8 kB / 481.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1635, allocations: 3.938 kB / 481.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001421/0.1649, allocations: 1.021 MB / 482.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.1649, allocations: 0 / 482.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003373/0.1652, allocations: 63.95 kB / 482.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.1653, allocations: 3.938 kB / 482.8 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.72e-05/0.1653, allocations: 12.06 kB / 482.8 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.1653, allocations: 11.92 kB / 482.8 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1653, allocations: 0 / 482.8 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008876/0.1662, allocations: 0.7358 MB / 483.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001422/0.1664, allocations: 136.8 kB / 483.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.756e-05/0.1664, allocations: 19.92 kB / 483.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001961/0.1666, allocations: 19.97 kB / 483.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.593e-05/0.1667, allocations: 15.92 kB / 483.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.762e-05/0.1667, allocations: 19.92 kB / 483.8 MB, free: 12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001834/0.1669, allocations: 199.1 kB / 484 MB, free: 11.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1669, allocations: 0 / 484 MB, free: 11.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005081/0.1674, allocations: 124 kB / 484.1 MB, free: 11.68 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.0002412/0.1677, allocations: 131.2 kB / 484.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001152/0.1688, allocations: 0.7834 MB / 485 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1688, allocations: 4.25 kB / 485 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002792/0.1691, allocations: 215.8 kB / 485.2 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005161/0.1697, allocations: 76.47 kB / 485.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.1715, allocations: 1.287 MB / 486.6 MB, free: 9.125 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005169/0.1721, allocations: 0.8824 MB / 487.5 MB, free: 8.219 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003119/0.1724, allocations: 111.2 kB / 487.6 MB, free: 8.109 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.686e-05/0.1725, allocations: 27.44 kB / 487.6 MB, free: 8.082 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1725, allocations: 0 / 487.6 MB, free: 8.082 MB / 366.1 MB Notification: Performance of Templates: time 0.008996/0.1815, allocations: 4.193 MB / 491.8 MB, free: 3.91 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches