Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001005/0.001005, allocations: 197.7 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.616/1.616, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009514/0.0009515, allocations: 95.38 kB / 286.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.665e-05/2.663e-05, allocations: 4 kB / 343.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1021, allocations: 51.47 MB / 395.3 MB, free: 4.672 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3446/0.4468, allocations: 78.87 MB / 474.1 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/0.4471, allocations: 74.06 kB / 474.2 MB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007222/0.4543, allocations: 2.686 MB / 476.9 MB, free: 11.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4544, allocations: 1.969 kB / 476.9 MB, free: 11.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.4544, allocations: 8 kB / 476.9 MB, free: 11.41 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0004758/0.4549, allocations: 410.4 kB / 477.3 MB, free: 10.99 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.4549, allocations: 8.031 kB / 477.3 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.892e-05/0.455, allocations: 18.81 kB / 477.3 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/0.4552, allocations: 207.3 kB / 477.5 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.789e-06/0.4552, allocations: 4.859 kB / 477.5 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.797e-05/0.4552, allocations: 15.66 kB / 477.5 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001444/0.4554, allocations: 60.22 kB / 477.6 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003108/0.4557, allocations: 183.5 kB / 477.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.4557, allocations: 0 / 477.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.4558, allocations: 4 kB / 477.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.4558, allocations: 4 kB / 477.8 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006119/0.4564, allocations: 0.56 MB / 478.3 MB, free: 9.992 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002665/0.4567, allocations: 122.4 kB / 478.5 MB, free: 9.875 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.212e-05/0.4568, allocations: 62.14 kB / 478.5 MB, free: 9.824 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/0.4568, allocations: 9.531 kB / 478.5 MB, free: 9.816 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.768e-05/0.4568, allocations: 30.56 kB / 478.6 MB, free: 9.777 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.4568, allocations: 2.719 kB / 478.6 MB, free: 9.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002483/0.4571, allocations: 107.7 kB / 478.7 MB, free: 9.688 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/0.4572, allocations: 114.8 kB / 478.8 MB, free: 9.555 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.693e-05/0.4572, allocations: 124.7 kB / 478.9 MB, free: 9.438 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.4573, allocations: 27.39 kB / 478.9 MB, free: 9.406 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.196e-05/0.4573, allocations: 106.5 kB / 479 MB, free: 9.309 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/0.4573, allocations: 30.09 kB / 479.1 MB, free: 9.289 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.149e-06/0.4573, allocations: 0 / 479.1 MB, free: 9.289 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.972e-05/0.4574, allocations: 323.2 kB / 479.4 MB, free: 8.973 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.54e-05/0.4575, allocations: 19.62 kB / 479.4 MB, free: 8.957 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.384e-05/0.4575, allocations: 120 kB / 479.5 MB, free: 8.809 MB / 346.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0001866/0.4577, allocations: 134.9 kB / 479.7 MB, free: 8.676 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.4577, allocations: 0 / 479.7 MB, free: 8.676 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002071/0.4579, allocations: 146.6 kB / 479.8 MB, free: 8.555 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.458, allocations: 4.469 kB / 479.8 MB, free: 8.551 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.458, allocations: 4 kB / 479.8 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.458, allocations: 12 kB / 479.8 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.4582, allocations: 54.22 kB / 479.9 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.4582, allocations: 9.578 kB / 479.9 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.4583, allocations: 22.47 kB / 479.9 MB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.4583, allocations: 8 kB / 479.9 MB, free: 8.457 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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 () * 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 7.952e-05/0.4584, allocations: 116.8 kB / 480 MB, free: 8.34 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001743/0.4586, allocations: 102.6 kB / 480.1 MB, free: 8.258 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.274e-05/0.4587, allocations: 11.91 kB / 480.1 MB, free: 8.246 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.528e-05/0.4587, allocations: 22.98 kB / 480.2 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.4587, allocations: 0 / 480.2 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.4587, allocations: 9.625 kB / 480.2 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.4588, allocations: 3.125 kB / 480.2 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002018/0.459, allocations: 181.7 kB / 480.3 MB, free: 8.043 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.459, allocations: 0 / 480.3 MB, free: 8.043 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/0.4592, allocations: 52.97 kB / 480.4 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.4592, allocations: 0 / 480.4 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.4592, allocations: 4 kB / 480.4 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.4593, allocations: 1.359 kB / 480.4 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.4593, allocations: 3.953 kB / 480.4 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002906/0.4596, allocations: 347 kB / 480.7 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.336e-05/0.4596, allocations: 98.2 kB / 480.8 MB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.394e-05/0.4596, allocations: 7.812 kB / 480.9 MB, free: 7.555 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.4598, allocations: 6.438 kB / 480.9 MB, free: 7.551 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/0.4598, allocations: 10.56 kB / 480.9 MB, free: 7.543 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/0.4599, allocations: 4.141 kB / 480.9 MB, free: 7.539 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.65e-05/0.4599, allocations: 101.9 kB / 481 MB, free: 7.453 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4599, allocations: 4.062 kB / 481 MB, free: 7.449 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003263/0.4602, allocations: 21.41 kB / 481 MB, free: 7.43 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 (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.0004639/0.4607, allocations: 1.042 MB / 482 MB, free: 6.406 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001573/0.4609, allocations: 79.3 kB / 482.1 MB, free: 6.348 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4609, allocations: 0 / 482.1 MB, free: 6.348 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.983e-05/0.4609, allocations: 17.23 kB / 482.1 MB, free: 6.336 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.4613, allocations: 45.8 kB / 482.2 MB, free: 6.309 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008868/0.4622, allocations: 358.8 kB / 482.5 MB, free: 5.984 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001619/0.4624, allocations: 0.7234 MB / 483.3 MB, free: 5.25 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.114e-05/0.4624, allocations: 8.125 kB / 483.3 MB, free: 5.246 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.145e-05/0.4625, allocations: 43.38 kB / 483.3 MB, free: 5.227 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4625, allocations: 1.688 kB / 483.3 MB, free: 5.227 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02265/0.4852, allocations: 2.224 MB / 485.5 MB, free: 3.355 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001987/0.4854, allocations: 185 kB / 485.7 MB, free: 3.168 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.641/2.127, allocations: 0 / 485.7 MB, free: 3.168 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat does not exist to compare? outputFormat=mat