Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001089/0.00109, allocations: 175.6 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.36/1.36, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0008423/0.0008425, allocations: 90.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1594/0.1594, allocations: 37.98 MB / 353.5 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.762e-05/2.773e-05, allocations: 8 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09287/0.09291, allocations: 56.32 MB / 474.1 MB, free: 4.805 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3751/0.4681, allocations: 98.52 MB / 0.5592 GB, free: 4.215 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.4684, allocations: 91 kB / 0.5592 GB, free: 4.168 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03291/0.5013, allocations: 11.13 MB / 0.5701 GB, free: 10.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5014, allocations: 4 kB / 0.5701 GB, free: 10.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.718e-05/0.5014, allocations: 8 kB / 0.5701 GB, free: 10.5 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001928/0.5034, allocations: 0.7764 MB / 0.5709 GB, free: 9.711 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.5034, allocations: 8.031 kB / 0.5709 GB, free: 9.703 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002509/0.5037, allocations: 59.34 kB / 0.5709 GB, free: 9.645 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003797/0.5075, allocations: 1.252 MB / 0.5722 GB, free: 8.551 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.064e-05/0.5076, allocations: 30.03 kB / 0.5722 GB, free: 8.535 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001955/0.5078, allocations: 49.41 kB / 0.5722 GB, free: 8.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.5091, allocations: 0.7812 MB / 0.573 GB, free: 7.859 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.5092, allocations: 0 / 0.573 GB, free: 7.859 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.614e-05/0.5092, allocations: 21.17 kB / 0.573 GB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.5093, allocations: 11.95 kB / 0.573 GB, free: 7.836 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007626/0.51, allocations: 440.9 kB / 0.5735 GB, free: 7.523 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004346/0.5144, allocations: 2.714 MB / 0.5761 GB, free: 5.172 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007821/0.5152, allocations: 480.7 kB / 0.5766 GB, free: 4.832 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000733/0.5159, allocations: 437.2 kB / 0.577 GB, free: 4.531 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.514e-05/0.516, allocations: 10.94 kB / 0.577 GB, free: 4.523 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.516, allocations: 41.64 kB / 0.577 GB, free: 4.477 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 2.254e-06/0.516, allocations: 0 / 0.577 GB, free: 4.477 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.007723/0.5238, allocations: 3.092 MB / 0.5801 GB, free: 1.766 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.884e-05/0.5239, allocations: 81.11 kB / 0.5801 GB, free: 1.668 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005308/0.5244, allocations: 335.5 kB / 0.5805 GB, free: 1.387 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.5246, allocations: 37.33 kB / 0.5805 GB, free: 1.352 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.5248, allocations: 246.1 kB / 0.5807 GB, free: 1.172 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.525, allocations: 159.6 kB / 0.5809 GB, free: 1.039 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.474e-05/0.525, allocations: 7.125 kB / 0.5809 GB, free: 1.039 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.5252, allocations: 364.9 kB / 0.5812 GB, free: 0.6914 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006172/0.5258, allocations: 418.6 kB / 0.5816 GB, free: 408 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006843/0.5265, allocations: 0.5231 MB / 0.5821 GB, free: 15.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006991/0.5272, allocations: 474.2 kB / 0.5826 GB, free: 15.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.5273, allocations: 0 / 0.5826 GB, free: 15.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00411/0.5314, allocations: 2.126 MB / 0.5847 GB, free: 13.9 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/0.5314, allocations: 8 kB / 0.5847 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.5315, allocations: 8 kB / 0.5847 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006429/0.5379, allocations: 2.78 MB / 0.5874 GB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004333/0.5384, allocations: 91.64 kB / 0.5875 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.037e-05/0.5384, allocations: 11.89 kB / 0.5875 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004775/0.5389, allocations: 39.64 kB / 0.5875 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.5391, allocations: 71.48 kB / 0.5876 GB, free: 11.32 MB / 394.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(7,32.7%),(7,32.7%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002537/0.5393, allocations: 124.7 kB / 0.5877 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001867/0.5395, allocations: 39.53 kB / 0.5878 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006116/0.5457, allocations: 2.216 MB / 0.5899 GB, free: 9.246 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/0.5457, allocations: 4 kB / 0.5899 GB, free: 9.242 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.5457, allocations: 4 kB / 0.5899 GB, free: 9.238 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/0.5458, allocations: 7.984 kB / 0.5899 GB, free: 9.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007791/0.5536, allocations: 2.983 MB / 0.5929 GB, free: 6.633 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/0.5536, allocations: 7.953 kB / 0.5929 GB, free: 6.625 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002646/0.5539, allocations: 43.91 kB / 0.5929 GB, free: 6.582 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009862/0.5638, allocations: 3.237 MB / 0.5961 GB, free: 3.492 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002389/0.5641, allocations: 108.8 kB / 0.5962 GB, free: 3.402 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01182/0.5759, allocations: 8.939 MB / 0.6049 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.576, allocations: 0 / 0.6049 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006725/0.5827, allocations: 2.628 MB / 0.6075 GB, free: 9.418 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002253/0.583, allocations: 112.6 kB / 0.6076 GB, free: 9.289 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002534/0.5833, allocations: 92.89 kB / 0.6077 GB, free: 9.215 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004132/0.5837, allocations: 31.08 kB / 0.6077 GB, free: 9.191 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003406/0.584, allocations: 79.7 kB / 0.6078 GB, free: 9.117 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.5842, allocations: 63.41 kB / 0.6078 GB, free: 9.059 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003851/0.5846, allocations: 257.5 kB / 0.6081 GB, free: 8.855 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.5846, allocations: 4 kB / 0.6081 GB, free: 8.852 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008759/0.5855, allocations: 189.2 kB / 0.6083 GB, free: 8.684 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {8,6} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003048/0.5858, allocations: 147.2 kB / 0.6084 GB, free: 8.535 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.5876, allocations: 1.068 MB / 0.6094 GB, free: 7.684 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.5876, allocations: 0 / 0.6094 GB, free: 7.684 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001832/0.5894, allocations: 0.8932 MB / 0.6103 GB, free: 6.906 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007076/0.5901, allocations: 120.3 kB / 0.6104 GB, free: 6.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003354/0.5935, allocations: 2.004 MB / 0.6124 GB, free: 4.941 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006256/0.5942, allocations: 0.8951 MB / 0.6133 GB, free: 4.031 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003373/0.5945, allocations: 64.34 kB / 0.6133 GB, free: 3.965 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.774e-05/0.5946, allocations: 44.55 kB / 0.6134 GB, free: 3.922 MB / 410.7 MB Notification: Performance of SimCode: time 9.62e-07/0.5946, allocations: 0 / 0.6134 GB, free: 3.922 MB / 410.7 MB Notification: Performance of Templates: time 0.0326/0.6272, allocations: 19.19 MB / 0.6321 GB, free: 0.75 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Line.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches