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.001186/0.001185, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.591/1.591, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001225/0.001225, allocations: 89.17 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.517e-05/3.529e-05, allocations: 4 kB / 350.6 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1135, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3162/0.4297, allocations: 79.37 MB / 481.5 MB, free: 10.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.43, allocations: 72.12 kB / 481.6 MB, free: 10.04 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006314/0.4364, allocations: 2.42 MB / 484 MB, free: 8.027 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4364, allocations: 3.062 kB / 484 MB, free: 8.027 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.351e-05/0.4364, allocations: 4 kB / 484 MB, free: 8.023 MB / 346.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.0004507/0.4369, allocations: 399.5 kB / 484.4 MB, free: 7.602 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.4369, allocations: 12.03 kB / 484.4 MB, free: 7.59 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.699e-05/0.437, allocations: 50.67 kB / 484.4 MB, free: 7.539 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.352e-05/0.437, allocations: 9.375 kB / 484.4 MB, free: 7.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001829/0.4372, allocations: 208.2 kB / 484.6 MB, free: 7.297 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.4372, allocations: 12.11 kB / 484.7 MB, free: 7.289 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.114e-05/0.4373, allocations: 11.88 kB / 484.7 MB, free: 7.281 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003625/0.4377, allocations: 216.3 kB / 484.9 MB, free: 7.094 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.4377, allocations: 3.906 kB / 484.9 MB, free: 7.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.4377, allocations: 3.125 kB / 484.9 MB, free: 7.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.4377, allocations: 4 kB / 484.9 MB, free: 7.086 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001181/0.4378, allocations: 56.69 kB / 484.9 MB, free: 7.047 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005148/0.4384, allocations: 0.5912 MB / 485.5 MB, free: 6.426 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.4385, allocations: 133.2 kB / 485.7 MB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.239e-05/0.4386, allocations: 62.27 kB / 485.7 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.4386, allocations: 7.391 kB / 485.7 MB, free: 6.234 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.508e-05/0.4387, allocations: 42.5 kB / 485.8 MB, free: 6.184 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.4387, allocations: 0 / 485.8 MB, free: 6.184 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002553/0.4389, allocations: 114.9 kB / 485.9 MB, free: 6.086 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.679e-05/0.439, allocations: 114.9 kB / 486 MB, free: 5.953 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.096e-05/0.4391, allocations: 121.7 kB / 486.1 MB, free: 5.836 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.4391, allocations: 29.31 kB / 486.2 MB, free: 5.805 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.579e-05/0.4391, allocations: 122 kB / 486.3 MB, free: 5.691 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.4392, allocations: 23.2 kB / 486.3 MB, free: 5.672 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-06/0.4392, allocations: 7.219 kB / 486.3 MB, free: 5.668 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.92e-05/0.4392, allocations: 319.6 kB / 486.6 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.203e-05/0.4393, allocations: 22.75 kB / 486.6 MB, free: 5.336 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.298e-05/0.4394, allocations: 113.5 kB / 486.7 MB, free: 5.191 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.382e-05/0.4394, allocations: 42.92 kB / 486.8 MB, free: 5.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4395, allocations: 0 / 486.8 MB, free: 5.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002018/0.4397, allocations: 164.1 kB / 486.9 MB, free: 5.016 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.4397, allocations: 8 kB / 487 MB, free: 5.008 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.4397, allocations: 4 kB / 487 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.4397, allocations: 7.984 kB / 487 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.4399, allocations: 46.98 kB / 487 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.4399, allocations: 4 kB / 487 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.44, allocations: 31.55 kB / 487 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.4401, allocations: 8 kB / 487.1 MB, free: 4.914 MB / 346.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 () * 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 5.136e-05/0.4401, allocations: 119.6 kB / 487.2 MB, free: 4.797 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001218/0.4402, allocations: 85.2 kB / 487.3 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.062e-05/0.4403, allocations: 19.17 kB / 487.3 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.4403, allocations: 4 kB / 487.3 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.4403, allocations: 0 / 487.3 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.4403, allocations: 0 / 487.3 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001927/0.4405, allocations: 203.7 kB / 487.5 MB, free: 4.473 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.4405, allocations: 4 kB / 487.5 MB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001619/0.4407, allocations: 39.36 kB / 487.5 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.4407, allocations: 0 / 487.5 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.4407, allocations: 9.078 kB / 487.5 MB, free: 4.426 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.4407, allocations: 0 / 487.5 MB, free: 4.426 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4407, allocations: 0 / 487.5 MB, free: 4.426 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002527/0.441, allocations: 359 kB / 487.9 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.834e-05/0.441, allocations: 89.88 kB / 488 MB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.4411, allocations: 7.125 kB / 488 MB, free: 3.977 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.4412, allocations: 16.75 kB / 488 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.788e-05/0.4412, allocations: 7.125 kB / 488 MB, free: 3.961 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-06/0.4413, allocations: 6.688 kB / 488 MB, free: 3.957 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.932e-05/0.4413, allocations: 103.3 kB / 488.1 MB, free: 3.863 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4413, allocations: 0 / 488.1 MB, free: 3.863 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002896/0.4416, allocations: 31.22 kB / 488.1 MB, free: 3.836 MB / 346.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 () * 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.0004303/0.442, allocations: 1.035 MB / 489.2 MB, free: 2.812 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001452/0.4422, allocations: 90.38 kB / 489.3 MB, free: 2.742 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4422, allocations: 0 / 489.3 MB, free: 2.742 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.066e-05/0.4422, allocations: 16.14 kB / 489.3 MB, free: 2.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.4426, allocations: 47.33 kB / 489.3 MB, free: 2.695 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00069/0.4433, allocations: 347.9 kB / 489.7 MB, free: 2.359 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001303/0.4434, allocations: 0.7126 MB / 490.4 MB, free: 1.621 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.89e-05/0.4435, allocations: 12.77 kB / 490.4 MB, free: 1.605 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.212e-05/0.4435, allocations: 40.11 kB / 490.4 MB, free: 1.582 MB / 346.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4435, allocations: 1.219 kB / 490.4 MB, free: 1.582 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01539/0.4589, allocations: 2.361 MB / 492.8 MB, free: 15.48 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/0.4592, allocations: 202.2 kB / 493 MB, free: 15.25 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.495/1.954, allocations: 1.688 kB / 493 MB, free: 15.25 MB / 362.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