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.001183/0.001183, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 225.6 MB / 234.8 MB, free: 3.227 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001087/0.001087, allocations: 96.66 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.671e-05/1.672e-05, allocations: 0 / 343.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1124, allocations: 51.49 MB / 395.3 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3446/0.4571, allocations: 78.71 MB / 474 MB, free: 12.81 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000183/0.4573, allocations: 67.52 kB / 474 MB, free: 12.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005854/0.4632, allocations: 2.408 MB / 476.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4632, allocations: 0 / 476.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.4632, allocations: 0 / 476.4 MB, free: 11.37 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.0003812/0.4636, allocations: 403.2 kB / 476.8 MB, free: 10.96 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.4636, allocations: 8.031 kB / 476.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.479e-05/0.4637, allocations: 19.28 kB / 476.9 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.4638, allocations: 199.4 kB / 477.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-06/0.4639, allocations: 4.859 kB / 477.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.763e-05/0.4639, allocations: 11.31 kB / 477.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001288/0.464, allocations: 62.33 kB / 477.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002786/0.4643, allocations: 195.9 kB / 477.3 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.4643, allocations: 19.02 kB / 477.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.4644, allocations: 0 / 477.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.4644, allocations: 4 kB / 477.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004232/0.4648, allocations: 0.5505 MB / 477.9 MB, free: 9.957 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001504/0.465, allocations: 123.4 kB / 478 MB, free: 9.836 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.428e-05/0.465, allocations: 54.61 kB / 478.1 MB, free: 9.789 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.4651, allocations: 7.75 kB / 478.1 MB, free: 9.785 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.725e-05/0.4651, allocations: 36.09 kB / 478.1 MB, free: 9.742 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.284e-06/0.4651, allocations: 0 / 478.1 MB, free: 9.742 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002111/0.4653, allocations: 110 kB / 478.2 MB, free: 9.652 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.4654, allocations: 109.5 kB / 478.3 MB, free: 9.523 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.415e-05/0.4654, allocations: 114.2 kB / 478.4 MB, free: 9.418 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.215e-05/0.4655, allocations: 29.7 kB / 478.5 MB, free: 9.383 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.57e-05/0.4655, allocations: 111.6 kB / 478.6 MB, free: 9.281 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.4655, allocations: 26.48 kB / 478.6 MB, free: 9.262 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.16e-06/0.4655, allocations: 0 / 478.6 MB, free: 9.262 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.764e-05/0.4656, allocations: 328.8 kB / 478.9 MB, free: 8.941 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.744e-05/0.4657, allocations: 23.61 kB / 478.9 MB, free: 8.926 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.821e-05/0.4657, allocations: 105.9 kB / 479 MB, free: 8.793 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.802e-05/0.4658, allocations: 44.09 kB / 479.1 MB, free: 8.762 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-06/0.4658, allocations: 0 / 479.1 MB, free: 8.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000179/0.466, allocations: 134.7 kB / 479.2 MB, free: 8.648 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.466, allocations: 4 kB / 479.2 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.466, allocations: 8.391 kB / 479.2 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.466, allocations: 12 kB / 479.2 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.4662, allocations: 47.45 kB / 479.3 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.4662, allocations: 8 kB / 479.3 MB, free: 8.582 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.753e-05/0.4664, allocations: 17.77 kB / 479.3 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.4664, allocations: 9.859 kB / 479.3 MB, free: 8.559 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.81e-05/0.4664, allocations: 116.8 kB / 479.4 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001587/0.4666, allocations: 102.9 kB / 479.5 MB, free: 8.355 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.261e-05/0.4667, allocations: 11.86 kB / 479.6 MB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.241e-05/0.4667, allocations: 19.61 kB / 479.6 MB, free: 8.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.4667, allocations: 0 / 479.6 MB, free: 8.34 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.4667, allocations: 4 kB / 479.6 MB, free: 8.336 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.4667, allocations: 1.875 kB / 479.6 MB, free: 8.336 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001985/0.4669, allocations: 173.2 kB / 479.7 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.4669, allocations: 0 / 479.7 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.4671, allocations: 45.34 kB / 479.8 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.4671, allocations: 8.031 kB / 479.8 MB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.4672, allocations: 5.734 kB / 479.8 MB, free: 8.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.4672, allocations: 0 / 479.8 MB, free: 8.105 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.4672, allocations: 4 kB / 479.8 MB, free: 8.102 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002591/0.4674, allocations: 345.3 kB / 480.1 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.694e-05/0.4675, allocations: 90.16 kB / 480.2 MB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.4675, allocations: 7.438 kB / 480.2 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.4676, allocations: 6.953 kB / 480.2 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.794e-05/0.4677, allocations: 5.453 kB / 480.3 MB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.4677, allocations: 5.125 kB / 480.3 MB, free: 7.66 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.804e-05/0.4677, allocations: 98.41 kB / 480.4 MB, free: 7.574 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4677, allocations: 0 / 480.4 MB, free: 7.574 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002975/0.4681, allocations: 29.84 kB / 480.4 MB, free: 7.547 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.0003856/0.4684, allocations: 1.013 MB / 481.4 MB, free: 6.547 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001275/0.4686, allocations: 80.33 kB / 481.5 MB, free: 6.488 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.4686, allocations: 0 / 481.5 MB, free: 6.488 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.674e-05/0.4686, allocations: 19.88 kB / 481.5 MB, free: 6.473 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003481/0.469, allocations: 39.67 kB / 481.5 MB, free: 6.449 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006477/0.4696, allocations: 331 kB / 481.9 MB, free: 6.133 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001297/0.4698, allocations: 0.7174 MB / 482.6 MB, free: 5.402 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.417e-05/0.4698, allocations: 8.016 kB / 482.6 MB, free: 5.398 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.019e-05/0.4699, allocations: 39.03 kB / 482.6 MB, free: 5.383 MB / 346.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4699, allocations: 0 / 482.6 MB, free: 5.383 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01867/0.4886, allocations: 2.013 MB / 484.6 MB, free: 3.887 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001725/0.4888, allocations: 179 kB / 484.8 MB, free: 3.699 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.594/2.083, allocations: 3.938 kB / 484.8 MB, free: 3.695 MB / 346.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