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.001033/0.001033, allocations: 113.5 kB / 17.06 MB, free: 5.992 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.001078/0.001078, allocations: 200 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.265/1.265, 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/package.mo): time 0.2027/0.2027, allocations: 38.03 MB / 329.9 MB, free: 8.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 67.91 kB / 457.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2882, allocations: 58.07 MB / 0.5036 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007336/0.2956, allocations: 6.097 MB / 0.5096 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002582/0.2982, allocations: 1.948 MB / 0.5115 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002287/0.2985, allocations: 22.97 kB / 0.5115 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001481/0.3, allocations: 0.6877 MB / 0.5121 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006399/0.3006, allocations: 379.8 kB / 0.5125 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008476/0.3015, allocations: 400.6 kB / 0.5129 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008273/0.3023, allocations: 0.9397 MB / 0.5138 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005816/0.3029, allocations: 0.5063 MB / 0.5143 GB, free: 464 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004851/0.3034, allocations: 436.1 kB / 0.5147 GB, free: 268 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006162/0.304, allocations: 0.5279 MB / 0.5152 GB, free: 68 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.171e-05/0.3041, allocations: 57.06 kB / 0.5153 GB, free: 68 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004019/0.3045, allocations: 231.8 kB / 0.5155 GB, free: 12 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004093/0.3049, allocations: 420.1 kB / 0.5159 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004733/0.3054, allocations: 432.2 kB / 0.5163 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001328/0.3068, allocations: 1.019 MB / 0.5173 GB, free: 15.24 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3068, allocations: 0.5625 kB / 0.5173 GB, free: 15.24 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3068, allocations: 0.5938 kB / 0.5173 GB, free: 15.24 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.223e-05/0.3068, allocations: 3.969 kB / 0.5173 GB, free: 15.24 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.001869/0.3087, allocations: 1.082 MB / 0.5184 GB, free: 14.49 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.3087, allocations: 13.34 kB / 0.5184 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/0.3089, allocations: 134.9 kB / 0.5185 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007241/0.3096, allocations: 144.5 kB / 0.5187 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009548/0.3106, allocations: 0.5464 MB / 0.5192 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.764e-05/0.3107, allocations: 58.36 kB / 0.5192 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.3108, allocations: 80.64 kB / 0.5193 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001567/0.3124, allocations: 1.139 MB / 0.5204 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.29e-05/0.3124, allocations: 3.375 kB / 0.5204 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.409e-05/0.3125, allocations: 38.06 kB / 0.5205 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-05/0.3126, allocations: 50.7 kB / 0.5205 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001372/0.314, allocations: 0.863 MB / 0.5214 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005002/0.319, allocations: 5.057 MB / 0.5263 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006755/0.3197, allocations: 417.2 kB / 0.5267 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003021/0.32, allocations: 219.2 kB / 0.5269 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.279e-05/0.32, allocations: 10.86 kB / 0.5269 GB, free: 8.855 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.3201, allocations: 37.77 kB / 0.527 GB, free: 8.812 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 2.224e-06/0.3201, allocations: 1 kB / 0.527 GB, free: 8.812 MB / 398.1 MB Notification: Performance of matching and sorting (n=44): time 0.001833/0.3219, allocations: 1.085 MB / 0.528 GB, free: 8.297 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.75e-05/0.322, allocations: 82.88 kB / 0.5281 GB, free: 8.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005671/0.3225, allocations: 0.5004 MB / 0.5286 GB, free: 7.961 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.211e-05/0.3226, allocations: 30.8 kB / 0.5286 GB, free: 7.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002909/0.3229, allocations: 473.3 kB / 0.5291 GB, free: 7.551 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000138/0.323, allocations: 162.4 kB / 0.5292 GB, free: 7.426 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001986/0.3232, allocations: 152.2 kB / 0.5294 GB, free: 7.348 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.3234, allocations: 371 kB / 0.5297 GB, free: 7.008 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003576/0.3238, allocations: 239.9 kB / 0.53 GB, free: 6.941 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005589/0.3243, allocations: 0.6186 MB / 0.5306 GB, free: 6.355 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009991/0.3253, allocations: 0.9392 MB / 0.5315 GB, free: 5.605 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.363e-06/0.3254, allocations: 3.625 kB / 0.5315 GB, free: 5.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001633/0.327, allocations: 0.8985 MB / 0.5324 GB, free: 5.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.327, allocations: 12.88 kB / 0.5324 GB, free: 5.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.3271, allocations: 13.34 kB / 0.5324 GB, free: 5.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.018e-05/0.3271, allocations: 22.52 kB / 0.5324 GB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007015/0.3278, allocations: 220.3 kB / 0.5326 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.985e-05/0.3278, allocations: 28.67 kB / 0.5326 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004376/0.3283, allocations: 57.7 kB / 0.5327 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.853e-05/0.3283, allocations: 41.09 kB / 0.5327 GB, free: 5.191 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.0003525/0.3287, allocations: 306.8 kB / 0.533 GB, free: 4.988 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.094e-05/0.3288, allocations: 57.42 kB / 0.5331 GB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008996/0.3297, allocations: 0.5586 MB / 0.5336 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.932e-06/0.3297, allocations: 5.594 kB / 0.5336 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3297, allocations: 0 / 0.5336 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/0.3297, allocations: 5.359 kB / 0.5336 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001994/0.3317, allocations: 1.336 MB / 0.5349 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3318, allocations: 2.406 kB / 0.5349 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004231/0.3322, allocations: 108.8 kB / 0.535 GB, free: 3.746 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.3322, allocations: 7.75 kB / 0.5351 GB, free: 3.742 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.079e-05/0.3323, allocations: 14.06 kB / 0.5351 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.235e-06/0.3323, allocations: 16.17 kB / 0.5351 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3323, allocations: 2.75 kB / 0.5351 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007356/0.333, allocations: 0.6423 MB / 0.5357 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.3331, allocations: 131.3 kB / 0.5358 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.325e-05/0.3332, allocations: 11.88 kB / 0.5358 GB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002711/0.3335, allocations: 26.03 kB / 0.5359 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.13e-05/0.3336, allocations: 35.83 kB / 0.5359 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/0.3336, allocations: 15.56 kB / 0.5359 GB, free: 3.113 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003213/0.3339, allocations: 328.6 kB / 0.5362 GB, free: 2.922 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3339, allocations: 3.938 kB / 0.5362 GB, free: 2.918 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006721/0.3346, allocations: 162.4 kB / 0.5364 GB, free: 2.898 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.0009827/0.3356, allocations: 1.201 MB / 0.5376 GB, free: 1.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008416/0.3364, allocations: 0.6046 MB / 0.5382 GB, free: 1.652 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3365, allocations: 1.125 kB / 0.5382 GB, free: 1.652 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.3368, allocations: 239.7 kB / 0.5384 GB, free: 1.551 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006709/0.3374, allocations: 121.3 kB / 0.5385 GB, free: 1.488 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006381/0.3438, allocations: 5.805 MB / 0.5442 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005944/0.3445, allocations: 1.005 MB / 0.5452 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004914/0.345, allocations: 228.6 kB / 0.5454 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003289/0.3453, allocations: 255.3 kB / 0.5456 GB, free: 11.98 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3453, allocations: 0 / 0.5456 GB, free: 11.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02819/0.3735, allocations: 11.36 MB / 0.5567 GB, free: 0.707 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.35/8.724, allocations: 3.375 kB / 0.5567 GB, free: 0.707 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)