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: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008425/0.0008426, allocations: 95.75 kB / 16.65 MB, free: 6.27 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.0009618/0.0009619, allocations: 179.9 kB / 17.57 MB, free: 5.883 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.283/1.283, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.165/0.165, allocations: 38.06 MB / 310.1 MB, free: 5.898 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.0004907/0.0004907, allocations: 20 kB / 377.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2165, allocations: 56.33 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.00325/0.2197, allocations: 3.208 MB / 436.8 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001562/0.2213, allocations: 1.307 MB / 438.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002585/0.2216, allocations: 11.94 kB / 438.1 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.2218, allocations: 27.78 kB / 438.1 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004714/0.2223, allocations: 151.4 kB / 438.3 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002853/0.2226, allocations: 127.7 kB / 438.4 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002949/0.2229, allocations: 386.8 kB / 438.8 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004361/0.2233, allocations: 258.9 kB / 439 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.2235, allocations: 99.56 kB / 439.1 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.2236, allocations: 103.5 kB / 439.2 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.97e-05/0.2237, allocations: 11.98 kB / 439.3 MB, free: 12.92 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000314/0.224, allocations: 279.3 kB / 439.5 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.946e-05/0.2241, allocations: 55.77 kB / 439.6 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.657e-05/0.2241, allocations: 117.2 kB / 439.7 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000264/0.2244, allocations: 299 kB / 440 MB, free: 12.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2244, allocations: 0 / 440 MB, free: 12.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2244, allocations: 0 / 440 MB, free: 12.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.2244, allocations: 0 / 440 MB, free: 12.18 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.0004746/0.2249, allocations: 475 kB / 440.5 MB, free: 11.67 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.225, allocations: 12.03 kB / 440.5 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.744e-05/0.225, allocations: 54.67 kB / 440.5 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000604/0.2256, allocations: 80.58 kB / 440.6 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002098/0.2258, allocations: 259.8 kB / 440.9 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.2259, allocations: 12.7 kB / 440.9 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.516e-05/0.2259, allocations: 16.38 kB / 440.9 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003294/0.2262, allocations: 263.8 kB / 441.1 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.2263, allocations: 3.984 kB / 441.1 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.228e-05/0.2263, allocations: 15.97 kB / 441.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.2263, allocations: 16.33 kB / 441.2 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002771/0.2266, allocations: 220.4 kB / 441.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.2277, allocations: 1.206 MB / 442.6 MB, free: 9.359 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001635/0.2279, allocations: 133.3 kB / 442.7 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.67e-05/0.228, allocations: 53.64 kB / 442.8 MB, free: 9.152 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.228, allocations: 0 / 442.8 MB, free: 9.152 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/0.228, allocations: 38.56 kB / 442.8 MB, free: 9.105 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.032e-06/0.228, allocations: 0 / 442.8 MB, free: 9.105 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002724/0.2283, allocations: 164.8 kB / 443 MB, free: 8.941 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.977e-05/0.2283, allocations: 85.23 kB / 443.1 MB, free: 8.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.2285, allocations: 203 kB / 443.3 MB, free: 8.633 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.068e-05/0.2285, allocations: 29.7 kB / 443.3 MB, free: 8.598 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.273e-05/0.2286, allocations: 151.9 kB / 443.4 MB, free: 8.441 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.734e-05/0.2286, allocations: 43.39 kB / 443.5 MB, free: 8.398 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.86e-05/0.2286, allocations: 25.7 kB / 443.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.24e-05/0.2287, allocations: 330.8 kB / 443.8 MB, free: 8.035 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.11e-05/0.2287, allocations: 43.97 kB / 443.9 MB, free: 7.992 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.507e-05/0.2288, allocations: 129.9 kB / 444 MB, free: 7.828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.229, allocations: 182.2 kB / 444.2 MB, free: 7.613 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.229, allocations: 0 / 444.2 MB, free: 7.613 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002244/0.2292, allocations: 205.1 kB / 444.4 MB, free: 7.406 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.2293, allocations: 8 kB / 444.4 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.2293, allocations: 8.328 kB / 444.4 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.2293, allocations: 15.88 kB / 444.4 MB, free: 7.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002014/0.2295, allocations: 43.92 kB / 444.4 MB, free: 7.332 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005926/0.2301, allocations: 1.333 MB / 445.8 MB, free: 5.867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.265e-05/0.2302, allocations: 19.88 kB / 445.8 MB, free: 5.848 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.2302, allocations: 8 kB / 445.8 MB, free: 5.84 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 8.435e-05/0.2303, allocations: 141.7 kB / 445.9 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.569e-05/0.2304, allocations: 27.66 kB / 446 MB, free: 5.664 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001871/0.2305, allocations: 135 kB / 446.1 MB, free: 5.523 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.2306, allocations: 4 kB / 446.1 MB, free: 5.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.2306, allocations: 3.938 kB / 446.1 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2306, allocations: 4.062 kB / 446.1 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004531/0.231, allocations: 492 kB / 446.6 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.231, allocations: 3.938 kB / 446.6 MB, free: 4.965 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001453/0.2312, allocations: 31.97 kB / 446.6 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.2312, allocations: 4 kB / 446.6 MB, free: 4.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.2312, allocations: 4 kB / 446.6 MB, free: 4.926 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004632/0.2317, allocations: 1.333 MB / 448 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2317, allocations: 0 / 448 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002274/0.2319, allocations: 306 kB / 448.3 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.472e-05/0.232, allocations: 96.89 kB / 448.4 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.232, allocations: 4 kB / 448.4 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.908e-05/0.2321, allocations: 11.94 kB / 448.4 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.18e-05/0.2321, allocations: 12.05 kB / 448.4 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.2321, allocations: 8 kB / 448.4 MB, free: 2.992 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.377e-05/0.2322, allocations: 152.4 kB / 448.6 MB, free: 2.844 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2322, allocations: 0 / 448.6 MB, free: 2.844 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002942/0.2325, allocations: 47.91 kB / 448.6 MB, free: 2.797 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 0.0003753/0.2329, allocations: 0.8319 MB / 449.4 MB, free: 1.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002438/0.2332, allocations: 127.5 kB / 449.6 MB, free: 1.809 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2332, allocations: 0.75 kB / 449.6 MB, free: 1.809 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.2333, allocations: 63.97 kB / 449.6 MB, free: 1.746 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.2337, allocations: 31.61 kB / 449.6 MB, free: 1.719 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.2358, allocations: 2.479 MB / 452.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.2361, allocations: 0.744 MB / 452.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.288e-05/0.2362, allocations: 33.52 kB / 452.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.083e-05/0.2363, allocations: 55.42 kB / 453 MB, free: 14.21 MB / 334.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2363, allocations: 0 / 453 MB, free: 14.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01452/0.2509, allocations: 3.444 MB / 456.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002259/0.2511, allocations: 228 kB / 456.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.722/1.973, allocations: 4.062 kB / 456.6 MB, free: 10.55 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)