Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001575/0.001575, allocations: 192 kB / 18.63 MB, free: 4.375 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.436/1.436, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1728/0.1728, allocations: 37.99 MB / 309.8 MB, free: 5.969 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.001484/0.001485, allocations: 63.91 kB / 376.8 MB, free: 2.926 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2079, allocations: 55.25 MB / 432 MB, free: 19.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004297/0.2122, allocations: 3.324 MB / 435.3 MB, free: 16.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001345/0.2136, allocations: 1.265 MB / 436.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.2137, allocations: 4 kB / 436.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005768/0.2143, allocations: 159.3 kB / 436.8 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003344/0.2147, allocations: 183.2 kB / 437 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002282/0.2149, allocations: 123.6 kB / 437.1 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002788/0.2152, allocations: 295 kB / 437.4 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002464/0.2155, allocations: 119.9 kB / 437.5 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.2156, allocations: 119.4 kB / 437.6 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001517/0.2158, allocations: 111.5 kB / 437.7 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.169e-05/0.2158, allocations: 16 kB / 437.7 MB, free: 13.94 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002993/0.2161, allocations: 223.4 kB / 437.9 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.454e-05/0.2162, allocations: 63.81 kB / 438 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.464e-05/0.2163, allocations: 95.53 kB / 438.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003166/0.2166, allocations: 291 kB / 438.4 MB, free: 13.28 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.902e-06/0.2166, allocations: 0 / 438.4 MB, free: 13.28 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2166, allocations: 0 / 438.4 MB, free: 13.28 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.535e-06/0.2166, allocations: 0 / 438.4 MB, free: 13.28 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005877/0.2172, allocations: 0.4989 MB / 438.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.2173, allocations: 11.89 kB / 438.9 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006644/0.218, allocations: 80.58 kB / 439 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003189/0.2183, allocations: 263.8 kB / 439.2 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.2183, allocations: 16.7 kB / 439.2 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.817e-05/0.2184, allocations: 20.28 kB / 439.3 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003867/0.2188, allocations: 272 kB / 439.5 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.2188, allocations: 4 kB / 439.5 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.269e-05/0.2188, allocations: 7.984 kB / 439.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.992e-05/0.2189, allocations: 20.3 kB / 439.6 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003023/0.2192, allocations: 220.4 kB / 439.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.2205, allocations: 1.194 MB / 441 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001811/0.2207, allocations: 149.2 kB / 441.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.742e-05/0.2207, allocations: 49.75 kB / 441.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.2207, allocations: 0 / 441.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.2208, allocations: 38.5 kB / 441.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.092e-06/0.2208, allocations: 0 / 441.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002948/0.2211, allocations: 169.3 kB / 441.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/0.2211, allocations: 81.05 kB / 441.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.2213, allocations: 210.8 kB / 441.6 MB, free: 9.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.2213, allocations: 25.7 kB / 441.7 MB, free: 9.695 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.899e-05/0.2214, allocations: 151.9 kB / 441.8 MB, free: 9.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.408e-05/0.2214, allocations: 43.39 kB / 441.9 MB, free: 9.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.754e-05/0.2214, allocations: 45.61 kB / 441.9 MB, free: 9.449 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.345e-05/0.2215, allocations: 334.9 kB / 442.2 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.409e-05/0.2216, allocations: 39.98 kB / 442.3 MB, free: 9.074 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.852e-05/0.2217, allocations: 126 kB / 442.4 MB, free: 8.914 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.2218, allocations: 185.6 kB / 442.6 MB, free: 8.699 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2218, allocations: 0 / 442.6 MB, free: 8.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002255/0.2221, allocations: 209.4 kB / 442.8 MB, free: 8.488 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.2221, allocations: 16 kB / 442.8 MB, free: 8.473 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2221, allocations: 0 / 442.8 MB, free: 8.473 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.2221, allocations: 7.938 kB / 442.8 MB, free: 8.465 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002133/0.2223, allocations: 51.91 kB / 442.9 MB, free: 8.414 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006592/0.223, allocations: 1.412 MB / 444.3 MB, free: 6.863 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.875e-05/0.2231, allocations: 23.75 kB / 444.3 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.59e-05/0.2231, allocations: 8 kB / 444.3 MB, free: 6.832 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.248e-05/0.2232, allocations: 153.6 kB / 444.5 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.536e-05/0.2233, allocations: 19.91 kB / 444.5 MB, free: 6.652 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001872/0.2235, allocations: 143 kB / 444.6 MB, free: 6.504 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.2235, allocations: 3.984 kB / 444.6 MB, free: 6.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.2235, allocations: 4 kB / 444.6 MB, free: 6.496 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2235, allocations: 0 / 444.6 MB, free: 6.496 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005036/0.224, allocations: 499.9 kB / 445.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/0.224, allocations: 0 / 445.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001581/0.2242, allocations: 31.98 kB / 445.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.2242, allocations: 4 kB / 445.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.2242, allocations: 4 kB / 445.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006012/0.2248, allocations: 1.416 MB / 446.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2248, allocations: 0 / 446.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002421/0.2251, allocations: 301.9 kB / 446.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.375e-05/0.2251, allocations: 108.8 kB / 447 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.2252, allocations: 0 / 447 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.482e-05/0.2253, allocations: 8 kB / 447 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.176e-05/0.2253, allocations: 11.92 kB / 447 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.2253, allocations: 4 kB / 447 MB, free: 3.887 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001006/0.2254, allocations: 148.4 kB / 447.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2254, allocations: 0 / 447.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003038/0.2257, allocations: 44 kB / 447.2 MB, free: 3.699 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 8.786e-05/0.2258, allocations: 107.3 kB / 447.3 MB, free: 3.586 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002644/0.2261, allocations: 131.7 kB / 447.4 MB, free: 3.457 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2261, allocations: 0 / 447.4 MB, free: 3.457 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.2263, allocations: 60.62 kB / 447.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003603/0.2266, allocations: 42.48 kB / 447.5 MB, free: 3.359 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000741/0.2274, allocations: 0.5081 MB / 448 MB, free: 2.812 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001555/0.2275, allocations: 0.7398 MB / 448.8 MB, free: 2.047 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.292e-05/0.2276, allocations: 33.47 kB / 448.8 MB, free: 2.016 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.412e-05/0.2277, allocations: 23.44 kB / 448.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2277, allocations: 0 / 448.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of Templates: time 0.003749/0.2314, allocations: 1.487 MB / 450.3 MB, free: 0.5117 MB / 318.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)