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.001023/0.001022, allocations: 90.89 kB / 16.31 MB, free: 6.133 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.00154/0.00154, allocations: 182.9 kB / 17.2 MB, free: 6.016 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.629/1.629, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1879/0.1879, allocations: 38.04 MB / 309.7 MB, free: 6.129 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.000493/0.0004931, allocations: 16 kB / 376.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2353, allocations: 56.33 MB / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.00297/0.2383, allocations: 3.006 MB / 435.9 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.2396, allocations: 1.206 MB / 437.1 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.2397, allocations: 11.94 kB / 437.1 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.2398, allocations: 39.75 kB / 437.2 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003281/0.2402, allocations: 135.5 kB / 437.3 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001985/0.2404, allocations: 95.73 kB / 437.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.2406, allocations: 163.6 kB / 437.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004028/0.241, allocations: 242.9 kB / 437.8 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.2411, allocations: 99.61 kB / 437.9 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.2413, allocations: 71.69 kB / 438 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.684e-05/0.2413, allocations: 4 kB / 438 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001846/0.2415, allocations: 111.7 kB / 438.1 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.803e-05/0.2415, allocations: 51.89 kB / 438.1 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.521e-05/0.2416, allocations: 65.58 kB / 438.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002032/0.2418, allocations: 199.5 kB / 438.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2418, allocations: 0 / 438.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2418, allocations: 0 / 438.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.2418, allocations: 3.938 kB / 438.4 MB, free: 13.29 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.0005699/0.2424, allocations: 474.8 kB / 438.9 MB, free: 12.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.2425, allocations: 8.031 kB / 438.9 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.416e-05/0.2425, allocations: 62.42 kB / 438.9 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006727/0.2432, allocations: 83.64 kB / 439 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002564/0.2435, allocations: 250.6 kB / 439.2 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.2435, allocations: 12.33 kB / 439.3 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.2435, allocations: 19.98 kB / 439.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003661/0.2439, allocations: 267.9 kB / 439.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.2439, allocations: 8 kB / 439.5 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.072e-05/0.244, allocations: 4 kB / 439.6 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.04e-05/0.244, allocations: 16.28 kB / 439.6 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003004/0.2443, allocations: 220.4 kB / 439.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.2456, allocations: 1.206 MB / 441 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001879/0.2458, allocations: 145.2 kB / 441.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.2458, allocations: 0 / 441.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.2459, allocations: 38.56 kB / 441.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 9.52e-07/0.2459, allocations: 0 / 441.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003338/0.2462, allocations: 161.5 kB / 441.3 MB, free: 10.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.2463, allocations: 81.05 kB / 441.4 MB, free: 9.996 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/0.2464, allocations: 199 kB / 441.6 MB, free: 9.793 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.337e-05/0.2464, allocations: 33.7 kB / 441.6 MB, free: 9.754 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.183e-05/0.2465, allocations: 148.1 kB / 441.8 MB, free: 9.602 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.322e-05/0.2465, allocations: 51.38 kB / 441.8 MB, free: 9.551 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-06/0.2466, allocations: 3.938 kB / 441.8 MB, free: 9.547 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.621e-05/0.2466, allocations: 330.8 kB / 442.2 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.226e-05/0.2467, allocations: 44.11 kB / 442.2 MB, free: 9.172 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.117e-05/0.2468, allocations: 126 kB / 442.3 MB, free: 9.012 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.145e-05/0.2469, allocations: 67.42 kB / 442.4 MB, free: 8.949 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2469, allocations: 3.953 kB / 442.4 MB, free: 8.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002214/0.2471, allocations: 213.2 kB / 442.6 MB, free: 8.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.2471, allocations: 4 kB / 442.6 MB, free: 8.727 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.2472, allocations: 4 kB / 442.6 MB, free: 8.723 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.2472, allocations: 7.938 kB / 442.6 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.2474, allocations: 47.91 kB / 442.7 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005941/0.248, allocations: 1.329 MB / 444 MB, free: 7.207 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.601e-05/0.2481, allocations: 19.84 kB / 444 MB, free: 7.188 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/0.2481, allocations: 11.98 kB / 444 MB, free: 7.176 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 9.934e-05/0.2482, allocations: 145.7 kB / 444.2 MB, free: 7.023 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.345e-05/0.2483, allocations: 27.95 kB / 444.2 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000181/0.2485, allocations: 139 kB / 444.3 MB, free: 6.852 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.2485, allocations: 4 kB / 444.3 MB, free: 6.848 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-06/0.2485, allocations: 0 / 444.3 MB, free: 6.848 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.2485, allocations: 0 / 444.3 MB, free: 6.848 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004792/0.249, allocations: 495.9 kB / 444.8 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.249, allocations: 0 / 444.8 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/0.2491, allocations: 39.98 kB / 444.9 MB, free: 6.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.2492, allocations: 0 / 444.9 MB, free: 6.262 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/0.2492, allocations: 7.984 kB / 444.9 MB, free: 6.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005282/0.2497, allocations: 1.337 MB / 446.2 MB, free: 4.789 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2497, allocations: 0 / 446.2 MB, free: 4.789 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000252/0.25, allocations: 339.2 kB / 446.5 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/0.25, allocations: 104.8 kB / 446.6 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.2501, allocations: 0 / 446.6 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.01e-05/0.2502, allocations: 0 / 446.6 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.768e-05/0.2502, allocations: 19.92 kB / 446.7 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.2502, allocations: 7.984 kB / 446.7 MB, free: 4.266 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.048e-05/0.2503, allocations: 148.4 kB / 446.8 MB, free: 4.121 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2503, allocations: 0 / 446.8 MB, free: 4.121 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003117/0.2506, allocations: 51.97 kB / 446.9 MB, free: 4.07 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004431/0.2511, allocations: 1.071 MB / 447.9 MB, free: 2.953 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002477/0.2513, allocations: 122.3 kB / 448 MB, free: 2.836 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2513, allocations: 0 / 448 MB, free: 2.836 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.2515, allocations: 64.72 kB / 448.1 MB, free: 2.773 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.2518, allocations: 28.84 kB / 448.1 MB, free: 2.746 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.2535, allocations: 2.964 MB / 451.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.2538, allocations: 0.7518 MB / 451.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.742e-05/0.2539, allocations: 33.52 kB / 451.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.526e-05/0.254, allocations: 59.42 kB / 451.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.254, allocations: 4 kB / 451.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01371/0.2677, allocations: 3.381 MB / 455.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/0.2679, allocations: 207.2 kB / 455.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.676/1.944, allocations: 4 kB / 455.5 MB, free: 11.23 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/linux/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) Environment - environmentSimulation: