Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001166/0.001166, allocations: 198.7 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 227.2 MB / 245 MB, free: 7.629 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008219/0.0008219, allocations: 95.75 kB / 297.3 MB, free: 6.207 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002002/0.0002002, allocations: 8 kB / 358 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1756, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08102/0.2567, allocations: 79.69 MB / 489.2 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001919/0.2569, allocations: 71.95 kB / 489.2 MB, free: 10.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007286/0.2642, allocations: 2.831 MB / 492.1 MB, free: 8.039 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2642, allocations: 0 / 492.1 MB, free: 8.039 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.2643, allocations: 4 kB / 492.1 MB, free: 8.035 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004861/0.2648, allocations: 450.9 kB / 492.5 MB, free: 7.547 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.2648, allocations: 8.031 kB / 492.5 MB, free: 7.539 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.338e-05/0.2649, allocations: 46.5 kB / 492.6 MB, free: 7.484 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/0.2649, allocations: 15.81 kB / 492.6 MB, free: 7.469 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.2651, allocations: 211.6 kB / 492.8 MB, free: 7.223 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.2651, allocations: 11.95 kB / 492.8 MB, free: 7.211 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.806e-05/0.2651, allocations: 16 kB / 492.8 MB, free: 7.195 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004354/0.2656, allocations: 257.2 kB / 493.1 MB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.2656, allocations: 0 / 493.1 MB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.2656, allocations: 8 kB / 493.1 MB, free: 6.914 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.2656, allocations: 4 kB / 493.1 MB, free: 6.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002449/0.2659, allocations: 95.88 kB / 493.2 MB, free: 6.816 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005438/0.2664, allocations: 0.5999 MB / 493.8 MB, free: 6.145 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003058/0.2668, allocations: 151.7 kB / 493.9 MB, free: 5.969 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.2668, allocations: 8.125 kB / 493.9 MB, free: 5.961 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.964e-05/0.2668, allocations: 38.64 kB / 494 MB, free: 5.914 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.2668, allocations: 0 / 494 MB, free: 5.914 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004992/0.2673, allocations: 209.2 kB / 494.2 MB, free: 5.703 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.2674, allocations: 114.9 kB / 494.3 MB, free: 5.566 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.2675, allocations: 142.2 kB / 494.4 MB, free: 5.422 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.2675, allocations: 33.7 kB / 494.5 MB, free: 5.383 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.622e-05/0.2676, allocations: 112.4 kB / 494.6 MB, free: 5.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.102e-05/0.2676, allocations: 23.73 kB / 494.6 MB, free: 5.246 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-06/0.2676, allocations: 4 kB / 494.6 MB, free: 5.242 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.658e-05/0.2677, allocations: 322.8 kB / 494.9 MB, free: 4.918 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.2678, allocations: 40.73 kB / 495 MB, free: 4.875 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.268, allocations: 145.6 kB / 495.1 MB, free: 4.688 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.2681, allocations: 63.91 kB / 495.2 MB, free: 4.625 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2681, allocations: 7.938 kB / 495.2 MB, free: 4.617 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003482/0.2685, allocations: 205.1 kB / 495.4 MB, free: 4.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.2685, allocations: 4.469 kB / 495.4 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.2685, allocations: 11.98 kB / 495.4 MB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.2686, allocations: 11.95 kB / 495.4 MB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.2687, allocations: 47.91 kB / 495.4 MB, free: 4.336 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.2687, allocations: 4 kB / 495.4 MB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.2688, allocations: 27.83 kB / 495.5 MB, free: 4.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.2689, allocations: 8 kB / 495.5 MB, free: 4.297 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 9.132e-05/0.269, allocations: 137.8 kB / 495.6 MB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001322/0.2691, allocations: 85.53 kB / 495.7 MB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.65e-05/0.2692, allocations: 20.7 kB / 495.7 MB, free: 4.043 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2692, allocations: 4 kB / 495.7 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2692, allocations: 3.953 kB / 495.7 MB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.2692, allocations: 0 / 495.7 MB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002371/0.2694, allocations: 225.4 kB / 495.9 MB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2694, allocations: 0 / 495.9 MB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001808/0.2696, allocations: 35.92 kB / 496 MB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.2696, allocations: 4 kB / 496 MB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.2697, allocations: 12 kB / 496 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.2697, allocations: 3.984 kB / 496 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.2697, allocations: 4 kB / 496 MB, free: 3.707 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004939/0.2702, allocations: 425.9 kB / 496.4 MB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.675e-05/0.2703, allocations: 104.9 kB / 496.5 MB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.2703, allocations: 7.953 kB / 496.5 MB, free: 3.133 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/0.2704, allocations: 12.06 kB / 496.5 MB, free: 3.121 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.709e-05/0.2705, allocations: 11.98 kB / 496.6 MB, free: 3.109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.2705, allocations: 4 kB / 496.6 MB, free: 3.105 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.11e-05/0.2706, allocations: 115.2 kB / 496.7 MB, free: 2.992 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2706, allocations: 0 / 496.7 MB, free: 2.992 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000301/0.2709, allocations: 35.94 kB / 496.7 MB, free: 2.957 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.0007362/0.2716, allocations: 1.092 MB / 497.8 MB, free: 1.824 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002894/0.2719, allocations: 143.6 kB / 497.9 MB, free: 1.688 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.391e-06/0.2719, allocations: 0 / 497.9 MB, free: 1.688 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.12e-05/0.272, allocations: 35.92 kB / 498 MB, free: 1.652 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.2724, allocations: 58 kB / 498 MB, free: 1.598 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.2744, allocations: 3.311 MB / 0.4896 GB, free: 14.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/0.2747, allocations: 0.7322 MB / 0.4903 GB, free: 13.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.23e-05/0.2748, allocations: 13.42 kB / 0.4903 GB, free: 13.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.058e-05/0.2748, allocations: 39.42 kB / 0.4904 GB, free: 13.34 MB / 378.7 MB Notification: Performance of SimCode: time 3.787e-06/0.2748, allocations: 0 / 0.4904 GB, free: 13.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01206/0.2869, allocations: 2.576 MB / 0.4929 GB, free: 10.99 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002329/0.2872, allocations: 231.5 kB / 0.4931 GB, free: 10.74 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.584/1.871, allocations: 0 / 0.4931 GB, free: 10.74 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat