Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Units.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",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.001271/0.001271, allocations: 110.2 kB / 17.06 MB, free: 5.82 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.001257/0.001256, allocations: 193.4 kB / 18 MB, free: 4.965 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.459/1.459, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2346/0.2346, allocations: 38.04 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 63.89 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.333, allocations: 58.06 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.00668/0.3398, allocations: 6.089 MB / 0.5095 GB, free: 3.246 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002763/0.3425, allocations: 1.951 MB / 0.5114 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002853/0.3429, allocations: 22.44 kB / 0.5115 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001638/0.3445, allocations: 0.6925 MB / 0.5121 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008594/0.3454, allocations: 376.3 kB / 0.5125 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001136/0.3465, allocations: 394 kB / 0.5129 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.3477, allocations: 0.9445 MB / 0.5138 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006817/0.3484, allocations: 0.4983 MB / 0.5143 GB, free: 460 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006961/0.3491, allocations: 425.6 kB / 0.5147 GB, free: 268 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007711/0.3499, allocations: 0.5309 MB / 0.5152 GB, free: 64 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.35, allocations: 57.75 kB / 0.5153 GB, free: 64 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005514/0.3506, allocations: 239.4 kB / 0.5155 GB, free: 0 / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005071/0.3511, allocations: 416.8 kB / 0.5159 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006301/0.3518, allocations: 427.4 kB / 0.5163 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002034/0.3538, allocations: 1.024 MB / 0.5173 GB, free: 15.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3538, allocations: 0 / 0.5173 GB, free: 15.23 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3538, allocations: 0.625 kB / 0.5173 GB, free: 15.23 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.974e-05/0.3539, allocations: 0 / 0.5173 GB, free: 15.23 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002283/0.3562, allocations: 1.09 MB / 0.5184 GB, free: 14.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.3562, allocations: 14.23 kB / 0.5184 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001953/0.3564, allocations: 135.5 kB / 0.5185 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007625/0.3572, allocations: 142.6 kB / 0.5186 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.3582, allocations: 0.5509 MB / 0.5192 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.542e-05/0.3583, allocations: 57.09 kB / 0.5192 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.3584, allocations: 81.95 kB / 0.5193 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001939/0.3604, allocations: 1.136 MB / 0.5204 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.489e-05/0.3604, allocations: 7.469 kB / 0.5204 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.919e-05/0.3605, allocations: 33.22 kB / 0.5205 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.723e-05/0.3606, allocations: 50.42 kB / 0.5205 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001639/0.3623, allocations: 0.8633 MB / 0.5214 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006381/0.3687, allocations: 5.057 MB / 0.5263 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008014/0.3695, allocations: 418.5 kB / 0.5267 GB, free: 8.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/0.3698, allocations: 211.1 kB / 0.5269 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.398e-05/0.3699, allocations: 11.58 kB / 0.5269 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.279e-05/0.3699, allocations: 38.02 kB / 0.5269 GB, free: 8.801 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 2.405e-06/0.3699, allocations: 0 / 0.5269 GB, free: 8.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=44): time 0.002053/0.372, allocations: 1.081 MB / 0.528 GB, free: 8.289 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.95e-05/0.3721, allocations: 82.8 kB / 0.5281 GB, free: 8.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006119/0.3727, allocations: 0.4962 MB / 0.5286 GB, free: 7.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.891e-05/0.3727, allocations: 34.92 kB / 0.5286 GB, free: 7.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004134/0.3732, allocations: 477.9 kB / 0.5291 GB, free: 7.539 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.3733, allocations: 162.4 kB / 0.5292 GB, free: 7.414 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002113/0.3736, allocations: 151.8 kB / 0.5294 GB, free: 7.336 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.3738, allocations: 371.3 kB / 0.5297 GB, free: 6.996 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003681/0.3741, allocations: 235.7 kB / 0.5299 GB, free: 6.934 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006861/0.3748, allocations: 0.6178 MB / 0.5305 GB, free: 6.348 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.376, allocations: 0.9405 MB / 0.5315 GB, free: 5.598 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.376, allocations: 7.75 kB / 0.5315 GB, free: 5.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001394/0.3774, allocations: 0.8956 MB / 0.5323 GB, free: 5.242 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.3775, allocations: 10.34 kB / 0.5323 GB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.3775, allocations: 14.25 kB / 0.5324 GB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.768e-05/0.3775, allocations: 19.12 kB / 0.5324 GB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007093/0.3782, allocations: 223.9 kB / 0.5326 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.039e-05/0.3783, allocations: 24.84 kB / 0.5326 GB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004924/0.3788, allocations: 53.89 kB / 0.5327 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.484e-05/0.3789, allocations: 45.23 kB / 0.5327 GB, free: 5.188 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000456/0.3793, allocations: 306.4 kB / 0.533 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.514e-05/0.3794, allocations: 56.47 kB / 0.5331 GB, free: 4.953 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001087/0.3805, allocations: 0.5634 MB / 0.5336 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.3805, allocations: 4.75 kB / 0.5336 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3805, allocations: 1.375 kB / 0.5336 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.517e-06/0.3806, allocations: 3.984 kB / 0.5336 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002192/0.3828, allocations: 1.337 MB / 0.5349 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.3828, allocations: 2.406 kB / 0.5349 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004306/0.3832, allocations: 108.7 kB / 0.535 GB, free: 3.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.049e-05/0.3832, allocations: 8.594 kB / 0.535 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.628e-05/0.3833, allocations: 20.52 kB / 0.5351 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/0.3833, allocations: 5.156 kB / 0.5351 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/0.3833, allocations: 10.25 kB / 0.5351 GB, free: 3.715 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008984/0.3842, allocations: 0.6473 MB / 0.5357 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.3844, allocations: 133.8 kB / 0.5358 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.274e-05/0.3845, allocations: 9.094 kB / 0.5358 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000256/0.3847, allocations: 25.03 kB / 0.5359 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.515e-05/0.3848, allocations: 39.62 kB / 0.5359 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.51e-05/0.3848, allocations: 16.72 kB / 0.5359 GB, free: 3.098 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004319/0.3853, allocations: 332.2 kB / 0.5362 GB, free: 2.902 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3853, allocations: 0 / 0.5362 GB, free: 2.902 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008187/0.3861, allocations: 161.2 kB / 0.5364 GB, free: 2.883 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (51): * Single equations (assignments): 50 * 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.001255/0.3874, allocations: 1.199 MB / 0.5376 GB, free: 1.898 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.3885, allocations: 0.6048 MB / 0.5381 GB, free: 1.641 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.3885, allocations: 0 / 0.5381 GB, free: 1.641 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003342/0.3888, allocations: 238.2 kB / 0.5384 GB, free: 1.539 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007161/0.3896, allocations: 129.4 kB / 0.5385 GB, free: 1.473 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008131/0.3977, allocations: 5.798 MB / 0.5442 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00075/0.3985, allocations: 1 MB / 0.5451 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005735/0.3991, allocations: 221.9 kB / 0.5453 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003953/0.3995, allocations: 262 kB / 0.5456 GB, free: 12.02 MB / 414.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3995, allocations: 0 / 0.5456 GB, free: 12.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03631/0.4358, allocations: 11.37 MB / 0.5567 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.857/9.293, allocations: 2.812 kB / 0.5567 GB, free: 0.7578 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Units.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.Units_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-05 PowerSystems_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_PowerSystems.Examples.Introductory.Units.pipe 2>&1)