Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",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.001131/0.001131, 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.617/1.617, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0008025/0.0008027, allocations: 87.52 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.997e-05/1.998e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1048, allocations: 50.41 MB / 387.5 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3116/0.4165, allocations: 78.15 MB / 465.7 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/0.4168, allocations: 75.95 kB / 465.8 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007827/0.4246, allocations: 2.728 MB / 468.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4247, allocations: 192 / 468.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.4247, allocations: 7.938 kB / 468.5 MB, free: 13.85 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.0004554/0.4252, allocations: 422.9 kB / 468.9 MB, free: 13.39 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.4252, allocations: 12.03 kB / 468.9 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.155e-05/0.4253, allocations: 15.81 kB / 468.9 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002121/0.4255, allocations: 225.1 kB / 469.2 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-06/0.4255, allocations: 4 kB / 469.2 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.058e-05/0.4255, allocations: 11.91 kB / 469.2 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001547/0.4257, allocations: 67.98 kB / 469.2 MB, free: 13.03 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003447/0.4261, allocations: 211.3 kB / 469.4 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.4261, allocations: 0 / 469.4 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.4261, allocations: 4 kB / 469.4 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.4261, allocations: 0 / 469.4 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005647/0.4267, allocations: 0.5692 MB / 470 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002429/0.4269, allocations: 128.5 kB / 470.1 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.793e-05/0.427, allocations: 50.58 kB / 470.2 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.4271, allocations: 12.06 kB / 470.2 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.4271, allocations: 34.56 kB / 470.2 MB, free: 11.89 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.4271, allocations: 0 / 470.2 MB, free: 11.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002488/0.4273, allocations: 109.4 kB / 470.3 MB, free: 11.78 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.4274, allocations: 115.7 kB / 470.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.4275, allocations: 141.3 kB / 470.6 MB, free: 11.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.4276, allocations: 25.7 kB / 470.6 MB, free: 11.47 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.054e-05/0.4276, allocations: 112.4 kB / 470.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.097e-05/0.4276, allocations: 27.64 kB / 470.8 MB, free: 11.33 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/0.4277, allocations: 0 / 470.8 MB, free: 11.33 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.746e-05/0.4278, allocations: 330.8 kB / 471.1 MB, free: 11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.038e-05/0.4278, allocations: 24.31 kB / 471.1 MB, free: 10.97 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.368e-05/0.4279, allocations: 118.6 kB / 471.2 MB, free: 10.81 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.281e-05/0.428, allocations: 43.92 kB / 471.3 MB, free: 10.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.428, allocations: 96 / 471.3 MB, free: 10.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002105/0.4282, allocations: 145.2 kB / 471.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.4282, allocations: 5.719 kB / 471.4 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.4282, allocations: 7.938 kB / 471.4 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.4283, allocations: 8 kB / 471.4 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.4284, allocations: 47.97 kB / 471.5 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.4284, allocations: 11.92 kB / 471.5 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.4286, allocations: 19.83 kB / 471.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.4286, allocations: 16 kB / 471.5 MB, free: 10.5 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.255e-05/0.4287, allocations: 108.9 kB / 471.6 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001802/0.4288, allocations: 117.5 kB / 471.7 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.682e-05/0.4289, allocations: 11.91 kB / 471.8 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.729e-05/0.429, allocations: 20.61 kB / 471.8 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.429, allocations: 4 kB / 471.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.429, allocations: 0 / 471.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.429, allocations: 0 / 471.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002249/0.4292, allocations: 190 kB / 472 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4292, allocations: 0 / 472 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002192/0.4295, allocations: 39.92 kB / 472 MB, free: 9.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.4295, allocations: 4.031 kB / 472 MB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.4295, allocations: 3.984 kB / 472 MB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.4295, allocations: 4 kB / 472 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.4295, allocations: 0 / 472 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003214/0.4298, allocations: 358.8 kB / 472.4 MB, free: 9.578 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.391e-05/0.4299, allocations: 101 kB / 472.5 MB, free: 9.461 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.473e-05/0.43, allocations: 8 kB / 472.5 MB, free: 9.453 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.4301, allocations: 4 kB / 472.5 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.84e-05/0.4302, allocations: 11.98 kB / 472.5 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.4302, allocations: 7.953 kB / 472.5 MB, free: 9.43 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.886e-05/0.4302, allocations: 111.3 kB / 472.6 MB, free: 9.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4303, allocations: 0 / 472.6 MB, free: 9.32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003333/0.4306, allocations: 31.91 kB / 472.6 MB, free: 9.289 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.0005833/0.4312, allocations: 1.035 MB / 473.7 MB, free: 8.219 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001593/0.4314, allocations: 83.94 kB / 473.8 MB, free: 8.137 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.4314, allocations: 3.938 kB / 473.8 MB, free: 8.133 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.136e-05/0.4314, allocations: 15.94 kB / 473.8 MB, free: 8.117 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003615/0.4318, allocations: 51.91 kB / 473.8 MB, free: 8.066 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000755/0.4325, allocations: 358.1 kB / 474.2 MB, free: 7.672 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.4328, allocations: 0.7242 MB / 474.9 MB, free: 6.922 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.058e-05/0.4329, allocations: 13.2 kB / 474.9 MB, free: 6.91 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.493e-05/0.4329, allocations: 39.42 kB / 474.9 MB, free: 6.871 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4329, allocations: 0 / 474.9 MB, free: 6.871 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0192/0.4521, allocations: 2.224 MB / 477.2 MB, free: 4.691 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000184/0.4524, allocations: 180.6 kB / 477.3 MB, free: 4.5 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.565/2.017, allocations: 0 / 477.3 MB, free: 4.5 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat