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.001157/0.001157, allocations: 196.8 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.329/1.329, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001107/0.001107, allocations: 97.3 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.213e-05/3.216e-05, allocations: 0 / 350.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 51.49 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3362/0.443, allocations: 79.62 MB / 481.7 MB, free: 9.758 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.4433, allocations: 65.94 kB / 481.8 MB, free: 9.727 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007223/0.4505, allocations: 2.828 MB / 484.6 MB, free: 7.387 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.4506, allocations: 0 / 484.6 MB, free: 7.387 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.303e-05/0.4506, allocations: 4 kB / 484.6 MB, free: 7.383 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.0004487/0.4511, allocations: 423.5 kB / 485 MB, free: 6.941 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.4511, allocations: 12.03 kB / 485.1 MB, free: 6.93 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.313e-05/0.4512, allocations: 49.61 kB / 485.1 MB, free: 6.883 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.299e-05/0.4512, allocations: 16.59 kB / 485.1 MB, free: 6.867 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001916/0.4514, allocations: 209.7 kB / 485.3 MB, free: 6.633 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.4514, allocations: 7.812 kB / 485.3 MB, free: 6.629 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.968e-05/0.4515, allocations: 18.98 kB / 485.4 MB, free: 6.617 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003695/0.4518, allocations: 233 kB / 485.6 MB, free: 6.418 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.4519, allocations: 4 kB / 485.6 MB, free: 6.414 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.4519, allocations: 4.766 kB / 485.6 MB, free: 6.414 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.4519, allocations: 8.938 kB / 485.6 MB, free: 6.406 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.452, allocations: 61.48 kB / 485.7 MB, free: 6.363 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005088/0.4525, allocations: 0.6046 MB / 486.3 MB, free: 5.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002406/0.4528, allocations: 126.8 kB / 486.4 MB, free: 5.602 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.743e-05/0.4529, allocations: 74.41 kB / 486.5 MB, free: 5.539 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.4529, allocations: 0 / 486.5 MB, free: 5.539 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.754e-05/0.4529, allocations: 42.52 kB / 486.5 MB, free: 5.488 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.122e-06/0.453, allocations: 0 / 486.5 MB, free: 5.488 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002431/0.4532, allocations: 119.6 kB / 486.6 MB, free: 5.387 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.4533, allocations: 114.4 kB / 486.7 MB, free: 5.254 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.4534, allocations: 145.5 kB / 486.9 MB, free: 5.121 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.103e-05/0.4534, allocations: 25.7 kB / 486.9 MB, free: 5.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.691e-05/0.4534, allocations: 123 kB / 487 MB, free: 4.977 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.4535, allocations: 23.7 kB / 487 MB, free: 4.957 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-06/0.4535, allocations: 3.625 kB / 487 MB, free: 4.957 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.699e-05/0.4535, allocations: 322.5 kB / 487.4 MB, free: 4.637 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.071e-05/0.4536, allocations: 23.62 kB / 487.4 MB, free: 4.617 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.515e-05/0.4536, allocations: 131.3 kB / 487.5 MB, free: 4.453 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.968e-05/0.4537, allocations: 38.8 kB / 487.5 MB, free: 4.426 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4537, allocations: 5.594 kB / 487.6 MB, free: 4.422 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001943/0.4539, allocations: 168.8 kB / 487.7 MB, free: 4.273 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.4539, allocations: 4 kB / 487.7 MB, free: 4.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.4539, allocations: 4 kB / 487.7 MB, free: 4.266 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.454, allocations: 11.95 kB / 487.7 MB, free: 4.254 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.4541, allocations: 53.19 kB / 487.8 MB, free: 4.203 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.4541, allocations: 4 kB / 487.8 MB, free: 4.199 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.4542, allocations: 23.02 kB / 487.8 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.4543, allocations: 11.5 kB / 487.8 MB, free: 4.172 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 5.297e-05/0.4543, allocations: 116.2 kB / 487.9 MB, free: 4.055 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.4545, allocations: 92.44 kB / 488 MB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.97e-05/0.4545, allocations: 23.2 kB / 488.1 MB, free: 3.961 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.4545, allocations: 11.95 kB / 488.1 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.4546, allocations: 0.6875 kB / 488.1 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.4546, allocations: 0 / 488.1 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002069/0.4548, allocations: 212.4 kB / 488.3 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4548, allocations: 0 / 488.3 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.455, allocations: 44.66 kB / 488.3 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.455, allocations: 0 / 488.3 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.455, allocations: 4 kB / 488.3 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.455, allocations: 3.938 kB / 488.3 MB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.455, allocations: 5.438 kB / 488.3 MB, free: 3.66 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002702/0.4553, allocations: 364.9 kB / 488.7 MB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.557e-05/0.4553, allocations: 104.6 kB / 488.8 MB, free: 3.199 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.4554, allocations: 11.52 kB / 488.8 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.4555, allocations: 15.67 kB / 488.8 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.441e-05/0.4556, allocations: 8.078 kB / 488.8 MB, free: 3.172 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.4556, allocations: 7.984 kB / 488.8 MB, free: 3.164 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.582e-05/0.4556, allocations: 118 kB / 488.9 MB, free: 3.059 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4556, allocations: 3.938 kB / 488.9 MB, free: 3.055 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002838/0.4559, allocations: 27.69 kB / 489 MB, free: 3.031 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.0004522/0.4564, allocations: 1.048 MB / 490 MB, free: 2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001488/0.4565, allocations: 98.72 kB / 490.1 MB, free: 1.922 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4566, allocations: 0 / 490.1 MB, free: 1.922 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.917e-05/0.4566, allocations: 15.5 kB / 490.1 MB, free: 1.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.457, allocations: 60.2 kB / 490.2 MB, free: 1.871 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000662/0.4576, allocations: 355.9 kB / 490.5 MB, free: 1.516 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001427/0.4578, allocations: 0.7319 MB / 491.3 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.779e-05/0.4578, allocations: 13.2 kB / 491.3 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.081e-05/0.4579, allocations: 38.72 kB / 491.3 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4579, allocations: 3.938 kB / 491.3 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01388/0.4718, allocations: 2.585 MB / 493.9 MB, free: 14.41 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/0.472, allocations: 192.8 kB / 494.1 MB, free: 14.19 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.547/2.019, allocations: 0 / 494.1 MB, free: 14.19 MB / 362.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