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.001182/0.001182, allocations: 188.9 kB / 17.27 MB, free: 4.504 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.686/1.686, allocations: 205.1 MB / 223.1 MB, free: 8.465 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.00103/0.00103, allocations: 103.9 kB / 270.5 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3042/0.3042, allocations: 38 MB / 355.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 51.92 kB / 421.9 MB, free: 37.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4356/0.4372, allocations: 55.24 MB / 477.1 MB, free: 9.91 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.007586/0.4448, allocations: 4.518 MB / 481.6 MB, free: 6.73 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.4468, allocations: 1.026 MB / 482.6 MB, free: 6 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002215/0.4471, allocations: 19.88 kB / 482.7 MB, free: 5.992 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.4473, allocations: 35.73 kB / 482.7 MB, free: 5.973 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004435/0.4478, allocations: 145 kB / 482.8 MB, free: 5.891 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001942/0.448, allocations: 78.48 kB / 482.9 MB, free: 5.844 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006219/0.4486, allocations: 0.5199 MB / 483.4 MB, free: 5.656 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002443/0.4488, allocations: 99.38 kB / 483.5 MB, free: 5.621 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002623/0.4491, allocations: 153 kB / 483.7 MB, free: 5.555 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003453/0.4495, allocations: 200.5 kB / 483.9 MB, free: 5.473 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.242e-05/0.4495, allocations: 12.84 kB / 483.9 MB, free: 5.473 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.083e-05/0.4496, allocations: 13.03 kB / 483.9 MB, free: 5.473 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.4497, allocations: 76.08 kB / 484 MB, free: 5.445 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.4499, allocations: 132.2 kB / 484.1 MB, free: 5.371 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000435/0.4503, allocations: 283 kB / 484.4 MB, free: 5.25 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.4503, allocations: 0 / 484.4 MB, free: 5.25 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.4503, allocations: 1.125 kB / 484.4 MB, free: 5.25 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.4503, allocations: 0 / 484.4 MB, free: 5.25 MB / 314.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.001087/0.4514, allocations: 0.5946 MB / 485 MB, free: 4.758 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.4515, allocations: 10.41 kB / 485 MB, free: 4.758 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.939e-05/0.4516, allocations: 35.72 kB / 485 MB, free: 4.738 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005303/0.4521, allocations: 320.5 kB / 485.3 MB, free: 4.473 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/0.4521, allocations: 14.06 kB / 485.3 MB, free: 4.469 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001399/0.4523, allocations: 40.98 kB / 485.4 MB, free: 4.453 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004716/0.4527, allocations: 292.1 kB / 485.7 MB, free: 4.273 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.4528, allocations: 1.812 kB / 485.7 MB, free: 4.273 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.4528, allocations: 9.812 kB / 485.7 MB, free: 4.266 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.4528, allocations: 6.031 kB / 485.7 MB, free: 4.266 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003445/0.4532, allocations: 192.5 kB / 485.9 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.4547, allocations: 1.279 MB / 487.2 MB, free: 3.129 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002745/0.455, allocations: 120 kB / 487.3 MB, free: 3.031 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.995e-05/0.4551, allocations: 49.33 kB / 487.3 MB, free: 2.992 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.4551, allocations: 1.125 kB / 487.3 MB, free: 2.992 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.4552, allocations: 33.61 kB / 487.4 MB, free: 2.953 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.775e-06/0.4552, allocations: 0 / 487.4 MB, free: 2.953 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.001065/0.4562, allocations: 0.5306 MB / 487.9 MB, free: 2.523 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/0.4563, allocations: 105.1 kB / 488 MB, free: 2.398 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002916/0.4566, allocations: 247.6 kB / 488.2 MB, free: 2.238 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.4566, allocations: 26.95 kB / 488.3 MB, free: 2.207 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.4567, allocations: 189.6 kB / 488.4 MB, free: 2.047 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.772e-05/0.4568, allocations: 49.31 kB / 488.5 MB, free: 2.008 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.032e-05/0.4569, allocations: 44.94 kB / 488.5 MB, free: 1.977 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.871e-05/0.457, allocations: 335.8 kB / 488.9 MB, free: 1.652 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.758e-05/0.4571, allocations: 42.39 kB / 488.9 MB, free: 1.637 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.4573, allocations: 133.2 kB / 489 MB, free: 1.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002581/0.4575, allocations: 189.9 kB / 489.2 MB, free: 1.328 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4575, allocations: 5.375 kB / 489.2 MB, free: 1.324 MB / 314.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004848/0.458, allocations: 229.2 kB / 489.5 MB, free: 1.207 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.4581, allocations: 6.875 kB / 489.5 MB, free: 1.207 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.546e-05/0.4581, allocations: 3.312 kB / 489.5 MB, free: 1.207 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001549/0.4583, allocations: 34.34 kB / 489.5 MB, free: 1.188 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004047/0.4587, allocations: 65.14 kB / 489.6 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.4587, allocations: 5.031 kB / 489.6 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.4589, allocations: 12.72 kB / 489.6 MB, free: 1.172 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/0.4589, allocations: 8.859 kB / 489.6 MB, free: 1.172 MB / 314.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 () * Number of clocked 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001515/0.4591, allocations: 150.8 kB / 489.7 MB, free: 1.035 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.269e-05/0.4591, allocations: 23.47 kB / 489.8 MB, free: 1.023 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002842/0.4594, allocations: 150.8 kB / 489.9 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.4594, allocations: 5.219 kB / 489.9 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.4595, allocations: 1.844 kB / 489.9 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.4595, allocations: 5.812 kB / 489.9 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003736/0.4598, allocations: 287.6 kB / 490.2 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.4599, allocations: 1.438 kB / 490.2 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/0.46, allocations: 26.94 kB / 490.2 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.46, allocations: 2.125 kB / 490.2 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.4601, allocations: 14.23 kB / 490.2 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.4601, allocations: 13.39 kB / 490.3 MB, free: 0.668 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4601, allocations: 1.312 kB / 490.3 MB, free: 0.668 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002582/0.4627, allocations: 1.803 MB / 492.1 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.405e-05/0.4628, allocations: 100.7 kB / 492.2 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.565e-05/0.4628, allocations: 6.844 kB / 492.2 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.4629, allocations: 5.766 kB / 492.2 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.583e-05/0.463, allocations: 7.875 kB / 492.2 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.463, allocations: 3.328 kB / 492.2 MB, free: 15.1 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002041/0.4632, allocations: 171.2 kB / 492.3 MB, free: 15 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4632, allocations: 1.562 kB / 492.3 MB, free: 15 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004893/0.4637, allocations: 67.44 kB / 492.4 MB, free: 14.99 MB / 330.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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 0.0001326/0.4638, allocations: 103.5 kB / 492.5 MB, free: 14.89 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004127/0.4643, allocations: 205.2 kB / 492.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4643, allocations: 0 / 492.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.83e-05/0.4644, allocations: 50.48 kB / 492.8 MB, free: 14.73 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005509/0.4649, allocations: 62.02 kB / 492.8 MB, free: 14.7 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.4664, allocations: 0.8543 MB / 493.7 MB, free: 14.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004947/0.4669, allocations: 0.773 MB / 494.5 MB, free: 13.35 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001668/0.4671, allocations: 29.98 kB / 494.5 MB, free: 13.35 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.392e-05/0.4672, allocations: 22.31 kB / 494.5 MB, free: 13.34 MB / 330.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4672, allocations: 1.156 kB / 494.5 MB, free: 13.34 MB / 330.7 MB Notification: Performance of Templates: time 0.007391/0.4746, allocations: 2.613 MB / 497.1 MB, free: 13.11 MB / 330.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@2/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