Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.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.Introductory.InitialSteadyState,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_InitialSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.InitialSteadyState,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_InitialSteadyState",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.001268/0.001268, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001307/0.001307, allocations: 197.3 kB / 18.01 MB, free: 5.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.437/1.437, 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.1842/0.1842, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 67.89 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3216, allocations: 58.05 MB / 0.5036 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.InitialSteadyState): time 0.004761/0.3264, allocations: 4.428 MB / 0.5079 GB, free: 4.422 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00196/0.3284, allocations: 1.412 MB / 0.5093 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001826/0.3286, allocations: 16.94 kB / 0.5093 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008969/0.3295, allocations: 386.5 kB / 0.5097 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004974/0.33, allocations: 252.4 kB / 0.5099 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006371/0.3307, allocations: 240.9 kB / 0.5102 GB, free: 2.957 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005282/0.3312, allocations: 0.5515 MB / 0.5107 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003834/0.3316, allocations: 278.3 kB / 0.511 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000316/0.3319, allocations: 265.3 kB / 0.5112 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005325/0.3325, allocations: 363.1 kB / 0.5116 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.101e-05/0.3326, allocations: 39.03 kB / 0.5116 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004619/0.333, allocations: 225.7 kB / 0.5118 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002559/0.3333, allocations: 233.3 kB / 0.512 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002489/0.3336, allocations: 261.8 kB / 0.5123 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009149/0.3345, allocations: 0.6712 MB / 0.5129 GB, free: 1.844 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3345, allocations: 0 / 0.5129 GB, free: 1.844 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3345, allocations: 1.969 kB / 0.5129 GB, free: 1.844 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.509e-05/0.3345, allocations: 0 / 0.5129 GB, free: 1.844 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001369/0.3359, allocations: 0.7828 MB / 0.5137 GB, free: 1.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.3359, allocations: 12.95 kB / 0.5137 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.939e-05/0.336, allocations: 91.77 kB / 0.5138 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006448/0.3367, allocations: 95.78 kB / 0.5139 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006287/0.3373, allocations: 430.5 kB / 0.5143 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.818e-05/0.3374, allocations: 25.25 kB / 0.5143 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001402/0.3375, allocations: 53.33 kB / 0.5144 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009665/0.3385, allocations: 0.6782 MB / 0.5151 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.3385, allocations: 1.219 kB / 0.5151 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.793e-05/0.3386, allocations: 15.78 kB / 0.5151 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001748/0.3388, allocations: 57.28 kB / 0.5151 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.3399, allocations: 0.6668 MB / 0.5158 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003909/0.3438, allocations: 2.433 MB / 0.5182 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006142/0.3444, allocations: 359.6 kB / 0.5185 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003563/0.3448, allocations: 260.2 kB / 0.5187 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.861e-05/0.3448, allocations: 12.42 kB / 0.5188 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.3449, allocations: 41.09 kB / 0.5188 GB, free: 14.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.665e-06/0.3449, allocations: 0 / 0.5188 GB, free: 14.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=46): time 0.002564/0.3475, allocations: 1.474 MB / 0.5202 GB, free: 13.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.814e-05/0.3475, allocations: 88.52 kB / 0.5203 GB, free: 13.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.3479, allocations: 283.5 kB / 0.5206 GB, free: 13.35 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.3479, allocations: 30.73 kB / 0.5206 GB, free: 13.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002316/0.3482, allocations: 259.5 kB / 0.5209 GB, free: 13.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001803/0.3484, allocations: 165 kB / 0.521 GB, free: 12.97 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002093/0.3486, allocations: 91.34 kB / 0.5211 GB, free: 12.92 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.3488, allocations: 349.5 kB / 0.5214 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003825/0.3492, allocations: 220.4 kB / 0.5217 GB, free: 12.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004809/0.3497, allocations: 358.7 kB / 0.522 GB, free: 12.3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009084/0.3506, allocations: 0.6324 MB / 0.5226 GB, free: 11.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.3506, allocations: 1.375 kB / 0.5226 GB, free: 11.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001602/0.3522, allocations: 0.7279 MB / 0.5233 GB, free: 11.64 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.3522, allocations: 7.359 kB / 0.5233 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001039/0.3533, allocations: 0.5209 MB / 0.5238 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003651/0.3537, allocations: 77.39 kB / 0.5239 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004253/0.3541, allocations: 113.8 kB / 0.524 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/0.3561, allocations: 1.724 MB / 0.5257 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004007/0.3565, allocations: 30.33 kB / 0.5257 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.355e-05/0.3566, allocations: 21.77 kB / 0.5258 GB, free: 9.895 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (54): * Single equations (assignments): 51 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003604/0.3569, allocations: 219.2 kB / 0.526 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.3571, allocations: 41.25 kB / 0.526 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009728/0.358, allocations: 0.5615 MB / 0.5266 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.358e-05/0.3581, allocations: 11.89 kB / 0.5266 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.3581, allocations: 0 / 0.5266 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3581, allocations: 3.781 kB / 0.5266 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002185/0.3603, allocations: 1.194 MB / 0.5277 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.3603, allocations: 1.312 kB / 0.5277 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004383/0.3607, allocations: 84.12 kB / 0.5278 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.3608, allocations: 3.031 kB / 0.5278 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.73e-05/0.3608, allocations: 10.08 kB / 0.5278 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.3608, allocations: 3.328 kB / 0.5278 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3608, allocations: 1.25 kB / 0.5278 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.3622, allocations: 0.9375 MB / 0.5287 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.3623, allocations: 108.1 kB / 0.5289 GB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.846e-05/0.3624, allocations: 9.969 kB / 0.5289 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.3626, allocations: 21.61 kB / 0.5289 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.171e-05/0.3627, allocations: 28.17 kB / 0.5289 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.856e-05/0.3627, allocations: 18.67 kB / 0.5289 GB, free: 8.266 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002545/0.363, allocations: 197.5 kB / 0.5291 GB, free: 8.156 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.363, allocations: 5.406 kB / 0.5291 GB, free: 8.152 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006809/0.3637, allocations: 120.2 kB / 0.5292 GB, free: 8.137 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (39): * Single equations (assignments): 36 * Array equations: 2 * 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.00191/0.3656, allocations: 1.513 MB / 0.5307 GB, free: 7.141 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001236/0.3669, allocations: 0.6645 MB / 0.5314 GB, free: 6.859 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3669, allocations: 320 / 0.5314 GB, free: 6.859 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003973/0.3673, allocations: 266.6 kB / 0.5316 GB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005855/0.3679, allocations: 79.28 kB / 0.5317 GB, free: 6.727 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006592/0.3745, allocations: 4.585 MB / 0.5362 GB, free: 3.824 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005891/0.3751, allocations: 0.873 MB / 0.537 GB, free: 3.039 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003377/0.3754, allocations: 133.8 kB / 0.5371 GB, free: 2.984 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003043/0.3758, allocations: 151.5 kB / 0.5373 GB, free: 2.859 MB / 398.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3758, allocations: 0 / 0.5373 GB, free: 2.859 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03961/0.4154, allocations: 8.625 MB / 0.5457 GB, free: 12.67 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.97, allocations: 4 kB / 0.5457 GB, free: 12.67 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_latest_PowerSystems_Examples_Introductory_InitialSteadyState.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.InitialSteadyState.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches