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.001862/0.001862, allocations: 103.8 kB / 16.51 MB, free: 6.645 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.002033/0.002033, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.386/1.386, allocations: 222.9 MB / 241.1 MB, free: 13.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.19/0.19, allocations: 38.03 MB / 329.3 MB, free: 8.871 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 57.75 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1034, allocations: 58.06 MB / 456.2 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.00614/0.1096, allocations: 5.056 MB / 461.2 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002587/0.1122, allocations: 1.722 MB / 462.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000221/0.1124, allocations: 27.81 kB / 463 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008058/0.1133, allocations: 259 kB / 463.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005309/0.1138, allocations: 255 kB / 463.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005957/0.1144, allocations: 223.6 kB / 463.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008577/0.1153, allocations: 0.9589 MB / 464.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000385/0.1157, allocations: 207.5 kB / 464.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003085/0.116, allocations: 227 kB / 465.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005456/0.1166, allocations: 390.8 kB / 465.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.154e-05/0.1166, allocations: 24 kB / 465.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005228/0.1172, allocations: 243.5 kB / 465.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002337/0.1174, allocations: 211.5 kB / 465.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002756/0.1177, allocations: 246.7 kB / 466.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007515/0.1184, allocations: 0.6503 MB / 466.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1185, allocations: 0 / 466.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.1185, allocations: 0 / 466.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.1185, allocations: 3.938 kB / 466.8 MB, free: 13.82 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.001591/0.1201, allocations: 0.7699 MB / 467.6 MB, free: 13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.1201, allocations: 8.031 kB / 467.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000722/0.1209, allocations: 100.2 kB / 467.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006194/0.1215, allocations: 395.2 kB / 468.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.721e-05/0.1215, allocations: 29.38 kB / 468.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.1217, allocations: 44.11 kB / 468.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009337/0.1226, allocations: 0.7031 MB / 468.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.1226, allocations: 0 / 468.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.556e-05/0.1227, allocations: 15.98 kB / 468.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002019/0.1229, allocations: 68.94 kB / 468.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.124, allocations: 0.6635 MB / 469.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003505/0.1275, allocations: 2.658 MB / 472.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005696/0.1281, allocations: 313.3 kB / 472.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002888/0.1284, allocations: 209.6 kB / 472.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.006e-05/0.1284, allocations: 7.984 kB / 472.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.1285, allocations: 42.56 kB / 472.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 3.457e-06/0.1285, allocations: 0 / 472.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002337/0.1308, allocations: 1.282 MB / 474.1 MB, free: 6.164 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/0.1309, allocations: 89.05 kB / 474.2 MB, free: 6.059 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003515/0.1313, allocations: 287.2 kB / 474.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.149e-05/0.1313, allocations: 33.83 kB / 474.5 MB, free: 5.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.1315, allocations: 255.6 kB / 474.7 MB, free: 5.473 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.1316, allocations: 142 kB / 474.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/0.1318, allocations: 82.05 kB / 475 MB, free: 5.246 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.1319, allocations: 350.7 kB / 475.3 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002624/0.1322, allocations: 188.9 kB / 475.5 MB, free: 4.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000367/0.1326, allocations: 327.9 kB / 475.8 MB, free: 4.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006624/0.1332, allocations: 0.5623 MB / 476.4 MB, free: 3.719 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.1333, allocations: 4 kB / 476.4 MB, free: 3.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001239/0.1345, allocations: 0.674 MB / 477 MB, free: 3.027 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.1345, allocations: 8 kB / 477.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008618/0.1354, allocations: 495.5 kB / 477.5 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00048/0.1359, allocations: 109.6 kB / 477.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003301/0.1362, allocations: 92.12 kB / 477.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002695/0.139, allocations: 3.018 MB / 480.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002663/0.1392, allocations: 19.98 kB / 480.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.035e-05/0.1393, allocations: 19.98 kB / 480.8 MB, free: 15 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.000258/0.1396, allocations: 209.7 kB / 481 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.607e-05/0.1397, allocations: 43.45 kB / 481 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006993/0.1404, allocations: 460.7 kB / 481.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.232e-05/0.1404, allocations: 15.94 kB / 481.5 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.1404, allocations: 0 / 481.5 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.1404, allocations: 4 kB / 481.5 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001414/0.1418, allocations: 1.024 MB / 482.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.1419, allocations: 4 kB / 482.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003472/0.1422, allocations: 63.95 kB / 482.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.1422, allocations: 4 kB / 482.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/0.1423, allocations: 11.94 kB / 482.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.776e-06/0.1423, allocations: 64 / 482.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1423, allocations: 4 kB / 482.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009079/0.1432, allocations: 0.7395 MB / 483.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.1433, allocations: 140.7 kB / 483.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.834e-05/0.1434, allocations: 12 kB / 483.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000191/0.1436, allocations: 19.97 kB / 483.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.1437, allocations: 27.86 kB / 483.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.1437, allocations: 7.938 kB / 483.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002261/0.1439, allocations: 215.1 kB / 483.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1439, allocations: 0 / 483.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005986/0.1445, allocations: 112 kB / 483.9 MB, free: 11.78 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.0003104/0.1449, allocations: 139.1 kB / 484 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.1461, allocations: 0.7033 MB / 484.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.1461, allocations: 0 / 484.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002849/0.1464, allocations: 212 kB / 484.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005828/0.147, allocations: 63.61 kB / 485 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.1489, allocations: 1.302 MB / 486.3 MB, free: 9.305 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004397/0.1494, allocations: 0.8704 MB / 487.2 MB, free: 8.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002805/0.1496, allocations: 111.2 kB / 487.3 MB, free: 8.301 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.083e-05/0.1497, allocations: 27.44 kB / 487.3 MB, free: 8.273 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1497, allocations: 4 kB / 487.3 MB, free: 8.27 MB / 366.1 MB Notification: Performance of Templates: time 0.008489/0.1582, allocations: 4.055 MB / 491.4 MB, free: 4.234 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