Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.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: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008785/0.0008786, allocations: 166.6 kB / 16.07 MB, free: 5.605 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.372/1.372, allocations: 205.4 MB / 222.2 MB, free: 13.72 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.0007747/0.0007744, allocations: 90.25 kB / 270.6 MB, free: 13.24 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1539/0.1539, allocations: 38.08 MB / 356.9 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003322/0.0003323, allocations: 12 kB / 423.4 MB, free: 25.98 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08851/0.08886, allocations: 56.34 MB / 479.7 MB, free: 1.586 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003414/0.09231, allocations: 3.107 MB / 482.8 MB, free: 14.46 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.0938, allocations: 1.249 MB / 484.1 MB, free: 13.2 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.09394, allocations: 11.94 kB / 484.1 MB, free: 13.19 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001394/0.09408, allocations: 31.7 kB / 484.1 MB, free: 13.16 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003999/0.09449, allocations: 167.2 kB / 484.3 MB, free: 12.99 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002634/0.09477, allocations: 127.7 kB / 484.4 MB, free: 12.87 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000328/0.09511, allocations: 318.9 kB / 484.7 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000441/0.09556, allocations: 258.9 kB / 485 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.09572, allocations: 95.58 kB / 485.1 MB, free: 12.19 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001523/0.09588, allocations: 107.6 kB / 485.2 MB, free: 12.09 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.943e-05/0.09591, allocations: 8 kB / 485.2 MB, free: 12.08 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003603/0.09627, allocations: 263.3 kB / 485.5 MB, free: 11.82 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.325e-05/0.09635, allocations: 55.81 kB / 485.5 MB, free: 11.77 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.09647, allocations: 113.2 kB / 485.6 MB, free: 11.65 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002408/0.09672, allocations: 215.5 kB / 485.8 MB, free: 11.44 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.09673, allocations: 0 / 485.8 MB, free: 11.44 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09674, allocations: 0 / 485.8 MB, free: 11.44 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.09675, allocations: 0 / 485.8 MB, free: 11.44 MB / 330.7 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.0005538/0.09731, allocations: 467.1 kB / 486.3 MB, free: 10.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.09735, allocations: 12.03 kB / 486.3 MB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.057e-05/0.09742, allocations: 54.72 kB / 486.4 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005741/0.098, allocations: 80.58 kB / 486.4 MB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.09827, allocations: 255.8 kB / 486.7 MB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.0983, allocations: 12.7 kB / 486.7 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.393e-05/0.09834, allocations: 16.38 kB / 486.7 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003922/0.09874, allocations: 271.8 kB / 487 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.09876, allocations: 0 / 487 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/0.09879, allocations: 11.98 kB / 487 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.711e-05/0.09882, allocations: 20.31 kB / 487 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003194/0.09915, allocations: 212.4 kB / 487.2 MB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/0.1006, allocations: 1.21 MB / 488.4 MB, free: 8.629 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001971/0.1008, allocations: 133.1 kB / 488.6 MB, free: 8.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.952e-05/0.1009, allocations: 57.83 kB / 488.6 MB, free: 8.418 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/0.1009, allocations: 4 kB / 488.6 MB, free: 8.414 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.1009, allocations: 38.5 kB / 488.7 MB, free: 8.367 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.1009, allocations: 0 / 488.7 MB, free: 8.367 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003108/0.1013, allocations: 165.3 kB / 488.8 MB, free: 8.199 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/0.1013, allocations: 85.23 kB / 488.9 MB, free: 8.098 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.1015, allocations: 206.9 kB / 489.1 MB, free: 7.883 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.1015, allocations: 25.7 kB / 489.1 MB, free: 7.852 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.408e-05/0.1016, allocations: 155.9 kB / 489.3 MB, free: 7.695 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.385e-05/0.1016, allocations: 39.36 kB / 489.3 MB, free: 7.656 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.288e-06/0.1017, allocations: 4 kB / 489.3 MB, free: 7.652 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1018, allocations: 330.8 kB / 489.6 MB, free: 7.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.695e-05/0.1018, allocations: 39.97 kB / 489.7 MB, free: 7.281 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.102, allocations: 130 kB / 489.8 MB, free: 7.117 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002015/0.1022, allocations: 182.1 kB / 490 MB, free: 6.902 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1022, allocations: 4 kB / 490 MB, free: 6.898 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002666/0.1025, allocations: 205.5 kB / 490.2 MB, free: 6.691 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.1025, allocations: 7.984 kB / 490.2 MB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1025, allocations: 4.344 kB / 490.2 MB, free: 6.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1025, allocations: 11.94 kB / 490.2 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002356/0.1028, allocations: 47.91 kB / 490.3 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000845/0.1036, allocations: 1.329 MB / 491.6 MB, free: 5.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.1037, allocations: 23.69 kB / 491.6 MB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.1038, allocations: 8 kB / 491.6 MB, free: 5.129 MB / 330.7 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 0.0001179/0.1039, allocations: 145.8 kB / 491.8 MB, free: 4.977 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.609e-05/0.1039, allocations: 19.75 kB / 491.8 MB, free: 4.957 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002161/0.1041, allocations: 135 kB / 491.9 MB, free: 4.816 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1042, allocations: 0 / 491.9 MB, free: 4.816 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.1042, allocations: 0 / 491.9 MB, free: 4.816 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1042, allocations: 8.031 kB / 491.9 MB, free: 4.809 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005854/0.1048, allocations: 499.9 kB / 492.4 MB, free: 4.258 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1048, allocations: 0 / 492.4 MB, free: 4.258 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.105, allocations: 39.91 kB / 492.4 MB, free: 4.219 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.105, allocations: 4 kB / 492.5 MB, free: 4.215 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.105, allocations: 0 / 492.5 MB, free: 4.215 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007458/0.1057, allocations: 1.333 MB / 493.8 MB, free: 2.754 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1057, allocations: 0 / 493.8 MB, free: 2.754 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003022/0.1061, allocations: 306 kB / 494.1 MB, free: 2.43 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.011e-05/0.1061, allocations: 88.95 kB / 494.2 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.145e-05/0.1062, allocations: 8 kB / 494.2 MB, free: 2.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.878e-05/0.1062, allocations: 3.938 kB / 494.2 MB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.544e-05/0.1063, allocations: 15.92 kB / 494.2 MB, free: 2.297 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.1063, allocations: 8.062 kB / 494.2 MB, free: 2.289 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001095/0.1064, allocations: 152.4 kB / 494.4 MB, free: 2.141 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1064, allocations: 4 kB / 494.4 MB, free: 2.137 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003124/0.1068, allocations: 47.84 kB / 494.4 MB, free: 2.09 MB / 330.7 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.0005412/0.1073, allocations: 0.8319 MB / 495.2 MB, free: 1.223 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002843/0.1076, allocations: 131.8 kB / 495.4 MB, free: 1.094 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1076, allocations: 0.75 kB / 495.4 MB, free: 1.094 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.1077, allocations: 59.97 kB / 495.4 MB, free: 1.035 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003666/0.1081, allocations: 31.98 kB / 495.5 MB, free: 1.004 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001771/0.1099, allocations: 1.344 MB / 496.8 MB, free: 15.56 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.1102, allocations: 0.7442 MB / 497.5 MB, free: 14.79 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.973e-05/0.1103, allocations: 63.41 kB / 497.6 MB, free: 14.73 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.1103, allocations: 0 / 497.6 MB, free: 14.73 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.042/3.152, allocations: 3.669 MB / 0.4895 GB, free: 11.05 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)