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/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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.00126, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001171/0.001171, allocations: 191 kB / 18 MB, free: 5.09 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.455/1.455, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1864/0.1864, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 71.88 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4559/0.4581, allocations: 58.04 MB / 0.5036 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.005498/0.4636, allocations: 4.087 MB / 0.5076 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.4654, allocations: 0.8526 MB / 0.5084 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002214/0.4657, allocations: 10.47 kB / 0.5085 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000286/0.466, allocations: 45.61 kB / 0.5085 GB, free: 3.988 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005973/0.4666, allocations: 164.1 kB / 0.5087 GB, free: 3.891 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002734/0.4669, allocations: 96.58 kB / 0.5087 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005428/0.4674, allocations: 399.1 kB / 0.5091 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002626/0.4677, allocations: 112 kB / 0.5092 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002924/0.468, allocations: 179.5 kB / 0.5094 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003601/0.4684, allocations: 177.8 kB / 0.5096 GB, free: 3.465 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.386e-05/0.4684, allocations: 20.84 kB / 0.5096 GB, free: 3.465 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.925e-05/0.4685, allocations: 24.78 kB / 0.5096 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.4687, allocations: 92.45 kB / 0.5097 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001704/0.4688, allocations: 135.2 kB / 0.5098 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004069/0.4692, allocations: 290.7 kB / 0.5101 GB, free: 3.219 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.4693, allocations: 0 / 0.5101 GB, free: 3.219 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.4693, allocations: 1.062 kB / 0.5101 GB, free: 3.219 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.076e-06/0.4693, allocations: 0 / 0.5101 GB, free: 3.219 MB / 382.1 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.001112/0.4704, allocations: 0.603 MB / 0.5107 GB, free: 2.715 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.798e-05/0.4705, allocations: 17.52 kB / 0.5107 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.574e-05/0.4705, allocations: 59.47 kB / 0.5108 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.993e-05/0.4706, allocations: 44.14 kB / 0.5108 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006293/0.4713, allocations: 337.8 kB / 0.5111 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.4713, allocations: 18.66 kB / 0.5112 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.4715, allocations: 35.34 kB / 0.5112 GB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005074/0.472, allocations: 290 kB / 0.5115 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.472, allocations: 0 / 0.5115 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.725e-05/0.472, allocations: 11.44 kB / 0.5115 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.472, allocations: 5.125 kB / 0.5115 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003499/0.4724, allocations: 188.9 kB / 0.5117 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.4738, allocations: 1.28 MB / 0.5129 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002724/0.4741, allocations: 120.3 kB / 0.513 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.993e-05/0.4742, allocations: 45.19 kB / 0.5131 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.4742, allocations: 2.094 kB / 0.5131 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.178e-05/0.4742, allocations: 39.84 kB / 0.5131 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.4743, allocations: 1.031 kB / 0.5131 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009427/0.4752, allocations: 0.5402 MB / 0.5136 GB, free: 412 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.4753, allocations: 105.6 kB / 0.5137 GB, free: 284 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002381/0.4755, allocations: 244.9 kB / 0.514 GB, free: 136 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.4755, allocations: 30.7 kB / 0.514 GB, free: 100 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.4757, allocations: 197.7 kB / 0.5142 GB, free: 15.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.595e-05/0.4757, allocations: 41.14 kB / 0.5142 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.531e-05/0.4758, allocations: 53.53 kB / 0.5143 GB, free: 15.86 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.476, allocations: 331.3 kB / 0.5146 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.4761, allocations: 41.78 kB / 0.5146 GB, free: 15.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.4763, allocations: 131.2 kB / 0.5148 GB, free: 15.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000328/0.4766, allocations: 187.1 kB / 0.5149 GB, free: 15.22 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4766, allocations: 1.281 kB / 0.5149 GB, free: 15.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000552/0.4772, allocations: 233.4 kB / 0.5152 GB, free: 15.1 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.4772, allocations: 7.266 kB / 0.5152 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.4772, allocations: 2.625 kB / 0.5152 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001639/0.4774, allocations: 30.8 kB / 0.5152 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004208/0.4779, allocations: 65.52 kB / 0.5153 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.032e-05/0.4779, allocations: 13.06 kB / 0.5153 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001753/0.4781, allocations: 8.25 kB / 0.5153 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.798e-05/0.4781, allocations: 16.95 kB / 0.5153 GB, free: 15.05 MB / 398.1 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.0001944/0.4783, allocations: 147.1 kB / 0.5154 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.45e-05/0.4784, allocations: 26.14 kB / 0.5155 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003691/0.4788, allocations: 146.9 kB / 0.5156 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.4788, allocations: 6.562 kB / 0.5156 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.4788, allocations: 1.344 kB / 0.5156 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.4788, allocations: 1.266 kB / 0.5156 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000565/0.4794, allocations: 284.1 kB / 0.5159 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.4794, allocations: 1.156 kB / 0.5159 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002269/0.4797, allocations: 30.45 kB / 0.5159 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.4797, allocations: 6 kB / 0.5159 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.204e-05/0.4797, allocations: 1.844 kB / 0.5159 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.826e-06/0.4797, allocations: 6.969 kB / 0.5159 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.4797, allocations: 0.9688 kB / 0.5159 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006443/0.4804, allocations: 363.8 kB / 0.5163 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/0.4805, allocations: 96.75 kB / 0.5164 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/0.4806, allocations: 6.578 kB / 0.5164 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.4807, allocations: 8.938 kB / 0.5164 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/0.4808, allocations: 16.92 kB / 0.5164 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.4808, allocations: 4.031 kB / 0.5164 GB, free: 14.17 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002479/0.4811, allocations: 172 kB / 0.5166 GB, free: 14.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4811, allocations: 0 / 0.5166 GB, free: 14.06 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004173/0.4815, allocations: 49.34 kB / 0.5166 GB, free: 14.05 MB / 398.1 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.0009353/0.4824, allocations: 0.8999 MB / 0.5175 GB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000451/0.4829, allocations: 205.6 kB / 0.5177 GB, free: 13.1 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.4829, allocations: 0 / 0.5177 GB, free: 13.1 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.483, allocations: 50.61 kB / 0.5177 GB, free: 13.08 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006404/0.4837, allocations: 59.48 kB / 0.5178 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003752/0.4874, allocations: 2.631 MB / 0.5204 GB, free: 11.04 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004058/0.4879, allocations: 0.7736 MB / 0.5211 GB, free: 10.33 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001423/0.488, allocations: 26.67 kB / 0.5211 GB, free: 10.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.4882, allocations: 85.05 kB / 0.5212 GB, free: 10.26 MB / 398.1 MB Notification: Performance of SimCode: time 1.383e-06/0.4882, allocations: 5.125 kB / 0.5212 GB, free: 10.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02958/0.5177, allocations: 4.88 MB / 0.526 GB, free: 9.621 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.73/10.25, allocations: 16.45 kB / 0.526 GB, free: 9.609 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000270051 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches