Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 221.5 MB / 230.3 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008173/0.0008174, allocations: 88.88 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.208e-05/1.21e-05, allocations: 0 / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09317/0.0932, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3006/0.3938, allocations: 77.93 MB / 465.5 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.3941, allocations: 69.09 kB / 465.5 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006433/0.4005, allocations: 2.355 MB / 467.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4006, allocations: 0 / 467.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.4006, allocations: 8.188 kB / 467.9 MB, free: 14.45 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005042/0.4011, allocations: 422.8 kB / 468.3 MB, free: 13.99 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.4012, allocations: 8.031 kB / 468.3 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.871e-05/0.4012, allocations: 11.91 kB / 468.3 MB, free: 13.97 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.4014, allocations: 198.8 kB / 468.5 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.4015, allocations: 7.938 kB / 468.5 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.735e-05/0.4015, allocations: 19.98 kB / 468.6 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001473/0.4017, allocations: 63.98 kB / 468.6 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003303/0.402, allocations: 202 kB / 468.8 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.402, allocations: 11.91 kB / 468.8 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.402, allocations: 0 / 468.8 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.402, allocations: 0 / 468.8 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005315/0.4026, allocations: 0.5575 MB / 469.4 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002318/0.4028, allocations: 123.7 kB / 469.5 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.469e-05/0.4029, allocations: 66.83 kB / 469.6 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.403, allocations: 7.938 kB / 469.6 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.102e-05/0.403, allocations: 42.5 kB / 469.6 MB, free: 12.51 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.403, allocations: 0 / 469.6 MB, free: 12.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002344/0.4032, allocations: 101.5 kB / 469.7 MB, free: 12.41 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.572e-05/0.4033, allocations: 106.8 kB / 469.8 MB, free: 12.28 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.837e-05/0.4034, allocations: 118.2 kB / 469.9 MB, free: 12.15 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.4034, allocations: 29.73 kB / 470 MB, free: 12.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.216e-05/0.4035, allocations: 111.9 kB / 470.1 MB, free: 12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.4035, allocations: 27.64 kB / 470.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.581e-06/0.4036, allocations: 0 / 470.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.941e-05/0.4037, allocations: 330.8 kB / 470.4 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.161e-05/0.4037, allocations: 16.38 kB / 470.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.558e-05/0.4038, allocations: 122.3 kB / 470.6 MB, free: 11.46 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.76e-05/0.4039, allocations: 41.23 kB / 470.6 MB, free: 11.42 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4039, allocations: 0 / 470.6 MB, free: 11.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002106/0.4041, allocations: 137.3 kB / 470.7 MB, free: 11.28 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.4041, allocations: 11.98 kB / 470.8 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.4042, allocations: 4.75 kB / 470.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.4042, allocations: 4 kB / 470.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.4043, allocations: 48.39 kB / 470.8 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.4044, allocations: 11.92 kB / 470.8 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.4045, allocations: 19.84 kB / 470.8 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.4045, allocations: 16 kB / 470.9 MB, free: 11.16 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 7.29e-05/0.4046, allocations: 112.9 kB / 471 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001843/0.4048, allocations: 113.5 kB / 471.1 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.685e-05/0.4048, allocations: 11.95 kB / 471.1 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.845e-05/0.4049, allocations: 24.59 kB / 471.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.4049, allocations: 8.031 kB / 471.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.4049, allocations: 0 / 471.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.4049, allocations: 0 / 471.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002177/0.4052, allocations: 174.1 kB / 471.3 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4052, allocations: 0 / 471.3 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.4054, allocations: 39.92 kB / 471.3 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.4054, allocations: 0 / 471.3 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.4054, allocations: 0 / 471.3 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.4054, allocations: 4 kB / 471.3 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.4054, allocations: 0 / 471.3 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003169/0.4057, allocations: 369.4 kB / 471.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.036e-05/0.4058, allocations: 85.05 kB / 471.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.4058, allocations: 0 / 471.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.406, allocations: 16.05 kB / 471.8 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.16e-05/0.406, allocations: 11.89 kB / 471.8 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.406, allocations: 0 / 471.8 MB, free: 10.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.892e-05/0.4061, allocations: 103.2 kB / 471.9 MB, free: 10.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4061, allocations: 0 / 471.9 MB, free: 10.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003173/0.4064, allocations: 24 kB / 471.9 MB, free: 9.992 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.000633/0.4071, allocations: 1.031 MB / 473 MB, free: 8.926 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001636/0.4072, allocations: 80.66 kB / 473 MB, free: 8.848 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.4072, allocations: 4 kB / 473 MB, free: 8.844 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.284e-05/0.4073, allocations: 20.12 kB / 473.1 MB, free: 8.824 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.4077, allocations: 40.39 kB / 473.1 MB, free: 8.785 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008404/0.4085, allocations: 328.5 kB / 473.4 MB, free: 8.418 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.4089, allocations: 0.7164 MB / 474.1 MB, free: 7.676 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.45e-05/0.409, allocations: 13.22 kB / 474.2 MB, free: 7.664 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.912e-05/0.4091, allocations: 39.36 kB / 474.2 MB, free: 7.625 MB / 346.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4091, allocations: 0 / 474.2 MB, free: 7.625 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02111/0.4302, allocations: 2.049 MB / 476.2 MB, free: 5.586 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001982/0.4304, allocations: 179.7 kB / 476.4 MB, free: 5.391 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.583/2.013, allocations: 0 / 476.4 MB, free: 5.391 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat