Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001009/0.001009, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007714/0.0007715, allocations: 82.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1624/0.1624, allocations: 37.98 MB / 353.5 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.38e-05/3.382e-05, allocations: 4 kB / 417.7 MB, free: 29.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1138, allocations: 56.32 MB / 474.1 MB, free: 4.812 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4112/0.5251, allocations: 93.85 MB / 0.5546 GB, free: 8.758 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.5253, allocations: 90.12 kB / 0.5547 GB, free: 8.711 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01658/0.5419, allocations: 6.473 MB / 0.561 GB, free: 3.203 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.542, allocations: 0 / 0.561 GB, free: 3.203 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.559e-05/0.542, allocations: 4 kB / 0.561 GB, free: 3.199 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006537/0.5426, allocations: 0.5261 MB / 0.5615 GB, free: 2.645 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.5427, allocations: 8.031 kB / 0.5615 GB, free: 2.637 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.087e-05/0.5428, allocations: 39.56 kB / 0.5616 GB, free: 2.598 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.544, allocations: 0.6453 MB / 0.5622 GB, free: 2.004 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.544, allocations: 23.36 kB / 0.5622 GB, free: 1.988 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.5442, allocations: 31.23 kB / 0.5622 GB, free: 1.965 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003481/0.5445, allocations: 289.2 kB / 0.5625 GB, free: 1.719 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.5446, allocations: 7.938 kB / 0.5625 GB, free: 1.711 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.347e-05/0.5446, allocations: 11.7 kB / 0.5625 GB, free: 1.707 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.5446, allocations: 8 kB / 0.5625 GB, free: 1.699 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.5449, allocations: 172.1 kB / 0.5627 GB, free: 1.582 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.546, allocations: 1.281 MB / 0.564 GB, free: 344 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002357/0.5463, allocations: 132.9 kB / 0.5641 GB, free: 204 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.421e-05/0.5464, allocations: 42.14 kB / 0.5641 GB, free: 164 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.5464, allocations: 4 kB / 0.5641 GB, free: 160 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.654e-05/0.5464, allocations: 37.94 kB / 0.5642 GB, free: 116 kB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.583e-06/0.5464, allocations: 0 / 0.5642 GB, free: 116 kB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008126/0.5472, allocations: 0.5053 MB / 0.5647 GB, free: 15.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/0.5473, allocations: 102.8 kB / 0.5648 GB, free: 15.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001948/0.5475, allocations: 217.1 kB / 0.565 GB, free: 15.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.5475, allocations: 33.69 kB / 0.565 GB, free: 15.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.5476, allocations: 196.4 kB / 0.5652 GB, free: 15.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.203e-05/0.5477, allocations: 37.08 kB / 0.5652 GB, free: 15.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.445e-06/0.5477, allocations: 3.188 kB / 0.5652 GB, free: 15.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.5478, allocations: 336.6 kB / 0.5655 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.399e-05/0.5479, allocations: 33.81 kB / 0.5656 GB, free: 14.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/0.548, allocations: 129.6 kB / 0.5657 GB, free: 14.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.5481, allocations: 66.8 kB / 0.5658 GB, free: 14.51 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.5481, allocations: 0 / 0.5658 GB, free: 14.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003839/0.5485, allocations: 236 kB / 0.566 GB, free: 14.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.5485, allocations: 7.953 kB / 0.566 GB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.5485, allocations: 4 kB / 0.566 GB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001173/0.5487, allocations: 27.59 kB / 0.566 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003673/0.549, allocations: 67.41 kB / 0.5661 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.5491, allocations: 8 kB / 0.5661 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.5492, allocations: 10.56 kB / 0.5661 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.5492, allocations: 8 kB / 0.5661 GB, free: 14.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 7.521e-05/0.5493, allocations: 119.4 kB / 0.5662 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.879e-05/0.5494, allocations: 23.72 kB / 0.5663 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002727/0.5497, allocations: 155.7 kB / 0.5664 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.5497, allocations: 8 kB / 0.5664 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.5497, allocations: 0 / 0.5664 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.5497, allocations: 3.984 kB / 0.5664 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003389/0.55, allocations: 292 kB / 0.5667 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.55, allocations: 0 / 0.5667 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.5502, allocations: 27.98 kB / 0.5667 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-06/0.5502, allocations: 3.984 kB / 0.5667 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.5503, allocations: 7.188 kB / 0.5667 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.5503, allocations: 3.953 kB / 0.5667 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.5503, allocations: 0 / 0.5667 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003931/0.5507, allocations: 392.5 kB / 0.5671 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.357e-05/0.5507, allocations: 108.7 kB / 0.5672 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.976e-05/0.5508, allocations: 3.062 kB / 0.5672 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.5509, allocations: 4.094 kB / 0.5672 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.007e-05/0.551, allocations: 19.36 kB / 0.5672 GB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.551, allocations: 4 kB / 0.5672 GB, free: 13.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001365/0.5511, allocations: 166.2 kB / 0.5674 GB, free: 12.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5511, allocations: 3.938 kB / 0.5674 GB, free: 12.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003303/0.5515, allocations: 50.19 kB / 0.5675 GB, free: 12.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001341/0.5516, allocations: 106.3 kB / 0.5676 GB, free: 12.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002986/0.5519, allocations: 213.7 kB / 0.5678 GB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.5519, allocations: 0 / 0.5678 GB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.799e-05/0.552, allocations: 53.61 kB / 0.5678 GB, free: 12.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003637/0.5524, allocations: 49.3 kB / 0.5679 GB, free: 12.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007179/0.5531, allocations: 443.8 kB / 0.5683 GB, free: 12.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.5535, allocations: 0.7749 MB / 0.569 GB, free: 11.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.5536, allocations: 26.06 kB / 0.5691 GB, free: 11.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.599e-05/0.5536, allocations: 26.67 kB / 0.5691 GB, free: 11.23 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5537, allocations: 4 kB / 0.5691 GB, free: 11.22 MB / 378.7 MB Notification: Performance of Templates: time 0.005018/0.5587, allocations: 2.066 MB / 0.5711 GB, free: 9.172 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches