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.001119/0.001119, allocations: 109.6 kB / 16.51 MB, free: 6.707 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.001008/0.001008, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.362/1.362, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1681/0.1681, allocations: 37.99 MB / 308.6 MB, free: 6.234 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.001412/0.001412, allocations: 63.91 kB / 374.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.2844, allocations: 55.23 MB / 430 MB, free: 19.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004497/0.289, allocations: 3.571 MB / 433.5 MB, free: 16.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.2904, allocations: 1.33 MB / 434.9 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.2905, allocations: 11.94 kB / 434.9 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004824/0.291, allocations: 143.5 kB / 435 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002868/0.2913, allocations: 163.3 kB / 435.2 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.2916, allocations: 127.7 kB / 435.3 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002726/0.2918, allocations: 386.9 kB / 435.7 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.2921, allocations: 102 kB / 435.8 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.2922, allocations: 111.5 kB / 435.9 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000126/0.2924, allocations: 111.5 kB / 436 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.112e-05/0.2924, allocations: 15.98 kB / 436 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003159/0.2927, allocations: 279.3 kB / 436.3 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.707e-05/0.2928, allocations: 59.81 kB / 436.3 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.129e-05/0.2929, allocations: 95.41 kB / 436.4 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002957/0.2932, allocations: 295 kB / 436.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2932, allocations: 0 / 436.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2932, allocations: 8 kB / 436.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.2932, allocations: 0 / 436.7 MB, free: 12.95 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.0005265/0.2937, allocations: 0.495 MB / 437.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.2938, allocations: 12.03 kB / 437.2 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.176e-05/0.2938, allocations: 50.73 kB / 437.3 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005874/0.2944, allocations: 76.58 kB / 437.4 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002162/0.2946, allocations: 259.8 kB / 437.6 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.2947, allocations: 12.7 kB / 437.6 MB, free: 11.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.193e-05/0.2947, allocations: 16.38 kB / 437.6 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003384/0.295, allocations: 275.8 kB / 437.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.2951, allocations: 0 / 437.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/0.2951, allocations: 12 kB / 437.9 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.519e-05/0.2951, allocations: 12.31 kB / 437.9 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002838/0.2954, allocations: 220.1 kB / 438.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.2966, allocations: 1.206 MB / 439.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.2968, allocations: 141.2 kB / 439.5 MB, free: 9.953 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.964e-05/0.2968, allocations: 49.77 kB / 439.5 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.607e-05/0.2969, allocations: 0 / 439.5 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/0.2969, allocations: 38.5 kB / 439.6 MB, free: 9.852 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.102e-06/0.2969, allocations: 0 / 439.6 MB, free: 9.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003155/0.2972, allocations: 169.3 kB / 439.7 MB, free: 9.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.2973, allocations: 77.11 kB / 439.8 MB, free: 9.586 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.2974, allocations: 211.1 kB / 440 MB, free: 9.371 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.949e-06/0.2974, allocations: 25.7 kB / 440.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.733e-05/0.2975, allocations: 155.9 kB / 440.2 MB, free: 9.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.82e-05/0.2975, allocations: 39.39 kB / 440.2 MB, free: 9.141 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.112e-05/0.2976, allocations: 49.61 kB / 440.3 MB, free: 9.086 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.235e-05/0.2977, allocations: 326.8 kB / 440.6 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.5e-05/0.2977, allocations: 43.98 kB / 440.7 MB, free: 8.715 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.573e-05/0.2978, allocations: 119.6 kB / 440.8 MB, free: 8.562 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000164/0.298, allocations: 185.7 kB / 441 MB, free: 8.348 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.298, allocations: 4 kB / 441 MB, free: 8.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002279/0.2982, allocations: 209.1 kB / 441.2 MB, free: 8.133 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.2983, allocations: 8 kB / 441.2 MB, free: 8.125 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.2983, allocations: 4 kB / 441.2 MB, free: 8.121 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.2983, allocations: 7.938 kB / 441.2 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002088/0.2985, allocations: 56.25 kB / 441.2 MB, free: 8.059 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005906/0.2991, allocations: 1.329 MB / 442.6 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.429e-05/0.2992, allocations: 15.75 kB / 442.6 MB, free: 6.582 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.2992, allocations: 16.16 kB / 442.6 MB, free: 6.566 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.482e-05/0.2993, allocations: 145.7 kB / 442.7 MB, free: 6.414 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.505e-05/0.2994, allocations: 19.75 kB / 442.8 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001941/0.2996, allocations: 139 kB / 442.9 MB, free: 6.25 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.2996, allocations: 3.938 kB / 442.9 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-06/0.2996, allocations: 4 kB / 442.9 MB, free: 6.242 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2996, allocations: 3.984 kB / 442.9 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004646/0.3001, allocations: 492 kB / 443.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.3001, allocations: 3.984 kB / 443.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001525/0.3002, allocations: 31.92 kB / 443.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.3002, allocations: 0 / 443.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.3003, allocations: 8 kB / 443.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004689/0.3007, allocations: 1.325 MB / 444.8 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3007, allocations: 3.969 kB / 444.8 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002403/0.301, allocations: 305.2 kB / 445.1 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.619e-05/0.301, allocations: 96.89 kB / 445.1 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.303e-05/0.3011, allocations: 3.984 kB / 445.2 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.299e-05/0.3012, allocations: 11.94 kB / 445.2 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.556e-05/0.3012, allocations: 7.938 kB / 445.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.3012, allocations: 7.984 kB / 445.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.762e-05/0.3013, allocations: 148.5 kB / 445.3 MB, free: 3.586 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3013, allocations: 4 kB / 445.3 MB, free: 3.582 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002965/0.3016, allocations: 51.91 kB / 445.4 MB, free: 3.531 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.0004004/0.302, allocations: 0.8358 MB / 446.2 MB, free: 2.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002428/0.3023, allocations: 127.8 kB / 446.3 MB, free: 2.535 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.696e-06/0.3023, allocations: 0 / 446.3 MB, free: 2.535 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.3024, allocations: 64.72 kB / 446.4 MB, free: 2.473 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.3028, allocations: 32.47 kB / 446.4 MB, free: 2.441 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002107/0.3049, allocations: 2.406 MB / 448.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/0.3053, allocations: 0.7439 MB / 449.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.868e-05/0.3053, allocations: 25.53 kB / 449.6 MB, free: 15.08 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.197e-05/0.3054, allocations: 63.41 kB / 449.7 MB, free: 15.01 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3055, allocations: 192 / 449.7 MB, free: 15.01 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01446/0.3199, allocations: 3.541 MB / 453.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001727/0.3201, allocations: 224.7 kB / 453.4 MB, free: 11.24 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/2.175, allocations: 0 / 453.4 MB, free: 11.24 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)