Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",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.00171/0.00171, allocations: 174.7 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.396/1.396, allocations: 221.3 MB / 235.5 MB, free: 2.922 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.0008704/0.0008707, allocations: 92.05 kB / 286.5 MB, free: 200 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.268e-05/3.278e-05, allocations: 7.984 kB / 343.9 MB, free: 4.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1003, allocations: 50.41 MB / 394.3 MB, free: 1.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3447/0.445, allocations: 80.95 MB / 475.3 MB, free: 6.562 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.4454, allocations: 77.77 kB / 475.4 MB, free: 6.488 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02091/0.4663, allocations: 7.294 MB / 482.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4664, allocations: 3.938 kB / 482.7 MB, free: 15.19 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.695e-05/0.4664, allocations: 4 kB / 482.7 MB, free: 15.19 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001057/0.4674, allocations: 0.6121 MB / 483.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.4675, allocations: 12.03 kB / 483.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.044e-05/0.4676, allocations: 70.53 kB / 483.4 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.799e-05/0.4677, allocations: 47.53 kB / 483.4 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004003/0.4681, allocations: 286 kB / 483.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/0.4683, allocations: 149.8 kB / 483.8 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.868e-05/0.4684, allocations: 28 kB / 483.9 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008895/0.4693, allocations: 0.5091 MB / 484.4 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.4693, allocations: 7.891 kB / 484.4 MB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.451e-05/0.4694, allocations: 8 kB / 484.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.4694, allocations: 8 kB / 484.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006533/0.47, allocations: 415.7 kB / 484.8 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001513/0.4716, allocations: 1.042 MB / 485.8 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009183/0.4725, allocations: 422.8 kB / 486.3 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002987/0.4728, allocations: 199.8 kB / 486.4 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.102e-05/0.4729, allocations: 27.78 kB / 486.5 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.4729, allocations: 42.5 kB / 486.5 MB, free: 11.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.164e-06/0.4729, allocations: 0 / 486.5 MB, free: 11.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.007475/0.4804, allocations: 2.121 MB / 488.6 MB, free: 8.926 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.721e-05/0.4805, allocations: 145 kB / 488.8 MB, free: 8.754 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002707/0.4808, allocations: 230.9 kB / 489 MB, free: 8.523 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.641e-05/0.4809, allocations: 45.64 kB / 489 MB, free: 8.473 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.184e-05/0.481, allocations: 141.5 kB / 489.2 MB, free: 8.328 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001834/0.4812, allocations: 193.2 kB / 489.4 MB, free: 8.137 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.5e-05/0.4813, allocations: 20 kB / 489.4 MB, free: 8.117 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.4814, allocations: 350.8 kB / 489.7 MB, free: 7.766 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007082/0.4821, allocations: 481.5 kB / 490.2 MB, free: 7.297 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008304/0.483, allocations: 0.6432 MB / 490.8 MB, free: 6.578 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006624/0.4836, allocations: 431.1 kB / 491.3 MB, free: 6.156 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.4837, allocations: 0 / 491.3 MB, free: 6.156 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001814/0.4855, allocations: 1.107 MB / 492.4 MB, free: 5.043 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.4855, allocations: 12.7 kB / 492.4 MB, free: 5.031 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.998e-06/0.4855, allocations: 4 kB / 492.4 MB, free: 5.027 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.327e-05/0.4856, allocations: 12 kB / 492.4 MB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.4869, allocations: 227.7 kB / 492.6 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.066e-05/0.4869, allocations: 11.94 kB / 492.6 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009585/0.4879, allocations: 127.7 kB / 492.8 MB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.304e-05/0.488, allocations: 28.09 kB / 492.8 MB, free: 4.629 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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 0.0002437/0.4883, allocations: 152.7 kB / 492.9 MB, free: 4.473 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003011/0.4886, allocations: 157.2 kB / 493.1 MB, free: 4.312 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002145/0.4888, allocations: 67.48 kB / 493.2 MB, free: 4.246 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-06/0.4888, allocations: 11.94 kB / 493.2 MB, free: 4.234 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.4888, allocations: 0 / 493.2 MB, free: 4.234 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.4888, allocations: 7.984 kB / 493.2 MB, free: 4.227 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003633/0.4925, allocations: 2.031 MB / 495.2 MB, free: 2.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/0.4925, allocations: 16 kB / 495.2 MB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008529/0.4934, allocations: 208.5 kB / 495.4 MB, free: 1.793 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.065e-05/0.4934, allocations: 16 kB / 495.4 MB, free: 1.777 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.709e-05/0.4935, allocations: 24 kB / 495.5 MB, free: 1.754 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-05/0.4935, allocations: 19.92 kB / 495.5 MB, free: 1.734 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.255e-05/0.4935, allocations: 19.94 kB / 495.5 MB, free: 1.715 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/0.4953, allocations: 1.756 MB / 497.3 MB, free: 15.53 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002212/0.4955, allocations: 184.5 kB / 497.4 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.842e-05/0.4956, allocations: 27.98 kB / 497.5 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006274/0.4962, allocations: 99.94 kB / 497.6 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.4964, allocations: 107.6 kB / 497.7 MB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.071e-05/0.4965, allocations: 28 kB / 497.7 MB, free: 15.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000191/0.4967, allocations: 195 kB / 497.9 MB, free: 14.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4967, allocations: 0 / 497.9 MB, free: 14.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007036/0.4974, allocations: 132 kB / 498 MB, free: 14.75 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.002844/0.5003, allocations: 5.355 MB / 0.4916 GB, free: 9.074 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.5017, allocations: 0.8716 MB / 0.4924 GB, free: 8.203 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.5018, allocations: 0 / 0.4924 GB, free: 8.203 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004191/0.5022, allocations: 242.7 kB / 0.4927 GB, free: 7.969 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006535/0.5028, allocations: 130.5 kB / 0.4928 GB, free: 7.844 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002421/0.5053, allocations: 1.115 MB / 0.4939 GB, free: 6.555 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/0.5057, allocations: 0.8405 MB / 0.4947 GB, free: 5.688 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005878/0.5063, allocations: 96.14 kB / 0.4948 GB, free: 5.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003663/0.5067, allocations: 119.4 kB / 0.4949 GB, free: 5.473 MB / 378.7 MB Notification: Performance of SimCode: time 7.32e-07/0.5067, allocations: 0 / 0.4949 GB, free: 5.473 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02431/0.531, allocations: 10.74 MB / 0.5054 GB, free: 10.88 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000173/0.5312, allocations: 165.9 kB / 0.5055 GB, free: 10.66 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.197/2.728, allocations: 0 / 0.5055 GB, free: 10.66 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat does not exist to compare? outputFormat=mat