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.002543/0.002543, allocations: 185.7 kB / 8.011 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.207/2.207, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001072/0.001072, allocations: 88.06 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2641/0.2641, allocations: 37.99 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.131e-05/2.132e-05, allocations: 0 / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1098, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5471/0.657, allocations: 93.65 MB / 0.5468 GB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.6573, allocations: 84.66 kB / 0.5469 GB, free: 10.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03684/0.6942, allocations: 9.727 MB / 0.5564 GB, free: 6.863 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6942, allocations: 0 / 0.5564 GB, free: 6.863 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.111e-05/0.6942, allocations: 11.78 kB / 0.5564 GB, free: 6.855 MB / 362.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.0007305/0.695, allocations: 484.2 kB / 0.5569 GB, free: 6.406 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.695, allocations: 11.38 kB / 0.5569 GB, free: 6.406 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001127/0.6962, allocations: 89.86 kB / 0.557 GB, free: 6.367 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005199/0.6967, allocations: 258.9 kB / 0.5572 GB, free: 6.133 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.6968, allocations: 3.875 kB / 0.5572 GB, free: 6.133 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.587e-05/0.6968, allocations: 19.31 kB / 0.5572 GB, free: 6.125 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003615/0.6972, allocations: 136.5 kB / 0.5573 GB, free: 6.109 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004383/0.6977, allocations: 229.9 kB / 0.5576 GB, free: 5.996 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/0.6977, allocations: 3.906 kB / 0.5576 GB, free: 5.992 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.879e-05/0.6977, allocations: 0 / 0.5576 GB, free: 5.992 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.012e-05/0.6978, allocations: 11.86 kB / 0.5576 GB, free: 5.992 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002149/0.7, allocations: 1.217 MB / 0.5588 GB, free: 5.07 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004608/0.7005, allocations: 151.3 kB / 0.5589 GB, free: 5.004 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.7006, allocations: 40.56 kB / 0.559 GB, free: 4.988 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.7006, allocations: 0 / 0.559 GB, free: 4.988 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/0.7007, allocations: 45.34 kB / 0.559 GB, free: 4.941 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 2.645e-06/0.7007, allocations: 3.938 kB / 0.559 GB, free: 4.938 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004266/0.7011, allocations: 120.9 kB / 0.5591 GB, free: 4.887 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.382e-05/0.7012, allocations: 81.14 kB / 0.5592 GB, free: 4.789 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.7013, allocations: 147.3 kB / 0.5593 GB, free: 4.688 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.7014, allocations: 25.7 kB / 0.5594 GB, free: 4.656 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.099e-05/0.7015, allocations: 216.4 kB / 0.5596 GB, free: 4.465 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.451e-05/0.7015, allocations: 50.11 kB / 0.5596 GB, free: 4.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.056e-05/0.7015, allocations: 0 / 0.5596 GB, free: 4.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.86e-05/0.7016, allocations: 318.5 kB / 0.5599 GB, free: 4.113 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.671e-05/0.7017, allocations: 37.06 kB / 0.56 GB, free: 4.113 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.7019, allocations: 121.9 kB / 0.5601 GB, free: 4.004 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001475/0.702, allocations: 59.78 kB / 0.5601 GB, free: 3.992 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.702, allocations: 3.875 kB / 0.5601 GB, free: 3.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003854/0.7024, allocations: 173 kB / 0.5603 GB, free: 3.922 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.7025, allocations: 7.812 kB / 0.5603 GB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.7025, allocations: 0 / 0.5603 GB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.883e-05/0.7025, allocations: 7.859 kB / 0.5603 GB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003577/0.7029, allocations: 58.23 kB / 0.5604 GB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.7029, allocations: 7.797 kB / 0.5604 GB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001804/0.7031, allocations: 15.59 kB / 0.5604 GB, free: 3.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.7031, allocations: 7.594 kB / 0.5604 GB, free: 3.891 MB / 362.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.935e-05/0.7032, allocations: 116.7 kB / 0.5605 GB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003014/0.7035, allocations: 124 kB / 0.5606 GB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.469e-05/0.7036, allocations: 15.55 kB / 0.5606 GB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003649/0.704, allocations: 141.7 kB / 0.5608 GB, free: 3.652 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.704, allocations: 7.812 kB / 0.5608 GB, free: 3.648 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.704, allocations: 0 / 0.5608 GB, free: 3.648 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.7041, allocations: 7.922 kB / 0.5608 GB, free: 3.641 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008142/0.7049, allocations: 471.7 kB / 0.5612 GB, free: 3.293 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.7049, allocations: 3.844 kB / 0.5612 GB, free: 3.293 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002969/0.7052, allocations: 34.45 kB / 0.5613 GB, free: 3.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.205e-06/0.7052, allocations: 0 / 0.5613 GB, free: 3.285 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.49e-05/0.7053, allocations: 7.859 kB / 0.5613 GB, free: 3.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.7053, allocations: 0 / 0.5613 GB, free: 3.281 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.7053, allocations: 0 / 0.5613 GB, free: 3.281 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004827/0.7058, allocations: 361.7 kB / 0.5616 GB, free: 2.984 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.702e-05/0.7059, allocations: 92.98 kB / 0.5617 GB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.847e-05/0.7059, allocations: 0 / 0.5617 GB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.7061, allocations: 11.94 kB / 0.5617 GB, free: 2.863 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.293e-05/0.7061, allocations: 7 kB / 0.5617 GB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.7062, allocations: 7.938 kB / 0.5617 GB, free: 2.852 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001186/0.7063, allocations: 128 kB / 0.5619 GB, free: 2.742 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.7063, allocations: 0 / 0.5619 GB, free: 2.742 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004889/0.7068, allocations: 47.84 kB / 0.5619 GB, free: 2.695 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007323/0.7076, allocations: 1.168 MB / 0.5631 GB, free: 1.523 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003283/0.7079, allocations: 111.5 kB / 0.5632 GB, free: 1.441 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.7079, allocations: 0 / 0.5632 GB, free: 1.441 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001155/0.7081, allocations: 53.8 kB / 0.5632 GB, free: 1.398 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/0.7085, allocations: 35.05 kB / 0.5632 GB, free: 1.371 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.7098, allocations: 476.8 kB / 0.5637 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002197/0.71, allocations: 0.7514 MB / 0.5644 GB, free: 116 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.7102, allocations: 65.41 kB / 0.5645 GB, free: 88 kB / 362.7 MB Notification: Performance of SimCode: time 1.393e-06/0.7102, allocations: 0 / 0.5645 GB, free: 88 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.589/3.299, allocations: 3.068 MB / 0.5675 GB, free: 13.05 MB / 378.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)