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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.0009125/0.0009125, allocations: 90.48 kB / 16.31 MB, free: 6.453 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.000825/0.0008252, allocations: 180.7 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.4 MB / 223.4 MB, free: 5.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.4241/0.4241, allocations: 38.06 MB / 309.7 MB, free: 8.863 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005076/0.0005077, allocations: 12 kB / 376.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1384, allocations: 56.34 MB / 432.9 MB, free: 6.598 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007153/0.1456, allocations: 6.512 MB / 439.5 MB, free: 60 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004207/0.1499, allocations: 2.257 MB / 441.7 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006094/0.1505, allocations: 43.69 kB / 441.8 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003435/0.1509, allocations: 146.8 kB / 441.9 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001057/0.1519, allocations: 441.8 kB / 442.3 MB, free: 13.17 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00118/0.1531, allocations: 399.2 kB / 442.7 MB, free: 12.78 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001265/0.1544, allocations: 1.158 MB / 443.9 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001447/0.1559, allocations: 0.7768 MB / 444.7 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006163/0.1565, allocations: 350.5 kB / 445 MB, free: 10.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007252/0.1572, allocations: 0.5181 MB / 445.5 MB, free: 9.953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.425e-05/0.1573, allocations: 28 kB / 445.5 MB, free: 9.926 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004312/0.1577, allocations: 155.8 kB / 445.7 MB, free: 9.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000354/0.1581, allocations: 391 kB / 446.1 MB, free: 9.391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001703/0.1583, allocations: 173.3 kB / 446.3 MB, free: 9.215 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007068/0.159, allocations: 0.752 MB / 447 MB, free: 8.461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.159, allocations: 4 kB / 447 MB, free: 8.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.159, allocations: 0 / 447 MB, free: 8.457 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.159, allocations: 0 / 447 MB, free: 8.457 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.001411/0.1605, allocations: 0.9273 MB / 447.9 MB, free: 7.477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.1605, allocations: 8.031 kB / 447.9 MB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001675/0.1607, allocations: 135.1 kB / 448.1 MB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001019/0.1617, allocations: 142.8 kB / 448.2 MB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007151/0.1624, allocations: 0.5 MB / 448.7 MB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.305e-05/0.1625, allocations: 58 kB / 448.8 MB, free: 6.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.1626, allocations: 72 kB / 448.8 MB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.1642, allocations: 1.134 MB / 450 MB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.859e-05/0.1642, allocations: 7.938 kB / 450 MB, free: 5.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.862e-05/0.1643, allocations: 32 kB / 450 MB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.806e-05/0.1643, allocations: 53.98 kB / 450.1 MB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.1657, allocations: 0.8584 MB / 450.9 MB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3007/0.4663, allocations: 5.038 MB / 456 MB, free: 48.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006554/0.467, allocations: 428.4 kB / 456.4 MB, free: 48.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002548/0.4673, allocations: 209.5 kB / 456.6 MB, free: 48.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.841e-05/0.4674, allocations: 18.41 kB / 456.6 MB, free: 48.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.4674, allocations: 33.75 kB / 456.6 MB, free: 48.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 4.198e-06/0.4674, allocations: 3.156 kB / 456.6 MB, free: 48.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.001787/0.4692, allocations: 1.066 MB / 457.7 MB, free: 48.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.782e-05/0.4693, allocations: 82.95 kB / 457.8 MB, free: 48.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004741/0.4697, allocations: 0.495 MB / 458.3 MB, free: 48.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.4698, allocations: 32.39 kB / 458.3 MB, free: 48.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002284/0.47, allocations: 458 kB / 458.8 MB, free: 47.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.4701, allocations: 157.7 kB / 458.9 MB, free: 47.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.152e-05/0.4702, allocations: 19.45 kB / 458.9 MB, free: 47.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.4703, allocations: 364.2 kB / 459.3 MB, free: 47.35 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003224/0.4706, allocations: 236 kB / 459.5 MB, free: 47.35 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005005/0.4711, allocations: 0.6118 MB / 460.1 MB, free: 46.87 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004853/0.4716, allocations: 360.8 kB / 460.5 MB, free: 46.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.4716, allocations: 8.812 kB / 460.5 MB, free: 46.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001124/0.4727, allocations: 0.8816 MB / 461.4 MB, free: 46.76 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/0.4728, allocations: 13.39 kB / 461.4 MB, free: 46.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.4728, allocations: 15.66 kB / 461.4 MB, free: 46.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.43e-05/0.4729, allocations: 18.81 kB / 461.4 MB, free: 46.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000645/0.4735, allocations: 220.4 kB / 461.6 MB, free: 46.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.578e-05/0.4736, allocations: 27.44 kB / 461.7 MB, free: 46.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003951/0.474, allocations: 62.8 kB / 461.7 MB, free: 46.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-05/0.474, allocations: 40.22 kB / 461.8 MB, free: 46.73 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003503/0.4744, allocations: 300.3 kB / 462.1 MB, free: 46.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.332e-05/0.4745, allocations: 56.53 kB / 462.1 MB, free: 46.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008035/0.4753, allocations: 0.5569 MB / 462.7 MB, free: 46.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.4753, allocations: 11.11 kB / 462.7 MB, free: 46.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.4753, allocations: 3.781 kB / 462.7 MB, free: 46.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.4753, allocations: 6.828 kB / 462.7 MB, free: 46.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00192/0.4772, allocations: 1.33 MB / 464 MB, free: 46.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.4773, allocations: 5.75 kB / 464 MB, free: 46.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003733/0.4776, allocations: 113 kB / 464.1 MB, free: 46.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.4777, allocations: 3.062 kB / 464.1 MB, free: 46.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.423e-05/0.4777, allocations: 12.47 kB / 464.2 MB, free: 46.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.4777, allocations: 12.5 kB / 464.2 MB, free: 46.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.4777, allocations: 3.156 kB / 464.2 MB, free: 46.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007656/0.4785, allocations: 0.6483 MB / 464.8 MB, free: 45.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.777e-05/0.4786, allocations: 122.5 kB / 464.9 MB, free: 45.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.947e-05/0.4787, allocations: 18.06 kB / 465 MB, free: 45.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002185/0.4789, allocations: 21.41 kB / 465 MB, free: 45.72 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.53e-05/0.479, allocations: 34.33 kB / 465 MB, free: 45.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.052e-05/0.479, allocations: 19.69 kB / 465 MB, free: 45.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003217/0.4793, allocations: 324.7 kB / 465.3 MB, free: 45.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4794, allocations: 0 / 465.3 MB, free: 45.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006981/0.4801, allocations: 164.6 kB / 465.5 MB, free: 45.63 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008756/0.4809, allocations: 1.194 MB / 466.7 MB, free: 44.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008006/0.4818, allocations: 0.5861 MB / 467.3 MB, free: 44.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.4818, allocations: 1.938 kB / 467.3 MB, free: 44.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002793/0.482, allocations: 239.9 kB / 467.5 MB, free: 44.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006339/0.4827, allocations: 125.2 kB / 467.6 MB, free: 44.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004753/0.4875, allocations: 3.948 MB / 471.6 MB, free: 42.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005004/0.488, allocations: 1.006 MB / 472.6 MB, free: 41.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005486/0.4885, allocations: 227.7 kB / 472.8 MB, free: 41.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003187/0.4889, allocations: 255.3 kB / 473.1 MB, free: 41.32 MB / 382.1 MB Notification: Performance of SimCode: time 1.402e-06/0.4889, allocations: 0 / 473.1 MB, free: 41.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02391/0.5128, allocations: 10.8 MB / 483.9 MB, free: 40.53 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001409/0.513, allocations: 170.1 kB / 484 MB, free: 40.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.988/2.501, allocations: 0 / 484 MB, free: 40.29 MB / 382.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/linux/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) Environment - environmentSimulation: