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.001113/0.001113, allocations: 196.6 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.311/1.311, 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.0008535/0.0008536, allocations: 90.09 kB / 292.1 MB, free: 5.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.057e-05/3.06e-05, allocations: 4 kB / 350.6 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1056, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3531/0.4588, allocations: 79.54 MB / 481.7 MB, free: 9.926 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002053/0.459, allocations: 70.17 kB / 481.7 MB, free: 9.891 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006989/0.466, allocations: 2.707 MB / 484.4 MB, free: 7.633 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.4661, allocations: 3.938 kB / 484.4 MB, free: 7.629 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.4661, allocations: 4 kB / 484.4 MB, free: 7.625 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.0004767/0.4666, allocations: 411.7 kB / 484.8 MB, free: 7.195 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.4666, allocations: 8.031 kB / 484.8 MB, free: 7.188 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.717e-05/0.4667, allocations: 45.73 kB / 484.9 MB, free: 7.141 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.443e-05/0.4667, allocations: 16.59 kB / 484.9 MB, free: 7.125 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002019/0.4669, allocations: 202.9 kB / 485.1 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.317e-06/0.467, allocations: 11.62 kB / 485.1 MB, free: 6.887 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.791e-05/0.467, allocations: 16.41 kB / 485.1 MB, free: 6.875 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003799/0.4674, allocations: 209.3 kB / 485.3 MB, free: 6.695 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.4674, allocations: 4 kB / 485.3 MB, free: 6.691 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.4675, allocations: 7.438 kB / 485.4 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.4675, allocations: 0 / 485.4 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000115/0.4676, allocations: 58.23 kB / 485.4 MB, free: 6.645 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005872/0.4682, allocations: 0.6056 MB / 486 MB, free: 6.016 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002505/0.4684, allocations: 140.3 kB / 486.2 MB, free: 5.875 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.991e-05/0.4685, allocations: 63.28 kB / 486.2 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.4686, allocations: 0 / 486.2 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.4686, allocations: 39 kB / 486.2 MB, free: 5.773 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.102e-06/0.4686, allocations: 0.6562 kB / 486.3 MB, free: 5.773 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002845/0.4689, allocations: 119.3 kB / 486.4 MB, free: 5.672 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/0.469, allocations: 114 kB / 486.5 MB, free: 5.539 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.428e-05/0.4691, allocations: 121.9 kB / 486.6 MB, free: 5.422 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.4691, allocations: 33.02 kB / 486.6 MB, free: 5.387 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.925e-05/0.4691, allocations: 107.3 kB / 486.7 MB, free: 5.285 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.4691, allocations: 30.89 kB / 486.8 MB, free: 5.262 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.011e-06/0.4692, allocations: 0 / 486.8 MB, free: 5.262 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.439e-05/0.4692, allocations: 330 kB / 487.1 MB, free: 4.938 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.675e-05/0.4693, allocations: 23.75 kB / 487.1 MB, free: 4.918 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.098e-05/0.4694, allocations: 126.1 kB / 487.2 MB, free: 4.762 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.000204/0.4696, allocations: 138.1 kB / 487.4 MB, free: 4.621 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.4696, allocations: 4 kB / 487.4 MB, free: 4.617 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002208/0.4698, allocations: 169.1 kB / 487.5 MB, free: 4.469 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.4698, allocations: 7.953 kB / 487.5 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.4698, allocations: 4 kB / 487.5 MB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.4699, allocations: 8 kB / 487.6 MB, free: 4.449 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.47, allocations: 53.84 kB / 487.6 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.47, allocations: 7.938 kB / 487.6 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.4702, allocations: 28.11 kB / 487.6 MB, free: 4.367 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.4702, allocations: 11.69 kB / 487.7 MB, free: 4.359 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 6.754e-05/0.4702, allocations: 112.5 kB / 487.8 MB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.4704, allocations: 84.5 kB / 487.8 MB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.262e-05/0.4704, allocations: 22.89 kB / 487.9 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.4704, allocations: 3.984 kB / 487.9 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4705, allocations: 0 / 487.9 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.4705, allocations: 4 kB / 487.9 MB, free: 4.156 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000212/0.4707, allocations: 205.7 kB / 488.1 MB, free: 3.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4707, allocations: 7.938 kB / 488.1 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001979/0.4709, allocations: 49.91 kB / 488.1 MB, free: 3.871 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.4709, allocations: 0 / 488.1 MB, free: 3.871 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.4709, allocations: 4 kB / 488.1 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.4709, allocations: 3.953 kB / 488.1 MB, free: 3.863 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4709, allocations: 3.984 kB / 488.1 MB, free: 3.859 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002872/0.4712, allocations: 367.2 kB / 488.5 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.749e-05/0.4713, allocations: 92.56 kB / 488.6 MB, free: 3.41 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.328e-05/0.4713, allocations: 7.984 kB / 488.6 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.4715, allocations: 11.5 kB / 488.6 MB, free: 3.395 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.385e-05/0.4715, allocations: 3.984 kB / 488.6 MB, free: 3.391 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-06/0.4715, allocations: 8.062 kB / 488.6 MB, free: 3.383 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.834e-05/0.4716, allocations: 102.5 kB / 488.7 MB, free: 3.289 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4716, allocations: 0 / 488.7 MB, free: 3.289 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003131/0.4719, allocations: 35.16 kB / 488.8 MB, free: 3.262 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.0005224/0.4724, allocations: 1.042 MB / 489.8 MB, free: 2.227 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001771/0.4726, allocations: 99.05 kB / 489.9 MB, free: 2.148 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.4726, allocations: 0.9375 kB / 489.9 MB, free: 2.148 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.45e-05/0.4727, allocations: 23.55 kB / 489.9 MB, free: 2.129 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003644/0.473, allocations: 54.77 kB / 490 MB, free: 2.09 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008215/0.4739, allocations: 366.4 kB / 490.3 MB, free: 1.73 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001405/0.474, allocations: 0.7257 MB / 491.1 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.165e-05/0.4741, allocations: 14.95 kB / 491.1 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.508e-05/0.4742, allocations: 37.73 kB / 491.1 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4742, allocations: 0 / 491.1 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01434/0.4885, allocations: 2.59 MB / 493.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000248/0.4888, allocations: 194.8 kB / 493.9 MB, free: 14.4 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.49/1.979, allocations: 3.438 kB / 493.9 MB, free: 14.4 MB / 362.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