Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_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.001222/0.001222, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.825/1.825, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0009448/0.0009448, allocations: 74.73 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1873/0.1873, allocations: 37.98 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.008e-05/4.031e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1315, allocations: 56.31 MB / 474.1 MB, free: 4.719 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5062/0.6378, allocations: 94.33 MB / 0.5551 GB, free: 8.586 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.6381, allocations: 88.62 kB / 0.5552 GB, free: 8.543 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02313/0.6612, allocations: 9.787 MB / 0.5648 GB, free: 428 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.6612, allocations: 0 / 0.5648 GB, free: 428 kB / 362.7 MB Notification: Performance of Transformations before backend: time 2.828e-05/0.6613, allocations: 12 kB / 0.5648 GB, free: 416 kB / 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.0007803/0.6621, allocations: 477.5 kB / 0.5653 GB, free: 15.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.6621, allocations: 8.031 kB / 0.5653 GB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.695e-05/0.6622, allocations: 53.3 kB / 0.5653 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007921/0.663, allocations: 91.58 kB / 0.5654 GB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005178/0.6636, allocations: 267.3 kB / 0.5657 GB, free: 15.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.6636, allocations: 19.62 kB / 0.5657 GB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.313e-05/0.6637, allocations: 15.56 kB / 0.5657 GB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004977/0.6642, allocations: 251.9 kB / 0.5659 GB, free: 15.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.6642, allocations: 11.89 kB / 0.5659 GB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/0.6642, allocations: 3.75 kB / 0.5659 GB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.251e-05/0.6643, allocations: 16.33 kB / 0.566 GB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003992/0.6647, allocations: 206.5 kB / 0.5662 GB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.6665, allocations: 1.205 MB / 0.5673 GB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002202/0.6668, allocations: 125.3 kB / 0.5675 GB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.42e-05/0.6668, allocations: 45.53 kB / 0.5675 GB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.6669, allocations: 3.984 kB / 0.5675 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.6669, allocations: 34.55 kB / 0.5675 GB, free: 13.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 2.043e-06/0.6669, allocations: 4 kB / 0.5675 GB, free: 13.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003242/0.6673, allocations: 124 kB / 0.5677 GB, free: 13.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.6673, allocations: 81.11 kB / 0.5677 GB, free: 13.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002178/0.6675, allocations: 186.3 kB / 0.5679 GB, free: 13.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.455e-05/0.6676, allocations: 33.33 kB / 0.5679 GB, free: 13.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.6677, allocations: 148.5 kB / 0.5681 GB, free: 13.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.367e-05/0.6678, allocations: 42.92 kB / 0.5681 GB, free: 13.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.969e-06/0.6678, allocations: 3.312 kB / 0.5681 GB, free: 13.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.6679, allocations: 329.6 kB / 0.5684 GB, free: 12.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.422e-05/0.668, allocations: 46.02 kB / 0.5685 GB, free: 12.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.6682, allocations: 109.1 kB / 0.5686 GB, free: 12.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.6683, allocations: 65.72 kB / 0.5687 GB, free: 12.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.6683, allocations: 0 / 0.5687 GB, free: 12.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000351/0.6687, allocations: 196.9 kB / 0.5688 GB, free: 12.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.6687, allocations: 4 kB / 0.5688 GB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.6687, allocations: 4 kB / 0.5689 GB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.6688, allocations: 4 kB / 0.5689 GB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/0.669, allocations: 59.03 kB / 0.5689 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.669, allocations: 4.344 kB / 0.5689 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.6692, allocations: 31.56 kB / 0.5689 GB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.6692, allocations: 8 kB / 0.569 GB, free: 12.34 MB / 378.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 (23): * Single equations (assignments): 23 * 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 0.0001051/0.6693, allocations: 116.3 kB / 0.5691 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.933e-05/0.6694, allocations: 19.77 kB / 0.5691 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002648/0.6696, allocations: 130.7 kB / 0.5692 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.6697, allocations: 4 kB / 0.5692 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6697, allocations: 0 / 0.5692 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.6697, allocations: 0 / 0.5692 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007566/0.6704, allocations: 0.5336 MB / 0.5697 GB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.6705, allocations: 4 kB / 0.5697 GB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001533/0.6706, allocations: 27.92 kB / 0.5698 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.6706, allocations: 4 kB / 0.5698 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.6707, allocations: 10.31 kB / 0.5698 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.17e-05/0.6707, allocations: 8.062 kB / 0.5698 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.6707, allocations: 7.922 kB / 0.5698 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004929/0.6712, allocations: 398.9 kB / 0.5702 GB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.794e-05/0.6713, allocations: 101 kB / 0.5703 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.859e-05/0.6713, allocations: 6.5 kB / 0.5703 GB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.6715, allocations: 7.625 kB / 0.5703 GB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.409e-05/0.6715, allocations: 15.88 kB / 0.5703 GB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.6715, allocations: 4 kB / 0.5703 GB, free: 10.94 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000151/0.6717, allocations: 149.7 kB / 0.5704 GB, free: 10.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6717, allocations: 0 / 0.5704 GB, free: 10.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003354/0.672, allocations: 51.16 kB / 0.5705 GB, free: 10.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (13): * Single equations (assignments): 12 * 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.00106/0.6731, allocations: 1.422 MB / 0.5719 GB, free: 9.328 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002286/0.6733, allocations: 110.7 kB / 0.572 GB, free: 9.242 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.6734, allocations: 0 / 0.572 GB, free: 9.242 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.877e-05/0.6735, allocations: 56.61 kB / 0.572 GB, free: 9.199 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002978/0.6738, allocations: 32.25 kB / 0.5721 GB, free: 9.176 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.675, allocations: 470.3 kB / 0.5725 GB, free: 8.699 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004912/0.6755, allocations: 0.7508 MB / 0.5733 GB, free: 7.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000157/0.6757, allocations: 41.5 kB / 0.5733 GB, free: 7.887 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.451e-05/0.6758, allocations: 57.61 kB / 0.5733 GB, free: 7.863 MB / 378.7 MB Notification: Performance of SimCode: time 1.322e-06/0.6758, allocations: 0 / 0.5733 GB, free: 7.863 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01768/0.6935, allocations: 3.135 MB / 0.5764 GB, free: 4.773 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/0.6937, allocations: 165 kB / 0.5766 GB, free: 4.543 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/2.48, allocations: 0 / 0.5766 GB, free: 4.543 MB / 378.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat does not exist to compare? outputFormat=mat