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.001077/0.001077, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 221.4 MB / 235.5 MB, free: 2.949 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.0007802/0.0007802, allocations: 91.86 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.59e-05/2.599e-05, allocations: 4 kB / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1011, allocations: 50.42 MB / 394.3 MB, free: 1.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2945/0.3957, allocations: 78.56 MB / 472.9 MB, free: 8.941 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.396, allocations: 71.95 kB / 473 MB, free: 8.871 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006489/0.4025, allocations: 2.36 MB / 475.3 MB, free: 6.523 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4025, allocations: 0 / 475.3 MB, free: 6.523 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.4026, allocations: 4 kB / 475.3 MB, free: 6.52 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.0004714/0.403, allocations: 399 kB / 475.7 MB, free: 6.086 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.4031, allocations: 8.031 kB / 475.7 MB, free: 6.078 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.007e-05/0.4031, allocations: 54.5 kB / 475.8 MB, free: 6.016 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.569e-05/0.4032, allocations: 11.91 kB / 475.8 MB, free: 6.004 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.4034, allocations: 203 kB / 476 MB, free: 5.766 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.4034, allocations: 12 kB / 476 MB, free: 5.754 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.907e-05/0.4035, allocations: 12 kB / 476 MB, free: 5.742 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004073/0.4039, allocations: 219.2 kB / 476.2 MB, free: 5.504 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.4039, allocations: 3.906 kB / 476.2 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.4039, allocations: 7.953 kB / 476.2 MB, free: 5.492 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.4039, allocations: 4 kB / 476.2 MB, free: 5.488 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.4041, allocations: 63.92 kB / 476.3 MB, free: 5.426 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006036/0.4047, allocations: 0.5843 MB / 476.9 MB, free: 4.766 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001891/0.4049, allocations: 136.1 kB / 477 MB, free: 4.605 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.405, allocations: 78.67 kB / 477.1 MB, free: 4.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.405, allocations: 0 / 477.1 MB, free: 4.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.4051, allocations: 38.5 kB / 477.1 MB, free: 4.473 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.183e-06/0.4051, allocations: 4 kB / 477.1 MB, free: 4.469 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002513/0.4053, allocations: 109.5 kB / 477.2 MB, free: 4.355 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.771e-05/0.4054, allocations: 110.8 kB / 477.4 MB, free: 4.223 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.394e-05/0.4055, allocations: 118.8 kB / 477.5 MB, free: 4.098 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.4055, allocations: 25.7 kB / 477.5 MB, free: 4.066 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.991e-05/0.4056, allocations: 111.9 kB / 477.6 MB, free: 3.953 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.537e-05/0.4056, allocations: 27.64 kB / 477.6 MB, free: 3.926 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.795e-06/0.4057, allocations: 11.94 kB / 477.6 MB, free: 3.914 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.4058, allocations: 326.9 kB / 478 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.392e-05/0.4058, allocations: 27.94 kB / 478 MB, free: 3.559 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.895e-05/0.4059, allocations: 116.2 kB / 478.1 MB, free: 3.402 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.706e-05/0.406, allocations: 39.92 kB / 478.1 MB, free: 3.363 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.406, allocations: 0 / 478.1 MB, free: 3.363 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003054/0.4063, allocations: 165.5 kB / 478.3 MB, free: 3.195 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.4064, allocations: 8 kB / 478.3 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.4064, allocations: 4 kB / 478.3 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.4064, allocations: 4 kB / 478.3 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000189/0.4066, allocations: 47.88 kB / 478.4 MB, free: 3.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.05e-05/0.4066, allocations: 7.984 kB / 478.4 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.4068, allocations: 24.03 kB / 478.4 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.4068, allocations: 12 kB / 478.4 MB, free: 3.09 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 6.953e-05/0.4069, allocations: 116.9 kB / 478.5 MB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.407, allocations: 81.53 kB / 478.6 MB, free: 2.883 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.19e-05/0.407, allocations: 16.61 kB / 478.6 MB, free: 2.867 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.4071, allocations: 4 kB / 478.6 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.4071, allocations: 3.953 kB / 478.6 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.4071, allocations: 0 / 478.6 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002499/0.4073, allocations: 205.5 kB / 478.8 MB, free: 2.609 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.4073, allocations: 4 kB / 478.8 MB, free: 2.605 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000225/0.4076, allocations: 35.98 kB / 478.9 MB, free: 2.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4076, allocations: 0 / 478.9 MB, free: 2.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.4076, allocations: 4 kB / 478.9 MB, free: 2.566 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.907e-06/0.4076, allocations: 11.92 kB / 478.9 MB, free: 2.555 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4076, allocations: 3.938 kB / 478.9 MB, free: 2.551 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003569/0.408, allocations: 355 kB / 479.2 MB, free: 2.172 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.953e-05/0.4081, allocations: 88.98 kB / 479.3 MB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.219e-05/0.4081, allocations: 7.953 kB / 479.3 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.4082, allocations: 11.98 kB / 479.3 MB, free: 2.047 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.053e-05/0.4083, allocations: 8 kB / 479.3 MB, free: 2.039 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.4083, allocations: 4 kB / 479.3 MB, free: 2.035 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.689e-05/0.4084, allocations: 110.6 kB / 479.5 MB, free: 1.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4084, allocations: 0 / 479.5 MB, free: 1.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002968/0.4087, allocations: 27.91 kB / 479.5 MB, free: 1.902 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.0006471/0.4093, allocations: 1.037 MB / 480.5 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000184/0.4095, allocations: 91.78 kB / 480.6 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4095, allocations: 0 / 480.6 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.41e-05/0.4096, allocations: 16.81 kB / 480.6 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003472/0.4099, allocations: 50.11 kB / 480.7 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007928/0.4107, allocations: 341.5 kB / 481 MB, free: 316 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004096/0.4112, allocations: 0.7126 MB / 481.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.661e-05/0.4112, allocations: 12.77 kB / 481.7 MB, free: 15.55 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.053e-05/0.4113, allocations: 31.42 kB / 481.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4113, allocations: 4 kB / 481.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01412/0.4254, allocations: 2.371 MB / 484.1 MB, free: 13.34 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002004/0.4257, allocations: 188.6 kB / 484.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.524/1.949, allocations: 0 / 484.3 MB, free: 13.12 MB / 362.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