Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009932/0.0009932, allocations: 194.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008737/0.0008738, allocations: 97.72 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.486e-05/2.488e-05, allocations: 4 kB / 343.8 MB, free: 8.211 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1211, allocations: 51.47 MB / 395.3 MB, free: 4.695 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.38/0.5012, allocations: 78.95 MB / 474.2 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.5015, allocations: 74.41 kB / 474.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007977/0.5095, allocations: 2.798 MB / 477.1 MB, free: 11.01 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5095, allocations: 0 / 477.1 MB, free: 11.01 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.5095, allocations: 4 kB / 477.1 MB, free: 11 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005072/0.51, allocations: 424.8 kB / 477.5 MB, free: 10.58 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.5101, allocations: 12.03 kB / 477.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.355e-05/0.5101, allocations: 15.81 kB / 477.5 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002188/0.5104, allocations: 216.5 kB / 477.7 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.5104, allocations: 4 kB / 477.7 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.561e-05/0.5104, allocations: 8 kB / 477.7 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001667/0.5106, allocations: 65.5 kB / 477.8 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003532/0.511, allocations: 213.7 kB / 478 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.511, allocations: 1.969 kB / 478 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.511, allocations: 0 / 478 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.511, allocations: 5.594 kB / 478 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005815/0.5116, allocations: 0.5666 MB / 478.6 MB, free: 9.555 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002621/0.5119, allocations: 126.1 kB / 478.7 MB, free: 9.434 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.664e-05/0.512, allocations: 61.31 kB / 478.8 MB, free: 9.379 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.037e-05/0.512, allocations: 5.406 kB / 478.8 MB, free: 9.375 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.5121, allocations: 34.12 kB / 478.8 MB, free: 9.336 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.264e-06/0.5121, allocations: 3.984 kB / 478.8 MB, free: 9.332 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002708/0.5123, allocations: 118.7 kB / 478.9 MB, free: 9.234 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.5124, allocations: 110.8 kB / 479 MB, free: 9.102 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.5125, allocations: 134.2 kB / 479.2 MB, free: 8.984 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.5125, allocations: 29.22 kB / 479.2 MB, free: 8.953 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.198e-05/0.5126, allocations: 116.8 kB / 479.3 MB, free: 8.848 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.5126, allocations: 28.36 kB / 479.3 MB, free: 8.828 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.561e-06/0.5126, allocations: 0 / 479.3 MB, free: 8.828 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.852e-05/0.5127, allocations: 326.5 kB / 479.7 MB, free: 8.512 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.155e-05/0.5127, allocations: 18.5 kB / 479.7 MB, free: 8.496 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.147e-05/0.5128, allocations: 123.6 kB / 479.8 MB, free: 8.344 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.286e-05/0.5129, allocations: 35.31 kB / 479.8 MB, free: 8.324 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.5129, allocations: 8 kB / 479.8 MB, free: 8.316 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002104/0.5131, allocations: 138 kB / 480 MB, free: 8.199 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.5131, allocations: 11 kB / 480 MB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.5131, allocations: 4.469 kB / 480 MB, free: 8.188 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.5132, allocations: 4 kB / 480 MB, free: 8.184 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.5133, allocations: 53.92 kB / 480.1 MB, free: 8.141 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.5134, allocations: 13.36 kB / 480.1 MB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.5135, allocations: 18.42 kB / 480.1 MB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.5135, allocations: 8 kB / 480.1 MB, free: 8.105 MB / 346.7 MB 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.076e-05/0.5136, allocations: 115.7 kB / 480.2 MB, free: 7.988 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001741/0.5137, allocations: 115.5 kB / 480.3 MB, free: 7.895 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.482e-05/0.5138, allocations: 11.91 kB / 480.3 MB, free: 7.883 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.349e-05/0.5139, allocations: 17.56 kB / 480.3 MB, free: 7.879 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.5139, allocations: 3.953 kB / 480.3 MB, free: 7.875 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.5139, allocations: 4 kB / 480.4 MB, free: 7.871 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.5139, allocations: 1.547 kB / 480.4 MB, free: 7.871 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.5141, allocations: 182.2 kB / 480.5 MB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.5141, allocations: 1.875 kB / 480.5 MB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.5143, allocations: 37.09 kB / 480.6 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.5143, allocations: 8.031 kB / 480.6 MB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.5143, allocations: 1.406 kB / 480.6 MB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.5143, allocations: 4 kB / 480.6 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5144, allocations: 0 / 480.6 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003123/0.5147, allocations: 361.9 kB / 480.9 MB, free: 7.312 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.606e-05/0.5148, allocations: 103.1 kB / 481 MB, free: 7.203 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/0.5148, allocations: 7.141 kB / 481 MB, free: 7.199 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.5149, allocations: 15.09 kB / 481.1 MB, free: 7.188 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.647e-05/0.515, allocations: 1.594 kB / 481.1 MB, free: 7.188 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.515, allocations: 5.219 kB / 481.1 MB, free: 7.184 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.531e-05/0.5151, allocations: 119.3 kB / 481.2 MB, free: 7.086 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5151, allocations: 3.938 kB / 481.2 MB, free: 7.082 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000331/0.5154, allocations: 31.97 kB / 481.2 MB, free: 7.051 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.0004814/0.5159, allocations: 1.029 MB / 482.2 MB, free: 6.039 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001614/0.5161, allocations: 86.69 kB / 482.3 MB, free: 5.977 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5161, allocations: 0 / 482.3 MB, free: 5.977 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.089e-05/0.5161, allocations: 19 kB / 482.3 MB, free: 5.961 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.5165, allocations: 53.55 kB / 482.4 MB, free: 5.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000811/0.5173, allocations: 348.9 kB / 482.7 MB, free: 5.605 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.5175, allocations: 0.7332 MB / 483.5 MB, free: 4.863 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.363e-05/0.5176, allocations: 12.53 kB / 483.5 MB, free: 4.852 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.965e-05/0.5177, allocations: 39.89 kB / 483.5 MB, free: 4.84 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5177, allocations: 0 / 483.5 MB, free: 4.84 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02285/0.5405, allocations: 2.221 MB / 485.7 MB, free: 2.93 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/0.5408, allocations: 179.3 kB / 485.9 MB, free: 2.742 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.574/2.115, allocations: 0 / 485.9 MB, free: 2.742 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat