Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",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.0009521/0.0009521, allocations: 176.4 kB / 8.346 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.306/1.306, allocations: 221.5 MB / 230.3 MB, free: 7.582 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.0009663/0.0009663, allocations: 97.8 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.741e-05/1.754e-05, allocations: 4 kB / 337.1 MB, free: 9.953 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09282/0.09285, allocations: 50.42 MB / 387.5 MB, free: 7.492 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.312/0.4049, allocations: 77.89 MB / 465.4 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/0.4052, allocations: 75.95 kB / 465.5 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006865/0.4121, allocations: 2.34 MB / 467.8 MB, free: 14.54 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.4121, allocations: 0 / 467.8 MB, free: 14.54 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.4121, allocations: 11.98 kB / 467.9 MB, free: 14.53 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.000492/0.4126, allocations: 395 kB / 468.2 MB, free: 14.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.4127, allocations: 8.031 kB / 468.3 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.412e-05/0.4127, allocations: 15.86 kB / 468.3 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002245/0.413, allocations: 203 kB / 468.5 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.413, allocations: 4 kB / 468.5 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.082e-05/0.413, allocations: 12 kB / 468.5 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001643/0.4132, allocations: 59.98 kB / 468.5 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003547/0.4135, allocations: 196.8 kB / 468.7 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.4136, allocations: 11.86 kB / 468.7 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.4136, allocations: 0 / 468.7 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.4136, allocations: 4 kB / 468.7 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005798/0.4142, allocations: 0.5575 MB / 469.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001927/0.4144, allocations: 124.1 kB / 469.4 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.639e-05/0.4145, allocations: 62.52 kB / 469.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.4145, allocations: 4 kB / 469.5 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.4146, allocations: 30.56 kB / 469.5 MB, free: 12.65 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.443e-06/0.4146, allocations: 0 / 469.5 MB, free: 12.65 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002493/0.4148, allocations: 110.3 kB / 469.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.832e-05/0.4149, allocations: 106.8 kB / 469.7 MB, free: 12.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.574e-05/0.415, allocations: 118.4 kB / 469.9 MB, free: 12.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/0.415, allocations: 25.8 kB / 469.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.014e-05/0.4151, allocations: 115.9 kB / 470 MB, free: 12.14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.587e-05/0.4151, allocations: 31.64 kB / 470 MB, free: 12.11 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-06/0.4151, allocations: 0 / 470 MB, free: 12.11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.4153, allocations: 326.8 kB / 470.3 MB, free: 11.78 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.926e-05/0.4153, allocations: 20 kB / 470.4 MB, free: 11.76 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.644e-05/0.4154, allocations: 110.4 kB / 470.5 MB, free: 11.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.28e-05/0.4155, allocations: 41.23 kB / 470.5 MB, free: 11.57 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.4155, allocations: 0 / 470.5 MB, free: 11.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002123/0.4157, allocations: 141.3 kB / 470.6 MB, free: 11.42 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.4157, allocations: 9.094 kB / 470.7 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.4158, allocations: 4 kB / 470.7 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.4158, allocations: 4 kB / 470.7 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.416, allocations: 48.36 kB / 470.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.416, allocations: 15.97 kB / 470.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.4161, allocations: 19.78 kB / 470.7 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.769e-05/0.4161, allocations: 15.95 kB / 470.8 MB, free: 11.31 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.795e-05/0.4162, allocations: 105 kB / 470.9 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000177/0.4164, allocations: 105.5 kB / 471 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.613e-05/0.4164, allocations: 7.906 kB / 471 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.941e-05/0.4165, allocations: 16.61 kB / 471 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.4165, allocations: 8.031 kB / 471 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.4165, allocations: 3.953 kB / 471 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.4165, allocations: 0 / 471 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002263/0.4167, allocations: 174 kB / 471.2 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.4168, allocations: 0 / 471.2 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.4169, allocations: 39.97 kB / 471.2 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.398e-05/0.417, allocations: 4 kB / 471.2 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.417, allocations: 0 / 471.2 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.417, allocations: 7.875 kB / 471.2 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.417, allocations: 4 kB / 471.2 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003452/0.4174, allocations: 347 kB / 471.6 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.972e-05/0.4174, allocations: 85 kB / 471.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.4174, allocations: 4 kB / 471.7 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.4176, allocations: 12.02 kB / 471.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.193e-05/0.4176, allocations: 8.078 kB / 471.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.4176, allocations: 7.938 kB / 471.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.286e-05/0.4177, allocations: 101.9 kB / 471.8 MB, free: 10.19 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.744e-06/0.4177, allocations: 0 / 471.8 MB, free: 10.19 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003087/0.418, allocations: 31.78 kB / 471.8 MB, free: 10.16 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 (14): * Single equations (assignments): 14 * 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.0006447/0.4187, allocations: 1.017 MB / 472.8 MB, free: 9.109 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001622/0.4188, allocations: 80.47 kB / 472.9 MB, free: 9.031 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.4189, allocations: 4.312 kB / 472.9 MB, free: 9.027 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.024e-05/0.4189, allocations: 12 kB / 472.9 MB, free: 9.016 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003393/0.4192, allocations: 46.39 kB / 473 MB, free: 8.973 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007194/0.42, allocations: 320.7 kB / 473.3 MB, free: 8.613 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.4202, allocations: 0.7162 MB / 474 MB, free: 7.871 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.66e-05/0.4203, allocations: 16.72 kB / 474 MB, free: 7.855 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.649e-05/0.4203, allocations: 35.42 kB / 474 MB, free: 7.82 MB / 346.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4203, allocations: 0 / 474 MB, free: 7.82 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0191/0.4395, allocations: 2.012 MB / 476.1 MB, free: 5.844 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/0.4397, allocations: 193.4 kB / 476.2 MB, free: 5.645 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.587/2.026, allocations: 0 / 476.2 MB, free: 5.645 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat does not exist to compare? outputFormat=mat