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.0009928/0.0009928, allocations: 180.3 kB / 16.38 MB, free: 5.762 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.2/1.2, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.000777/0.0007767, allocations: 84.16 kB / 270.8 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1581/0.1581, allocations: 38.06 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002722/0.0002723, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2223, allocations: 56.32 MB / 480.4 MB, free: 9.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1129/0.3352, allocations: 94.41 MB / 0.5614 GB, free: 7.988 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/0.3355, allocations: 87.94 kB / 0.5614 GB, free: 7.902 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02327/0.3588, allocations: 9.845 MB / 0.5711 GB, free: 13.94 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.063e-06/0.3588, allocations: 0 / 0.5711 GB, free: 13.94 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.65e-05/0.3588, allocations: 8 kB / 0.5711 GB, free: 13.93 MB / 410.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.0006272/0.3595, allocations: 487.3 kB / 0.5715 GB, free: 13.4 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3595, allocations: 12.02 kB / 0.5715 GB, free: 13.39 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.038e-05/0.3596, allocations: 54.55 kB / 0.5716 GB, free: 13.33 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006287/0.3602, allocations: 91.58 kB / 0.5717 GB, free: 13.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003629/0.3606, allocations: 266.9 kB / 0.5719 GB, free: 12.94 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.3606, allocations: 8.328 kB / 0.5719 GB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.742e-05/0.3607, allocations: 19.94 kB / 0.572 GB, free: 12.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003699/0.361, allocations: 263.9 kB / 0.5722 GB, free: 12.63 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.3611, allocations: 3.906 kB / 0.5722 GB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.3611, allocations: 8 kB / 0.5722 GB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.734e-05/0.3611, allocations: 16.27 kB / 0.5722 GB, free: 12.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003246/0.3615, allocations: 208.7 kB / 0.5724 GB, free: 12.4 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.3629, allocations: 1.206 MB / 0.5736 GB, free: 11.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000193/0.3631, allocations: 125.2 kB / 0.5737 GB, free: 10.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.3631, allocations: 4 kB / 0.5737 GB, free: 10.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.3632, allocations: 34.62 kB / 0.5738 GB, free: 10.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 1.422e-06/0.3632, allocations: 0 / 0.5738 GB, free: 10.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003094/0.3635, allocations: 157.5 kB / 0.5739 GB, free: 10.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.3635, allocations: 77.11 kB / 0.574 GB, free: 10.65 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.3637, allocations: 189.9 kB / 0.5742 GB, free: 10.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.3637, allocations: 29.83 kB / 0.5742 GB, free: 10.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.755e-05/0.3638, allocations: 151.9 kB / 0.5744 GB, free: 10.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.467e-05/0.3639, allocations: 47.38 kB / 0.5744 GB, free: 10.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.958e-06/0.3639, allocations: 8 kB / 0.5744 GB, free: 10.22 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.364, allocations: 330.8 kB / 0.5747 GB, free: 9.887 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.044e-05/0.3641, allocations: 39.98 kB / 0.5748 GB, free: 9.848 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.3642, allocations: 122.9 kB / 0.5749 GB, free: 9.691 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.631e-05/0.3643, allocations: 59.92 kB / 0.5749 GB, free: 9.633 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.3643, allocations: 0 / 0.5749 GB, free: 9.633 MB / 410.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002729/0.3646, allocations: 201.1 kB / 0.5751 GB, free: 9.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.3646, allocations: 8 kB / 0.5751 GB, free: 9.422 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3646, allocations: 4.344 kB / 0.5751 GB, free: 9.418 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.3646, allocations: 8 kB / 0.5751 GB, free: 9.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.3648, allocations: 47.91 kB / 0.5752 GB, free: 9.363 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.3649, allocations: 4 kB / 0.5752 GB, free: 9.359 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.365, allocations: 23.75 kB / 0.5752 GB, free: 9.336 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.365, allocations: 8 kB / 0.5752 GB, free: 9.328 MB / 410.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): 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.000119/0.3651, allocations: 145.7 kB / 0.5754 GB, free: 9.176 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.867e-05/0.3652, allocations: 23.77 kB / 0.5754 GB, free: 9.152 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002126/0.3654, allocations: 135 kB / 0.5755 GB, free: 9.016 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.3654, allocations: 7.984 kB / 0.5755 GB, free: 9.008 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.3654, allocations: 0 / 0.5755 GB, free: 9.008 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3654, allocations: 0 / 0.5755 GB, free: 9.008 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006514/0.3661, allocations: 0.5308 MB / 0.576 GB, free: 8.402 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3661, allocations: 0 / 0.576 GB, free: 8.402 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.3662, allocations: 31.92 kB / 0.5761 GB, free: 8.371 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.3662, allocations: 4 kB / 0.5761 GB, free: 8.367 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.3663, allocations: 8.062 kB / 0.5761 GB, free: 8.359 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.3663, allocations: 4 kB / 0.5761 GB, free: 8.355 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3663, allocations: 4 kB / 0.5761 GB, free: 8.352 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003818/0.3667, allocations: 416.2 kB / 0.5765 GB, free: 7.867 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.567e-05/0.3667, allocations: 96.89 kB / 0.5766 GB, free: 7.754 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.107e-05/0.3668, allocations: 11.98 kB / 0.5766 GB, free: 7.742 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.3669, allocations: 0 / 0.5766 GB, free: 7.742 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.59e-05/0.3669, allocations: 19.94 kB / 0.5766 GB, free: 7.723 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.3669, allocations: 4.062 kB / 0.5766 GB, free: 7.719 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001188/0.3671, allocations: 148.6 kB / 0.5768 GB, free: 7.574 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3671, allocations: 0 / 0.5768 GB, free: 7.574 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003067/0.3674, allocations: 51.84 kB / 0.5768 GB, free: 7.523 MB / 410.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 () * Number of clocked 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.0007663/0.3681, allocations: 1.421 MB / 0.5782 GB, free: 6.031 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001978/0.3684, allocations: 108.5 kB / 0.5783 GB, free: 5.926 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3684, allocations: 0 / 0.5783 GB, free: 5.926 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.676e-05/0.3684, allocations: 56.97 kB / 0.5783 GB, free: 5.871 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.3687, allocations: 43.8 kB / 0.5784 GB, free: 5.828 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.3709, allocations: 2.983 MB / 0.5813 GB, free: 2.707 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.3713, allocations: 0.744 MB / 0.582 GB, free: 1.938 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001033/0.3714, allocations: 37.52 kB / 0.5821 GB, free: 1.902 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.786e-05/0.3715, allocations: 59.36 kB / 0.5821 GB, free: 1.844 MB / 410.7 MB Notification: Performance of SimCode: time 3e-07/0.3715, allocations: 0 / 0.5821 GB, free: 1.844 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01348/0.385, allocations: 3.178 MB / 0.5852 GB, free: 14.72 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/0.3852, allocations: 192.1 kB / 0.5854 GB, free: 14.47 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.559/1.944, allocations: 0 / 0.5854 GB, free: 14.47 MB / 426.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