Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009513/0.0009513, allocations: 174.9 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.214/1.214, allocations: 205.4 MB / 222.2 MB, free: 9.016 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.0007299/0.0007299, allocations: 80.81 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1685/0.1685, allocations: 38.08 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003571/0.0003571, allocations: 12 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2236, allocations: 56.32 MB / 479.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.004378/0.2281, allocations: 4.755 MB / 484.4 MB, free: 6.117 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002831/0.2309, allocations: 2.464 MB / 486.8 MB, free: 4.371 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002921/0.2312, allocations: 21.22 kB / 486.9 MB, free: 4.363 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002278/0.2315, allocations: 80.86 kB / 486.9 MB, free: 4.32 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001074/0.2326, allocations: 496.5 kB / 487.4 MB, free: 4.074 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006175/0.2332, allocations: 254.5 kB / 487.7 MB, free: 3.957 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009093/0.2341, allocations: 0.899 MB / 488.6 MB, free: 3.625 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008938/0.235, allocations: 0.5624 MB / 489.1 MB, free: 3.289 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003902/0.2354, allocations: 252.4 kB / 489.4 MB, free: 3.191 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003768/0.2358, allocations: 320.3 kB / 489.7 MB, free: 3.07 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.273e-05/0.2359, allocations: 19.25 kB / 489.7 MB, free: 3.07 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001108/0.237, allocations: 0.7334 MB / 490.5 MB, free: 2.805 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/0.2372, allocations: 177.9 kB / 490.6 MB, free: 2.754 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002095/0.2374, allocations: 239.3 kB / 490.9 MB, free: 2.609 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007187/0.2381, allocations: 0.56 MB / 491.4 MB, free: 2.477 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2381, allocations: 5.125 kB / 491.4 MB, free: 2.473 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2381, allocations: 0 / 491.4 MB, free: 2.473 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.2382, allocations: 0 / 491.4 MB, free: 2.473 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.0008858/0.2391, allocations: 0.6877 MB / 492.1 MB, free: 1.914 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.2391, allocations: 9.875 kB / 492.1 MB, free: 1.914 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00149/0.2406, allocations: 205.6 kB / 492.3 MB, free: 1.879 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004044/0.241, allocations: 362.8 kB / 492.7 MB, free: 1.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.241, allocations: 34.27 kB / 492.7 MB, free: 1.57 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.625e-05/0.2411, allocations: 43.69 kB / 492.8 MB, free: 1.555 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009143/0.242, allocations: 0.6228 MB / 493.4 MB, free: 1.273 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.2421, allocations: 3.047 kB / 493.4 MB, free: 1.273 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.582e-05/0.2421, allocations: 19.83 kB / 493.4 MB, free: 1.258 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.953e-05/0.2422, allocations: 32.41 kB / 493.4 MB, free: 1.258 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008891/0.2431, allocations: 0.6115 MB / 494 MB, free: 1.066 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002988/0.2461, allocations: 2.264 MB / 496.3 MB, free: 15.63 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006595/0.2468, allocations: 483.1 kB / 496.8 MB, free: 15.35 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003296/0.2471, allocations: 237 kB / 497 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.934e-05/0.2472, allocations: 10.16 kB / 497 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.2472, allocations: 40.66 kB / 497.1 MB, free: 15.2 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 2.234e-06/0.2472, allocations: 1.438 kB / 497.1 MB, free: 15.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=43): time 0.003375/0.2506, allocations: 1.712 MB / 498.8 MB, free: 14.32 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.2507, allocations: 86.86 kB / 498.9 MB, free: 14.22 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002931/0.251, allocations: 279.6 kB / 499.1 MB, free: 14.05 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.442e-05/0.251, allocations: 35.83 kB / 499.2 MB, free: 14.01 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.2511, allocations: 225.5 kB / 499.4 MB, free: 13.8 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.2513, allocations: 152.9 kB / 499.5 MB, free: 13.67 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.527e-05/0.2513, allocations: 10.34 kB / 499.5 MB, free: 13.66 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.2515, allocations: 344.2 kB / 499.9 MB, free: 13.33 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002688/0.2517, allocations: 183.3 kB / 0.4883 GB, free: 13.24 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003267/0.2521, allocations: 281.6 kB / 0.4886 GB, free: 13.03 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006415/0.2527, allocations: 0.4977 MB / 0.4891 GB, free: 12.69 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2527, allocations: 1.469 kB / 0.4891 GB, free: 12.69 MB / 330.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001137/0.2539, allocations: 0.6768 MB / 0.4898 GB, free: 12.33 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.2539, allocations: 7.031 kB / 0.4898 GB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.2539, allocations: 6.906 kB / 0.4898 GB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005484/0.2545, allocations: 175.5 kB / 0.4899 GB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003463/0.2548, allocations: 92.2 kB / 0.49 GB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003168/0.258, allocations: 2.539 MB / 0.4925 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002888/0.2583, allocations: 24.89 kB / 0.4925 GB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.051e-05/0.2584, allocations: 19.16 kB / 0.4925 GB, free: 10.14 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002693/0.2586, allocations: 201.1 kB / 0.4927 GB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.579e-05/0.2587, allocations: 33.19 kB / 0.4928 GB, free: 9.957 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00115/0.2599, allocations: 0.6375 MB / 0.4934 GB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.2599, allocations: 4.438 kB / 0.4934 GB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.2599, allocations: 5.375 kB / 0.4934 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.2599, allocations: 3.984 kB / 0.4934 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002156/0.2621, allocations: 1.355 MB / 0.4947 GB, free: 8.629 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.2621, allocations: 1.188 kB / 0.4947 GB, free: 8.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003371/0.2624, allocations: 77.58 kB / 0.4948 GB, free: 8.613 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004335/0.2629, allocations: 140.6 kB / 0.4949 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.178e-05/0.2629, allocations: 16.02 kB / 0.495 GB, free: 8.535 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002688/0.2656, allocations: 2.296 MB / 0.4972 GB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.2656, allocations: 9.812 kB / 0.4972 GB, free: 6.598 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.2671, allocations: 0.9562 MB / 0.4981 GB, free: 6.012 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.2672, allocations: 115.5 kB / 0.4982 GB, free: 5.891 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.945e-05/0.2673, allocations: 8.312 kB / 0.4983 GB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.2675, allocations: 17.48 kB / 0.4983 GB, free: 5.875 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.193e-05/0.2676, allocations: 35.02 kB / 0.4983 GB, free: 5.855 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-05/0.2676, allocations: 9.625 kB / 0.4983 GB, free: 5.855 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002006/0.2678, allocations: 201 kB / 0.4985 GB, free: 5.715 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2678, allocations: 1.375 kB / 0.4985 GB, free: 5.715 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005971/0.2684, allocations: 142.4 kB / 0.4986 GB, free: 5.695 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * 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 (38): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001127/0.2685, allocations: 106.3 kB / 0.4987 GB, free: 5.598 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.2697, allocations: 0.6663 MB / 0.4994 GB, free: 5.223 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2697, allocations: 0 / 0.4994 GB, free: 5.223 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006464/0.2704, allocations: 420.1 kB / 0.4998 GB, free: 4.965 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004895/0.2709, allocations: 64.09 kB / 0.4999 GB, free: 4.926 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.2727, allocations: 1.393 MB / 0.5012 GB, free: 3.789 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004223/0.2731, allocations: 0.871 MB / 0.5021 GB, free: 2.895 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.2732, allocations: 35.44 kB / 0.5021 GB, free: 2.859 MB / 330.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2733, allocations: 3.938 kB / 0.5021 GB, free: 2.855 MB / 330.7 MB Notification: Performance of Templates: time 0.008462/0.2817, allocations: 6.84 MB / 0.5088 GB, free: 12 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)