Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 115 kB / 16.63 MB, free: 6.812 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.001387/0.001388, allocations: 186 kB / 17.55 MB, free: 5.934 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.374/1.374, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1735/0.1735, allocations: 38.02 MB / 329.4 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.00129, allocations: 66.36 kB / 398.3 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1239, allocations: 58.06 MB / 456.3 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005828/0.1297, allocations: 4.57 MB / 460.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001868/0.1316, allocations: 1.056 MB / 462 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002443/0.1319, allocations: 27.81 kB / 462 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002013/0.1321, allocations: 31.77 kB / 462 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005439/0.1327, allocations: 147.3 kB / 462.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002279/0.1329, allocations: 75.86 kB / 462.3 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004322/0.1334, allocations: 378.7 kB / 462.6 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.1336, allocations: 80.55 kB / 462.7 MB, free: 2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004034/0.134, allocations: 167.2 kB / 462.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003053/0.1343, allocations: 171.4 kB / 463 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.472e-05/0.1344, allocations: 16 kB / 463 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.801e-05/0.1344, allocations: 16 kB / 463.1 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.1345, allocations: 83.73 kB / 463.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002681/0.1348, allocations: 123.3 kB / 463.3 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002873/0.1351, allocations: 255 kB / 463.5 MB, free: 1.184 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.1351, allocations: 4 kB / 463.5 MB, free: 1.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1351, allocations: 0 / 463.5 MB, free: 1.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.1351, allocations: 0 / 463.5 MB, free: 1.18 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009699/0.1361, allocations: 0.5505 MB / 464.1 MB, free: 0.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.1362, allocations: 15.89 kB / 464.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.18e-05/0.1363, allocations: 28.56 kB / 464.1 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004079/0.1367, allocations: 307.9 kB / 464.4 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.1367, allocations: 24.38 kB / 464.4 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.207e-05/0.1368, allocations: 20 kB / 464.5 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003921/0.1372, allocations: 266.1 kB / 464.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.1372, allocations: 4 kB / 464.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.1372, allocations: 12 kB / 464.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.1372, allocations: 8 kB / 464.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002496/0.1375, allocations: 163.8 kB / 464.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.1389, allocations: 1.175 MB / 466.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001346/0.1391, allocations: 77.11 kB / 466.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.943e-05/0.1391, allocations: 33.81 kB / 466.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.1391, allocations: 4 kB / 466.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.1392, allocations: 34.56 kB / 466.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 3.186e-06/0.1392, allocations: 0 / 466.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007919/0.14, allocations: 408.8 kB / 466.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.418e-05/0.1401, allocations: 81.11 kB / 466.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002405/0.1403, allocations: 246.6 kB / 466.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.1403, allocations: 33.7 kB / 467 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.1405, allocations: 183.6 kB / 467.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.683e-05/0.1405, allocations: 27.64 kB / 467.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.863e-05/0.1406, allocations: 49.55 kB / 467.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.1408, allocations: 330.8 kB / 467.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.126e-05/0.1408, allocations: 27.94 kB / 467.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001142/0.141, allocations: 130.5 kB / 467.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001892/0.1412, allocations: 164.7 kB / 467.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1412, allocations: 448 / 467.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002562/0.1414, allocations: 185.3 kB / 468 MB, free: 12.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.1415, allocations: 10.03 kB / 468.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.1415, allocations: 7.938 kB / 468.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1415, allocations: 4 kB / 468.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.1417, allocations: 43.92 kB / 468.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.1417, allocations: 4 kB / 468.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.1418, allocations: 15.84 kB / 468.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.1418, allocations: 16.3 kB / 468.1 MB, free: 12.1 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * 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.0001286/0.1419, allocations: 149.8 kB / 468.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.585e-05/0.142, allocations: 19.81 kB / 468.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001702/0.1422, allocations: 95.27 kB / 468.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1422, allocations: 7.984 kB / 468.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.1422, allocations: 0 / 468.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1422, allocations: 0 / 468.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000449/0.1426, allocations: 435.2 kB / 468.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1427, allocations: 0 / 468.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.785e-05/0.1427, allocations: 12 kB / 468.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1428, allocations: 4 kB / 468.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.1428, allocations: 0 / 468.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1428, allocations: 3.984 kB / 468.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1428, allocations: 0 / 468.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002514/0.143, allocations: 232.9 kB / 469.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.703e-05/0.1431, allocations: 104.8 kB / 469.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/0.1432, allocations: 0 / 469.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.273e-05/0.1432, allocations: 0 / 469.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.056e-05/0.1433, allocations: 7.984 kB / 469.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-06/0.1433, allocations: 4 kB / 469.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001451/0.1434, allocations: 178 kB / 469.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1434, allocations: 0 / 469.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002956/0.1437, allocations: 32 kB / 469.4 MB, free: 10.73 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * Array equations: 0 * 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 9.736e-05/0.1439, allocations: 106 kB / 469.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001697/0.144, allocations: 95.72 kB / 469.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.144, allocations: 0 / 469.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.1442, allocations: 36.78 kB / 469.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004614/0.1447, allocations: 59.17 kB / 469.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008332/0.1455, allocations: 0.5712 MB / 470.3 MB, free: 9.836 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.1459, allocations: 0.7634 MB / 471 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001049/0.146, allocations: 26.28 kB / 471.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.819e-05/0.146, allocations: 19.44 kB / 471.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.146, allocations: 0 / 471.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of Templates: time 0.004982/0.151, allocations: 1.761 MB / 472.8 MB, free: 7.254 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches