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.001611/0.001611, allocations: 110.1 kB / 16.51 MB, free: 6.707 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.001811/0.001811, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.385/1.385, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1863/0.1863, allocations: 37.98 MB / 308.6 MB, free: 6.25 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.001347/0.001347, allocations: 67.91 kB / 374.7 MB, free: 4.023 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2587, allocations: 55.24 MB / 430 MB, free: 19.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.005917/0.2646, allocations: 7.349 MB / 437.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004077/0.2688, allocations: 2.389 MB / 439.7 MB, free: 9.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005568/0.2693, allocations: 51.62 kB / 439.7 MB, free: 9.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001389/0.2707, allocations: 0.6491 MB / 440.4 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008062/0.2716, allocations: 358.6 kB / 440.7 MB, free: 8.922 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00098/0.2726, allocations: 359.3 kB / 441.1 MB, free: 8.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001034/0.2736, allocations: 1.497 MB / 442.6 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006775/0.2743, allocations: 498.9 kB / 443.1 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004539/0.2748, allocations: 374.3 kB / 443.4 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006466/0.2754, allocations: 0.5647 MB / 444 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.364e-05/0.2755, allocations: 40 kB / 444.1 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004888/0.276, allocations: 255.5 kB / 444.3 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000301/0.2763, allocations: 403 kB / 444.7 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003266/0.2766, allocations: 410 kB / 445.1 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007186/0.2774, allocations: 0.9929 MB / 446.1 MB, free: 3.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.2774, allocations: 0 / 446.1 MB, free: 3.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2774, allocations: 0 / 446.1 MB, free: 3.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.2774, allocations: 0 / 446.1 MB, free: 3.566 MB / 318.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.001437/0.2789, allocations: 1.072 MB / 447.2 MB, free: 2.445 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.2789, allocations: 8.031 kB / 447.2 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001153/0.279, allocations: 131.3 kB / 447.3 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006433/0.2797, allocations: 139.8 kB / 447.4 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006583/0.2803, allocations: 0.5167 MB / 447.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.688e-05/0.2804, allocations: 54.38 kB / 448 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.613e-05/0.2805, allocations: 79.92 kB / 448.1 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.2817, allocations: 1.134 MB / 449.2 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.806e-05/0.2817, allocations: 15.84 kB / 449.2 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.984e-05/0.2818, allocations: 28 kB / 449.3 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-05/0.2818, allocations: 49.98 kB / 449.3 MB, free: 148 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/0.283, allocations: 0.8662 MB / 450.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005321/0.2884, allocations: 5.059 MB / 455.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006698/0.2891, allocations: 425.7 kB / 455.6 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002721/0.2894, allocations: 205.7 kB / 455.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.188e-05/0.2894, allocations: 19.97 kB / 455.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.2894, allocations: 34.56 kB / 455.9 MB, free: 9.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.335e-06/0.2895, allocations: 3.938 kB / 455.9 MB, free: 9.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=44): time 0.00173/0.2912, allocations: 1.071 MB / 457 MB, free: 8.195 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.917e-05/0.2913, allocations: 89.17 kB / 457.1 MB, free: 8.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004652/0.2918, allocations: 0.49 MB / 457.6 MB, free: 7.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.2918, allocations: 37.7 kB / 457.6 MB, free: 7.547 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002533/0.2921, allocations: 449.7 kB / 458 MB, free: 7.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.2922, allocations: 161.8 kB / 458.2 MB, free: 6.941 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.2924, allocations: 150.5 kB / 458.3 MB, free: 6.789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.2925, allocations: 366.7 kB / 458.7 MB, free: 6.422 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000325/0.2928, allocations: 237.8 kB / 458.9 MB, free: 6.188 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005697/0.2934, allocations: 0.6171 MB / 459.5 MB, free: 5.387 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.2945, allocations: 0.9418 MB / 460.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.2945, allocations: 4 kB / 460.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0012/0.2957, allocations: 0.892 MB / 461.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.2957, allocations: 11.98 kB / 461.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.2958, allocations: 16.09 kB / 461.4 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.575e-05/0.2958, allocations: 20 kB / 461.4 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006621/0.2965, allocations: 215.6 kB / 461.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.522e-05/0.2965, allocations: 27.86 kB / 461.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003776/0.2969, allocations: 55.86 kB / 461.7 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.812e-05/0.297, allocations: 44 kB / 461.8 MB, free: 2.977 MB / 334.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.0003519/0.2973, allocations: 305.4 kB / 462.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.948e-05/0.2974, allocations: 59.28 kB / 462.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009527/0.2984, allocations: 0.5524 MB / 462.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.2984, allocations: 4 kB / 462.7 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.2984, allocations: 7.984 kB / 462.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.2984, allocations: 0 / 462.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001938/0.3003, allocations: 1.33 MB / 464 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.3004, allocations: 8.234 kB / 464 MB, free: 0.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004151/0.3008, allocations: 107.9 kB / 464.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.3008, allocations: 7.938 kB / 464.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.064e-05/0.3008, allocations: 12 kB / 464.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.965e-06/0.3009, allocations: 11.94 kB / 464.2 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.3009, allocations: 0 / 464.2 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007693/0.3016, allocations: 0.6441 MB / 464.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.3018, allocations: 136.3 kB / 464.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.62e-05/0.3018, allocations: 16 kB / 464.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002427/0.3021, allocations: 19.98 kB / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.125e-05/0.3021, allocations: 31.95 kB / 465 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/0.3022, allocations: 16 kB / 465 MB, free: 15.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003045/0.3025, allocations: 330.8 kB / 465.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3025, allocations: 0 / 465.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000616/0.3031, allocations: 159.9 kB / 465.5 MB, free: 15.08 MB / 350.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.001149/0.3043, allocations: 1.198 MB / 466.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008698/0.3052, allocations: 0.6066 MB / 467.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3052, allocations: 4 kB / 467.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003046/0.3055, allocations: 240.3 kB / 467.5 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006699/0.3062, allocations: 110.5 kB / 467.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0073/0.3135, allocations: 6.166 MB / 473.8 MB, free: 6.203 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005641/0.3141, allocations: 1.004 MB / 474.8 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005484/0.3146, allocations: 225 kB / 475 MB, free: 4.953 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000311/0.3149, allocations: 263.3 kB / 475.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.315, allocations: 0 / 475.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02256/0.3375, allocations: 10.76 MB / 486.1 MB, free: 9.953 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/0.3378, allocations: 181 kB / 486.2 MB, free: 9.703 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.935/2.273, allocations: 0 / 486.2 MB, free: 9.703 MB / 366.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)