Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001024/0.001024, allocations: 197.5 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.206/1.206, allocations: 227.2 MB / 245 MB, free: 5.867 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000893/0.000893, allocations: 104.1 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002115/0.0002115, allocations: 11.98 kB / 358 MB, free: 9.238 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1798/0.18, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08287/0.2629, allocations: 79.43 MB / 488.9 MB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001951/0.2632, allocations: 75.95 kB / 489 MB, free: 11.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006176/0.2694, allocations: 2.427 MB / 491.4 MB, free: 8.672 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2694, allocations: 0 / 491.4 MB, free: 8.672 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.2694, allocations: 4 kB / 491.4 MB, free: 8.668 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004341/0.2698, allocations: 422.8 kB / 491.8 MB, free: 8.207 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.2699, allocations: 8.031 kB / 491.9 MB, free: 8.199 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.117e-05/0.2699, allocations: 46.55 kB / 491.9 MB, free: 8.145 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.99e-05/0.27, allocations: 11.91 kB / 491.9 MB, free: 8.133 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.2701, allocations: 203 kB / 492.1 MB, free: 7.895 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.2702, allocations: 12 kB / 492.1 MB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.531e-05/0.2702, allocations: 15.95 kB / 492.1 MB, free: 7.867 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004094/0.2706, allocations: 242.5 kB / 492.4 MB, free: 7.605 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.2706, allocations: 0 / 492.4 MB, free: 7.605 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.2706, allocations: 8 kB / 492.4 MB, free: 7.598 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.2707, allocations: 7.984 kB / 492.4 MB, free: 7.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002457/0.2709, allocations: 99.8 kB / 492.5 MB, free: 7.492 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005306/0.2714, allocations: 0.5882 MB / 493.1 MB, free: 6.832 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002321/0.2717, allocations: 147.9 kB / 493.2 MB, free: 6.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.2717, allocations: 4.078 kB / 493.2 MB, free: 6.656 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.2717, allocations: 42.69 kB / 493.3 MB, free: 6.605 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.293e-06/0.2718, allocations: 4 kB / 493.3 MB, free: 6.602 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004641/0.2722, allocations: 193.3 kB / 493.5 MB, free: 6.406 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.2723, allocations: 110.9 kB / 493.6 MB, free: 6.273 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.829e-05/0.2724, allocations: 114.2 kB / 493.7 MB, free: 6.152 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.2724, allocations: 33.7 kB / 493.7 MB, free: 6.113 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.047e-05/0.2725, allocations: 111.9 kB / 493.8 MB, free: 6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.29e-05/0.2725, allocations: 31.62 kB / 493.8 MB, free: 5.969 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.983e-06/0.2725, allocations: 4 kB / 493.9 MB, free: 5.965 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.236e-05/0.2726, allocations: 322.8 kB / 494.2 MB, free: 5.641 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.2727, allocations: 43.97 kB / 494.2 MB, free: 5.598 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.2729, allocations: 144.3 kB / 494.4 MB, free: 5.414 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.273, allocations: 51.98 kB / 494.4 MB, free: 5.363 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.273, allocations: 0 / 494.4 MB, free: 5.363 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003377/0.2733, allocations: 197.2 kB / 494.6 MB, free: 5.164 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.2734, allocations: 11.98 kB / 494.6 MB, free: 5.152 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2734, allocations: 4.438 kB / 494.6 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.2734, allocations: 8 kB / 494.6 MB, free: 5.141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/0.2736, allocations: 47.92 kB / 494.7 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.2736, allocations: 7.938 kB / 494.7 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.2737, allocations: 23.83 kB / 494.7 MB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.415e-05/0.2737, allocations: 15.98 kB / 494.7 MB, free: 5.047 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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 7.775e-05/0.2738, allocations: 125.8 kB / 494.8 MB, free: 4.914 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.2739, allocations: 81.55 kB / 494.9 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.763e-05/0.274, allocations: 20.7 kB / 494.9 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.274, allocations: 0 / 494.9 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.274, allocations: 4 kB / 494.9 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.274, allocations: 0 / 494.9 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002109/0.2742, allocations: 209.9 kB / 495.1 MB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.2742, allocations: 4 kB / 495.1 MB, free: 4.547 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001706/0.2744, allocations: 35.98 kB / 495.2 MB, free: 4.512 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.2744, allocations: 4 kB / 495.2 MB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.2744, allocations: 8.188 kB / 495.2 MB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.2744, allocations: 7.922 kB / 495.2 MB, free: 4.492 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.2744, allocations: 4 kB / 495.2 MB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000451/0.2749, allocations: 414.5 kB / 495.6 MB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.494e-05/0.2749, allocations: 85.05 kB / 495.7 MB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.275, allocations: 0 / 495.7 MB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.2751, allocations: 20.05 kB / 495.7 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.161e-05/0.2752, allocations: 7.984 kB / 495.7 MB, free: 3.926 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.2752, allocations: 0 / 495.7 MB, free: 3.926 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.371e-05/0.2752, allocations: 102.1 kB / 495.8 MB, free: 3.828 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2752, allocations: 0 / 495.8 MB, free: 3.828 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002955/0.2755, allocations: 35.84 kB / 495.9 MB, free: 3.793 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 (14): * Single equations (assignments): 14 * 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.000706/0.2762, allocations: 1.081 MB / 496.9 MB, free: 2.672 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002872/0.2765, allocations: 132.5 kB / 497.1 MB, free: 2.543 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2766, allocations: 0 / 497.1 MB, free: 2.543 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.89e-05/0.2767, allocations: 35.97 kB / 497.1 MB, free: 2.508 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.277, allocations: 51.2 kB / 497.2 MB, free: 2.461 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.2789, allocations: 3.095 MB / 0.4885 GB, free: 15.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.2791, allocations: 0.7123 MB / 0.4892 GB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.648e-05/0.2791, allocations: 12.58 kB / 0.4892 GB, free: 14.49 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.281e-05/0.2792, allocations: 43.48 kB / 0.4893 GB, free: 14.45 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.2792, allocations: 0 / 0.4893 GB, free: 14.45 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01203/0.2912, allocations: 2.362 MB / 0.4916 GB, free: 12.3 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002176/0.2915, allocations: 224.2 kB / 0.4918 GB, free: 12.06 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.504/1.796, allocations: 7.266 kB / 0.4918 GB, free: 12.05 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat does not exist to compare? outputFormat=mat