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: translateModel(PowerSystems.Examples.Introductory.Units,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.Units") translateModel(PowerSystems.Examples.Introductory.Units,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.Units") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008461/0.0008462, allocations: 174.5 kB / 16.07 MB, free: 5.723 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.202/1.202, 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.0006888/0.0006888, allocations: 83.92 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.1875/0.1875, allocations: 38.08 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000394/0.000394, allocations: 12 kB / 423.3 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2283/0.2287, allocations: 56.33 MB / 479.6 MB, free: 9.223 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.005249/0.234, allocations: 6.567 MB / 486.2 MB, free: 4.789 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002966/0.237, allocations: 2.248 MB / 488.4 MB, free: 3.191 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003539/0.2374, allocations: 41.12 kB / 488.5 MB, free: 3.176 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003198/0.2377, allocations: 143.8 kB / 488.6 MB, free: 3.102 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008694/0.2386, allocations: 448.5 kB / 489.1 MB, free: 2.859 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009941/0.2396, allocations: 421.6 kB / 489.5 MB, free: 2.684 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001172/0.2408, allocations: 1.158 MB / 490.6 MB, free: 2.285 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001173/0.242, allocations: 0.8316 MB / 491.5 MB, free: 1.836 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004806/0.2424, allocations: 355.1 kB / 491.8 MB, free: 1.695 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006709/0.2431, allocations: 0.5189 MB / 492.3 MB, free: 1.539 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.179e-05/0.2432, allocations: 30.03 kB / 492.4 MB, free: 1.539 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004724/0.2437, allocations: 232 kB / 492.6 MB, free: 1.477 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003882/0.2441, allocations: 390.5 kB / 493 MB, free: 1.387 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003682/0.2445, allocations: 390.1 kB / 493.3 MB, free: 1.164 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008374/0.2453, allocations: 0.7496 MB / 494.1 MB, free: 1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2453, allocations: 1.438 kB / 494.1 MB, free: 1 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2453, allocations: 0 / 494.1 MB, free: 1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.564e-05/0.2454, allocations: 0 / 494.1 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.001365/0.2467, allocations: 0.9266 MB / 495 MB, free: 352 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.2468, allocations: 9.531 kB / 495 MB, free: 352 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006234/0.2474, allocations: 139 kB / 495.2 MB, free: 304 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007562/0.2482, allocations: 0.5106 MB / 495.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.536e-05/0.2482, allocations: 53.31 kB / 495.7 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.2484, allocations: 86.78 kB / 495.8 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/0.25, allocations: 1.136 MB / 496.9 MB, free: 15.26 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.126e-05/0.2501, allocations: 7.156 kB / 497 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.72e-05/0.2501, allocations: 30.27 kB / 497 MB, free: 15.23 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.781e-05/0.2502, allocations: 51.42 kB / 497 MB, free: 15.23 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.2516, allocations: 0.8577 MB / 497.9 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004981/0.2566, allocations: 5.055 MB / 0.4912 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006624/0.2573, allocations: 424.9 kB / 0.4916 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002982/0.2576, allocations: 207 kB / 0.4918 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.591e-05/0.2576, allocations: 17.88 kB / 0.4918 GB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.2577, allocations: 37.56 kB / 0.4918 GB, free: 10.29 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 3.416e-06/0.2577, allocations: 0 / 0.4918 GB, free: 10.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=44): time 0.001754/0.2594, allocations: 1.065 MB / 0.4929 GB, free: 9.695 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.2595, allocations: 89.38 kB / 0.4929 GB, free: 9.594 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000539/0.2601, allocations: 496.7 kB / 0.4934 GB, free: 9.297 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.783e-05/0.2601, allocations: 35.98 kB / 0.4934 GB, free: 9.258 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002585/0.2604, allocations: 456 kB / 0.4939 GB, free: 8.855 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.2605, allocations: 158.9 kB / 0.494 GB, free: 8.719 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.393e-05/0.2605, allocations: 16 kB / 0.494 GB, free: 8.707 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.2607, allocations: 366 kB / 0.4944 GB, free: 8.355 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003393/0.261, allocations: 234.5 kB / 0.4946 GB, free: 8.25 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005674/0.2616, allocations: 0.622 MB / 0.4952 GB, free: 7.602 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.2626, allocations: 0.9367 MB / 0.4961 GB, free: 6.793 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.2626, allocations: 4.125 kB / 0.4961 GB, free: 6.793 MB / 330.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00126/0.2639, allocations: 0.8847 MB / 0.497 GB, free: 6.352 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.2639, allocations: 15.09 kB / 0.497 GB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.2639, allocations: 13.16 kB / 0.497 GB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.713e-05/0.264, allocations: 26.56 kB / 0.4971 GB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006691/0.2647, allocations: 213.8 kB / 0.4973 GB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.571e-05/0.2647, allocations: 30.42 kB / 0.4973 GB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003949/0.2651, allocations: 54.73 kB / 0.4973 GB, free: 6.254 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.793e-05/0.2652, allocations: 39.75 kB / 0.4974 GB, free: 6.25 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.0003529/0.2655, allocations: 307.8 kB / 0.4977 GB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.822e-05/0.2656, allocations: 52.09 kB / 0.4977 GB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000877/0.2665, allocations: 0.5545 MB / 0.4983 GB, free: 5.691 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.2665, allocations: 9.469 kB / 0.4983 GB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.2665, allocations: 1.062 kB / 0.4983 GB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.2665, allocations: 1.125 kB / 0.4983 GB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001927/0.2685, allocations: 1.33 MB / 0.4996 GB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.2685, allocations: 1.719 kB / 0.4996 GB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004146/0.2689, allocations: 115.8 kB / 0.4997 GB, free: 4.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.155e-06/0.2689, allocations: 9 kB / 0.4997 GB, free: 4.746 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.269, allocations: 12.56 kB / 0.4997 GB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.269, allocations: 5.219 kB / 0.4997 GB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.269, allocations: 6.719 kB / 0.4997 GB, free: 4.734 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007662/0.2697, allocations: 0.6382 MB / 0.5003 GB, free: 4.293 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.2699, allocations: 128.6 kB / 0.5005 GB, free: 4.164 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.466e-05/0.2699, allocations: 20.94 kB / 0.5005 GB, free: 4.148 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.2702, allocations: 25.34 kB / 0.5005 GB, free: 4.133 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.001e-05/0.2703, allocations: 32.69 kB / 0.5005 GB, free: 4.117 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-05/0.2703, allocations: 15.17 kB / 0.5006 GB, free: 4.113 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003426/0.2706, allocations: 324.3 kB / 0.5009 GB, free: 3.922 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2706, allocations: 0 / 0.5009 GB, free: 3.922 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006652/0.2713, allocations: 161.5 kB / 0.501 GB, free: 3.902 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.0001186/0.2714, allocations: 116.1 kB / 0.5011 GB, free: 3.793 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008478/0.2723, allocations: 0.5929 MB / 0.5017 GB, free: 3.207 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.2723, allocations: 4 kB / 0.5017 GB, free: 3.203 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003046/0.2726, allocations: 241 kB / 0.5019 GB, free: 2.969 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007365/0.2734, allocations: 110.8 kB / 0.5021 GB, free: 2.863 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002108/0.2755, allocations: 1.706 MB / 0.5037 GB, free: 1.094 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005399/0.276, allocations: 1.008 MB / 0.5047 GB, free: 60 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.2762, allocations: 63.42 kB / 0.5048 GB, free: 0 / 330.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2762, allocations: 0 / 0.5048 GB, free: 0 / 330.7 MB Notification: Performance of Templates: time 0.009897/0.2861, allocations: 8.118 MB / 0.5127 GB, free: 7.879 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.makefile (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 & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.Units --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.pipe 2>&1)