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.001322/0.001322, allocations: 110.1 kB / 17.06 MB, free: 6.016 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.001281/0.00128, allocations: 189.4 kB / 18 MB, free: 5.102 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.376/1.376, 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.222/0.222, allocations: 38.03 MB / 329.9 MB, free: 8.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00204/0.002041, allocations: 67.88 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3417, allocations: 58.05 MB / 0.5036 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007971/0.3497, allocations: 6.095 MB / 0.5095 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003549/0.3533, allocations: 1.955 MB / 0.5115 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00064/0.354, allocations: 22.34 kB / 0.5115 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001804/0.3558, allocations: 0.6959 MB / 0.5122 GB, free: 1.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001073/0.3569, allocations: 372.6 kB / 0.5125 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.358, allocations: 400.8 kB / 0.5129 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.3592, allocations: 0.9424 MB / 0.5138 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006762/0.3599, allocations: 0.5002 MB / 0.5143 GB, free: 492 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007459/0.3607, allocations: 423.4 kB / 0.5147 GB, free: 304 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008603/0.3615, allocations: 0.5304 MB / 0.5152 GB, free: 100 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.3617, allocations: 58.16 kB / 0.5153 GB, free: 100 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000568/0.3622, allocations: 235.5 kB / 0.5155 GB, free: 40 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004868/0.3627, allocations: 420 kB / 0.5159 GB, free: 15.9 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005619/0.3633, allocations: 427.5 kB / 0.5163 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001696/0.365, allocations: 1.016 MB / 0.5173 GB, free: 15.28 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.365, allocations: 0.5 kB / 0.5173 GB, free: 15.28 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.365, allocations: 3.938 kB / 0.5173 GB, free: 15.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.79e-05/0.3651, allocations: 5.219 kB / 0.5173 GB, free: 15.27 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.002112/0.3672, allocations: 1.088 MB / 0.5184 GB, free: 14.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.3672, allocations: 13.64 kB / 0.5184 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001822/0.3674, allocations: 131.6 kB / 0.5185 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007128/0.3682, allocations: 142.8 kB / 0.5186 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009513/0.3691, allocations: 0.5549 MB / 0.5192 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.802e-05/0.3692, allocations: 57.19 kB / 0.5192 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.3693, allocations: 81.73 kB / 0.5193 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/0.371, allocations: 1.131 MB / 0.5204 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.434e-05/0.3711, allocations: 7.062 kB / 0.5204 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.252e-05/0.3712, allocations: 33.41 kB / 0.5205 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.257e-05/0.3712, allocations: 56.7 kB / 0.5205 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.3728, allocations: 0.8628 MB / 0.5214 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006215/0.379, allocations: 5.06 MB / 0.5263 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008267/0.3799, allocations: 414.2 kB / 0.5267 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003401/0.3802, allocations: 210.7 kB / 0.5269 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.308e-05/0.3803, allocations: 10.67 kB / 0.5269 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.218e-05/0.3803, allocations: 46.36 kB / 0.527 GB, free: 8.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 2.385e-06/0.3804, allocations: 0 / 0.527 GB, free: 8.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=44): time 0.002291/0.3827, allocations: 1.082 MB / 0.528 GB, free: 8.328 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.77e-05/0.3827, allocations: 82.45 kB / 0.5281 GB, free: 8.234 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006828/0.3834, allocations: 0.4952 MB / 0.5286 GB, free: 7.996 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.619e-05/0.3835, allocations: 31.89 kB / 0.5286 GB, free: 7.961 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000407/0.3839, allocations: 473.3 kB / 0.5291 GB, free: 7.586 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.3841, allocations: 159.2 kB / 0.5292 GB, free: 7.465 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000247/0.3843, allocations: 159 kB / 0.5294 GB, free: 7.379 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.3845, allocations: 371.3 kB / 0.5297 GB, free: 7.039 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003829/0.3849, allocations: 236.8 kB / 0.5299 GB, free: 6.977 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007039/0.3856, allocations: 0.621 MB / 0.5305 GB, free: 6.387 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.3869, allocations: 0.9354 MB / 0.5315 GB, free: 5.641 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/0.3869, allocations: 5.5 kB / 0.5315 GB, free: 5.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001533/0.3884, allocations: 0.8994 MB / 0.5323 GB, free: 5.285 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/0.3885, allocations: 14.19 kB / 0.5324 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-05/0.3885, allocations: 17.88 kB / 0.5324 GB, free: 5.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.731e-05/0.3885, allocations: 18.62 kB / 0.5324 GB, free: 5.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007691/0.3893, allocations: 215.7 kB / 0.5326 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.07e-05/0.3894, allocations: 25.25 kB / 0.5326 GB, free: 5.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005288/0.3899, allocations: 62 kB / 0.5327 GB, free: 5.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.162e-05/0.39, allocations: 41.22 kB / 0.5327 GB, free: 5.227 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.0004994/0.3905, allocations: 306.5 kB / 0.533 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.3906, allocations: 57.23 kB / 0.5331 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.3916, allocations: 0.5591 MB / 0.5336 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.3916, allocations: 14.38 kB / 0.5336 GB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3917, allocations: 4 kB / 0.5336 GB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.3917, allocations: 1.219 kB / 0.5336 GB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002296/0.394, allocations: 1.337 MB / 0.5349 GB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.394, allocations: 2.281 kB / 0.5349 GB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004349/0.3944, allocations: 112.7 kB / 0.535 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.129e-05/0.3945, allocations: 8.438 kB / 0.5351 GB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.687e-05/0.3945, allocations: 13.38 kB / 0.5351 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.3945, allocations: 4.031 kB / 0.5351 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.3945, allocations: 7.016 kB / 0.5351 GB, free: 3.746 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008564/0.3954, allocations: 0.6464 MB / 0.5357 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001835/0.3956, allocations: 134.4 kB / 0.5358 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.839e-05/0.3957, allocations: 12.12 kB / 0.5358 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002533/0.3959, allocations: 21.22 kB / 0.5359 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.179e-05/0.396, allocations: 37.25 kB / 0.5359 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.396, allocations: 15.08 kB / 0.5359 GB, free: 3.133 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003958/0.3964, allocations: 329 kB / 0.5362 GB, free: 2.941 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.974e-06/0.3964, allocations: 0 / 0.5362 GB, free: 2.941 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008102/0.3973, allocations: 169 kB / 0.5364 GB, free: 2.914 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.001177/0.3985, allocations: 1.195 MB / 0.5376 GB, free: 1.934 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.3995, allocations: 0.6049 MB / 0.5381 GB, free: 1.676 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3995, allocations: 1.062 kB / 0.5382 GB, free: 1.676 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003448/0.3999, allocations: 237.7 kB / 0.5384 GB, free: 1.574 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007409/0.4006, allocations: 116.5 kB / 0.5385 GB, free: 1.508 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007958/0.4086, allocations: 5.802 MB / 0.5442 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007253/0.4094, allocations: 1.001 MB / 0.5451 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005557/0.4099, allocations: 229.1 kB / 0.5454 GB, free: 12.26 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003708/0.4103, allocations: 251.9 kB / 0.5456 GB, free: 12.04 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4103, allocations: 0 / 0.5456 GB, free: 12.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03563/0.446, allocations: 11.38 MB / 0.5567 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.609/9.055, allocations: 3.375 kB / 0.5567 GB, free: 0.7539 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_PowerSystems.Examples.Introductory.Units.pipe 2>&1)