Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008816/0.0008816, allocations: 178.2 kB / 16.07 MB, free: 5.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.205/1.205, allocations: 205.4 MB / 222.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007228/0.0007227, allocations: 88.86 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1827/0.1827, allocations: 38.07 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.0003309, allocations: 19.98 kB / 423.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2337, allocations: 56.32 MB / 479.7 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.005412/0.2391, allocations: 6.56 MB / 486.3 MB, free: 4.793 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00307/0.2422, allocations: 2.259 MB / 488.5 MB, free: 3.184 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004269/0.2427, allocations: 42.06 kB / 488.6 MB, free: 3.168 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003438/0.243, allocations: 143.2 kB / 488.7 MB, free: 3.094 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000946/0.244, allocations: 448 kB / 489.2 MB, free: 2.852 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.245, allocations: 417.5 kB / 489.6 MB, free: 2.68 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001132/0.2462, allocations: 1.158 MB / 490.7 MB, free: 2.281 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001212/0.2474, allocations: 0.8379 MB / 491.6 MB, free: 1.824 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004995/0.2479, allocations: 347.9 kB / 491.9 MB, free: 1.691 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006557/0.2486, allocations: 0.5198 MB / 492.4 MB, free: 1.535 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.115e-05/0.2486, allocations: 29.06 kB / 492.5 MB, free: 1.535 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004628/0.2491, allocations: 232.5 kB / 492.7 MB, free: 1.473 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003799/0.2495, allocations: 390.2 kB / 493.1 MB, free: 1.383 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003699/0.2499, allocations: 390.7 kB / 493.4 MB, free: 1.16 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008411/0.2507, allocations: 0.7456 MB / 494.2 MB, free: 1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.2507, allocations: 0.9688 kB / 494.2 MB, free: 1 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2507, allocations: 0 / 494.2 MB, free: 1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.2508, allocations: 0 / 494.2 MB, free: 1 MB / 314.7 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.00143/0.2522, allocations: 0.9307 MB / 495.1 MB, free: 348 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.2523, allocations: 9.906 kB / 495.1 MB, free: 348 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001532/0.2524, allocations: 138.5 kB / 495.3 MB, free: 252 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006465/0.2531, allocations: 135.1 kB / 495.4 MB, free: 208 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007762/0.2539, allocations: 0.515 MB / 495.9 MB, free: 15.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.26e-05/0.2539, allocations: 65.56 kB / 496 MB, free: 15.81 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.254, allocations: 85.55 kB / 496.1 MB, free: 15.78 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/0.2558, allocations: 1.126 MB / 497.2 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.196e-05/0.2558, allocations: 6.75 kB / 497.2 MB, free: 15.15 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.154e-05/0.2559, allocations: 33.38 kB / 497.2 MB, free: 15.13 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.967e-05/0.256, allocations: 54.86 kB / 497.3 MB, free: 15.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.2574, allocations: 0.858 MB / 498.1 MB, free: 14.85 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005155/0.2625, allocations: 5.043 MB / 0.4914 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006613/0.2632, allocations: 421.4 kB / 0.4918 GB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.2635, allocations: 210.4 kB / 0.492 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.4e-05/0.2636, allocations: 14.06 kB / 0.492 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/0.2636, allocations: 49.66 kB / 0.4921 GB, free: 10.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 2.214e-06/0.2636, allocations: 0 / 0.4921 GB, free: 10.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=44): time 0.001778/0.2654, allocations: 1.069 MB / 0.4931 GB, free: 9.562 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.2655, allocations: 81.23 kB / 0.4932 GB, free: 9.469 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005384/0.266, allocations: 0.4891 MB / 0.4937 GB, free: 9.168 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.2661, allocations: 32.27 kB / 0.4937 GB, free: 9.133 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002995/0.2664, allocations: 459.4 kB / 0.4941 GB, free: 8.727 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.2665, allocations: 160.6 kB / 0.4943 GB, free: 8.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.295e-05/0.2665, allocations: 14.19 kB / 0.4943 GB, free: 8.578 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.2667, allocations: 374.5 kB / 0.4946 GB, free: 8.219 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000351/0.267, allocations: 230.3 kB / 0.4949 GB, free: 8.117 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005679/0.2676, allocations: 0.6184 MB / 0.4955 GB, free: 7.473 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/0.2687, allocations: 0.9321 MB / 0.4964 GB, free: 6.668 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.2687, allocations: 4.75 kB / 0.4964 GB, free: 6.668 MB / 330.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001321/0.27, allocations: 0.8901 MB / 0.4973 GB, free: 6.223 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.2701, allocations: 10.69 kB / 0.4973 GB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/0.2701, allocations: 12.88 kB / 0.4973 GB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.427e-05/0.2701, allocations: 18 kB / 0.4973 GB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006916/0.2708, allocations: 219.5 kB / 0.4975 GB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.592e-05/0.2709, allocations: 21.56 kB / 0.4975 GB, free: 6.164 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000429/0.2713, allocations: 58.95 kB / 0.4976 GB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.073e-05/0.2714, allocations: 43.38 kB / 0.4976 GB, free: 6.125 MB / 330.7 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.0003662/0.2717, allocations: 308.9 kB / 0.4979 GB, free: 5.895 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.634e-05/0.2718, allocations: 52.16 kB / 0.498 GB, free: 5.867 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009064/0.2727, allocations: 0.5541 MB / 0.4985 GB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.2728, allocations: 5.5 kB / 0.4985 GB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.2728, allocations: 1.375 kB / 0.4985 GB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.2728, allocations: 0 / 0.4985 GB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002035/0.2748, allocations: 1.33 MB / 0.4998 GB, free: 4.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.2748, allocations: 3.406 kB / 0.4998 GB, free: 4.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00043/0.2753, allocations: 111.2 kB / 0.4999 GB, free: 4.633 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.234e-05/0.2753, allocations: 8.375 kB / 0.4999 GB, free: 4.629 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.313e-05/0.2753, allocations: 13.94 kB / 0.4999 GB, free: 4.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.474e-05/0.2754, allocations: 15.89 kB / 0.5 GB, free: 4.609 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.2754, allocations: 2.656 kB / 0.5 GB, free: 4.609 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000794/0.2762, allocations: 0.6419 MB / 0.5006 GB, free: 4.164 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000134/0.2763, allocations: 129.1 kB / 0.5007 GB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.285e-05/0.2764, allocations: 14.25 kB / 0.5007 GB, free: 4.027 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002586/0.2767, allocations: 20.5 kB / 0.5007 GB, free: 4.016 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.013e-05/0.2767, allocations: 35.34 kB / 0.5008 GB, free: 3.996 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.108e-05/0.2768, allocations: 20.55 kB / 0.5008 GB, free: 3.988 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003459/0.2771, allocations: 328.2 kB / 0.5011 GB, free: 3.793 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2771, allocations: 0 / 0.5011 GB, free: 3.793 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00069/0.2778, allocations: 159.1 kB / 0.5013 GB, free: 3.742 MB / 330.7 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.001024/0.2789, allocations: 1.193 MB / 0.5024 GB, free: 2.492 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008318/0.2797, allocations: 0.5873 MB / 0.503 GB, free: 1.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2797, allocations: 0 / 0.503 GB, free: 1.91 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002984/0.28, allocations: 243.4 kB / 0.5032 GB, free: 1.672 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007597/0.2808, allocations: 113.2 kB / 0.5033 GB, free: 1.566 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005376/0.2862, allocations: 4.042 MB / 0.5073 GB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006174/0.2868, allocations: 0.9999 MB / 0.5083 GB, free: 12.22 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003455/0.2872, allocations: 263.3 kB / 0.5085 GB, free: 11.96 MB / 346.7 MB Notification: Performance of SimCode: time 8.42e-07/0.2872, allocations: 0 / 0.5085 GB, free: 11.96 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.691/3.978, allocations: 10.15 MB / 0.5184 GB, free: 1.793 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.pipe 2>&1)