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.00161/0.00161, allocations: 100.8 kB / 16.5 MB, free: 6.641 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.00176/0.001761, allocations: 194.6 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.416/1.416, allocations: 222.9 MB / 241.1 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1807/0.1807, allocations: 38.04 MB / 329.3 MB, free: 9.062 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 62.02 kB / 398.1 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1133, allocations: 58.07 MB / 456.2 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.007127/0.1205, allocations: 4.562 MB / 460.7 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.1225, allocations: 1.056 MB / 461.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003894/0.123, allocations: 31.75 kB / 461.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001977/0.1232, allocations: 31.77 kB / 461.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00059/0.1238, allocations: 151.3 kB / 462 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000255/0.1241, allocations: 71.88 kB / 462.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005268/0.1246, allocations: 0.4946 MB / 462.6 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.1248, allocations: 72.78 kB / 462.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002747/0.1251, allocations: 139.2 kB / 462.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004154/0.1255, allocations: 179.4 kB / 462.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.339e-05/0.1256, allocations: 8 kB / 462.9 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.787e-05/0.1257, allocations: 12 kB / 463 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.1258, allocations: 75.73 kB / 463 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.126, allocations: 119.3 kB / 463.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003043/0.1263, allocations: 247 kB / 463.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.1263, allocations: 0 / 463.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1263, allocations: 0 / 463.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1263, allocations: 0 / 463.4 MB, free: 1.262 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.001119/0.1274, allocations: 0.5623 MB / 464 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.1275, allocations: 8.031 kB / 464 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.016e-05/0.1276, allocations: 28.56 kB / 464 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000467/0.1281, allocations: 311.9 kB / 464.3 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.1281, allocations: 20.38 kB / 464.3 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.629e-05/0.1282, allocations: 24 kB / 464.3 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/0.1286, allocations: 270.1 kB / 464.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.1286, allocations: 0 / 464.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.898e-05/0.1287, allocations: 8 kB / 464.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.1287, allocations: 8 kB / 464.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002697/0.129, allocations: 163.8 kB / 464.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001402/0.1304, allocations: 1.183 MB / 466 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.1306, allocations: 73.11 kB / 466 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.305e-05/0.1306, allocations: 33.81 kB / 466.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.1306, allocations: 0 / 466.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.1307, allocations: 42.5 kB / 466.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.1307, allocations: 3.938 kB / 466.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006809/0.1314, allocations: 408.8 kB / 466.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/0.1314, allocations: 81.11 kB / 466.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.1317, allocations: 246.5 kB / 466.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.334e-05/0.1317, allocations: 29.7 kB / 466.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.1318, allocations: 191.8 kB / 467 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.267e-05/0.1318, allocations: 31.64 kB / 467.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.343e-05/0.1319, allocations: 45.55 kB / 467.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.132, allocations: 326.8 kB / 467.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.171e-05/0.1321, allocations: 27.98 kB / 467.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.1322, allocations: 128.8 kB / 467.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.1324, allocations: 164.7 kB / 467.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1324, allocations: 0 / 467.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002529/0.1326, allocations: 185.5 kB / 467.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.1327, allocations: 4 kB / 467.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1327, allocations: 7.938 kB / 467.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.1327, allocations: 4 kB / 467.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.1329, allocations: 39.92 kB / 468 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.1329, allocations: 7.938 kB / 468 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.133, allocations: 11.91 kB / 468 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.133, allocations: 11.94 kB / 468 MB, free: 12.18 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.0001408/0.1332, allocations: 157.7 kB / 468.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.058e-05/0.1332, allocations: 23.86 kB / 468.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001843/0.1334, allocations: 99.33 kB / 468.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1334, allocations: 0 / 468.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.1334, allocations: 0 / 468.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1334, allocations: 0 / 468.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000461/0.1339, allocations: 427.2 kB / 468.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1339, allocations: 448 / 468.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.147e-05/0.134, allocations: 12 kB / 468.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.134, allocations: 8.031 kB / 468.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.1341, allocations: 4 kB / 468.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1341, allocations: 0 / 468.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.1341, allocations: 4 kB / 468.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002714/0.1343, allocations: 228.9 kB / 469 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.376e-05/0.1344, allocations: 108.8 kB / 469.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.1345, allocations: 4.062 kB / 469.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.771e-05/0.1346, allocations: 0 / 469.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.284e-05/0.1346, allocations: 7.984 kB / 469.1 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.978e-06/0.1346, allocations: 7.984 kB / 469.1 MB, free: 11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001496/0.1348, allocations: 174 kB / 469.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1348, allocations: 0 / 469.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.1351, allocations: 36 kB / 469.3 MB, free: 10.79 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.758e-05/0.1352, allocations: 95.25 kB / 469.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001625/0.1354, allocations: 91.78 kB / 469.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1354, allocations: 0 / 469.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.651e-05/0.1354, allocations: 27.92 kB / 469.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.1359, allocations: 57.47 kB / 469.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009007/0.1368, allocations: 0.5773 MB / 470.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.1371, allocations: 0.7638 MB / 470.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.1373, allocations: 30.28 kB / 470.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.541e-05/0.1373, allocations: 19.44 kB / 470.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1373, allocations: 0 / 470.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of Templates: time 0.004536/0.1418, allocations: 1.683 MB / 472.6 MB, free: 7.402 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