Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.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.Frequency,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009427/0.0009428, allocations: 171.9 kB / 16.07 MB, free: 5.727 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.207/1.207, 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.0007053/0.0007054, allocations: 90.38 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.1673/0.1673, allocations: 38.08 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004097/0.0004097, allocations: 12 kB / 423.3 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2154/0.2158, allocations: 56.32 MB / 479.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.005462/0.2213, allocations: 6.146 MB / 485.8 MB, free: 5.09 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002461/0.2238, allocations: 1.536 MB / 487.3 MB, free: 3.984 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006567/0.2245, allocations: 45.81 kB / 487.4 MB, free: 3.965 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003537/0.2249, allocations: 109.8 kB / 487.5 MB, free: 3.91 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00112/0.226, allocations: 385.4 kB / 487.8 MB, free: 3.688 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005677/0.2266, allocations: 197.5 kB / 488 MB, free: 3.594 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008127/0.2274, allocations: 0.7792 MB / 488.8 MB, free: 3.281 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002537/0.2277, allocations: 142 kB / 488.9 MB, free: 3.219 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003929/0.2281, allocations: 259 kB / 489.2 MB, free: 3.109 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004663/0.2285, allocations: 331.8 kB / 489.5 MB, free: 2.988 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.971e-05/0.2286, allocations: 17.88 kB / 489.5 MB, free: 2.988 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.218e-05/0.2287, allocations: 17.88 kB / 489.6 MB, free: 2.988 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.2288, allocations: 143.6 kB / 489.7 MB, free: 2.941 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002015/0.229, allocations: 238.6 kB / 489.9 MB, free: 2.797 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003602/0.2294, allocations: 362.1 kB / 490.3 MB, free: 2.703 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2294, allocations: 0 / 490.3 MB, free: 2.703 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2294, allocations: 4 kB / 490.3 MB, free: 2.699 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.2294, allocations: 0 / 490.3 MB, free: 2.699 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001077/0.2305, allocations: 0.7153 MB / 491 MB, free: 2.156 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.2306, allocations: 10.91 kB / 491 MB, free: 2.156 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.21e-05/0.2307, allocations: 53.64 kB / 491.1 MB, free: 2.129 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005395/0.2312, allocations: 424.7 kB / 491.5 MB, free: 1.824 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.2312, allocations: 27.47 kB / 491.5 MB, free: 1.812 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.283e-05/0.2313, allocations: 37.33 kB / 491.5 MB, free: 1.801 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006113/0.2319, allocations: 455.3 kB / 492 MB, free: 1.551 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.2319, allocations: 5.312 kB / 492 MB, free: 1.547 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.389e-05/0.232, allocations: 11.78 kB / 492 MB, free: 1.539 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.232, allocations: 9.25 kB / 492 MB, free: 1.539 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004512/0.2325, allocations: 311.2 kB / 492.3 MB, free: 1.438 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.2341, allocations: 1.771 MB / 494.1 MB, free: 40 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002469/0.2344, allocations: 140.5 kB / 494.2 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.813e-05/0.2345, allocations: 61.2 kB / 494.3 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.2345, allocations: 2.125 kB / 494.3 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.2346, allocations: 45.48 kB / 494.3 MB, free: 15.84 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.964e-06/0.2346, allocations: 3.828 kB / 494.3 MB, free: 15.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009447/0.2355, allocations: 0.5988 MB / 494.9 MB, free: 15.35 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.2356, allocations: 106.2 kB / 495 MB, free: 15.23 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004101/0.236, allocations: 370.5 kB / 495.4 MB, free: 15.04 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.236, allocations: 27.88 kB / 495.4 MB, free: 15 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001746/0.2362, allocations: 278 kB / 495.7 MB, free: 14.78 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.679e-05/0.2363, allocations: 56.84 kB / 495.8 MB, free: 14.73 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.19e-05/0.2363, allocations: 5.125 kB / 495.8 MB, free: 14.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.2364, allocations: 352.3 kB / 496.1 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.983e-05/0.2365, allocations: 47.44 kB / 496.2 MB, free: 14.38 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.2367, allocations: 200.4 kB / 496.3 MB, free: 14.17 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002758/0.237, allocations: 261.4 kB / 496.6 MB, free: 13.92 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.237, allocations: 6.625 kB / 496.6 MB, free: 13.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004134/0.2374, allocations: 287.9 kB / 496.9 MB, free: 13.78 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.2375, allocations: 10.69 kB / 496.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.2375, allocations: 5.375 kB / 496.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.2375, allocations: 6.719 kB / 496.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000248/0.2377, allocations: 69.45 kB / 497 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.556e-05/0.2378, allocations: 12.64 kB / 497 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.2379, allocations: 14.22 kB / 497 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.238, allocations: 12.89 kB / 497 MB, free: 13.75 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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.0001903/0.2382, allocations: 188 kB / 497.2 MB, free: 13.6 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.139e-05/0.2383, allocations: 40.55 kB / 497.2 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002902/0.2385, allocations: 168.4 kB / 497.4 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2386, allocations: 2.094 kB / 497.4 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.2386, allocations: 1.844 kB / 497.4 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.2386, allocations: 5.641 kB / 497.4 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006742/0.2393, allocations: 0.5332 MB / 498 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2393, allocations: 1.031 kB / 498 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001797/0.2395, allocations: 40.41 kB / 498 MB, free: 13.06 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.2395, allocations: 2.219 kB / 498 MB, free: 13.06 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.2395, allocations: 1.922 kB / 498 MB, free: 13.06 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.2395, allocations: 7.844 kB / 498 MB, free: 13.06 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.2395, allocations: 3.938 kB / 498 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003938/0.2399, allocations: 396.4 kB / 498.4 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.323e-05/0.24, allocations: 115.4 kB / 498.5 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.225e-05/0.2401, allocations: 3.859 kB / 498.5 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.2402, allocations: 9.703 kB / 498.5 MB, free: 12.63 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.92e-05/0.2403, allocations: 14.14 kB / 498.5 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.2403, allocations: 4.469 kB / 498.5 MB, free: 12.62 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002508/0.2405, allocations: 252.8 kB / 498.8 MB, free: 12.5 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2405, allocations: 0 / 498.8 MB, free: 12.5 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004094/0.2409, allocations: 69.28 kB / 498.9 MB, free: 12.49 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * 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 9.834e-05/0.2411, allocations: 102.8 kB / 499 MB, free: 12.4 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002647/0.2413, allocations: 148.9 kB / 499.1 MB, free: 12.35 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2413, allocations: 1.25 kB / 499.1 MB, free: 12.35 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001/0.2414, allocations: 59.31 kB / 499.2 MB, free: 12.33 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006817/0.2421, allocations: 90.09 kB / 499.2 MB, free: 12.3 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001448/0.2436, allocations: 1.113 MB / 0.4886 GB, free: 11.56 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003982/0.244, allocations: 0.8437 MB / 0.4895 GB, free: 10.85 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.999e-05/0.2441, allocations: 30.62 kB / 0.4895 GB, free: 10.84 MB / 330.7 MB Notification: Performance of SimCode: time 5.51e-07/0.2441, allocations: 3.938 kB / 0.4895 GB, free: 10.84 MB / 330.7 MB Notification: Performance of Templates: time 0.007132/0.2512, allocations: 4.578 MB / 0.494 GB, free: 8.91 MB / 330.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.sim & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1)