Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",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.001025/0.001025, allocations: 176.5 kB / 8.345 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.536/1.536, 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.001075/0.001075, allocations: 86.08 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.923e-05/1.922e-05, allocations: 0 / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1439, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4004/0.5444, allocations: 80.01 MB / 467.6 MB, free: 14.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003449/0.5448, allocations: 71.97 kB / 467.6 MB, free: 14.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02592/0.5708, allocations: 6.502 MB / 474.1 MB, free: 8.125 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.5709, allocations: 4 kB / 474.1 MB, free: 8.121 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.794e-05/0.5709, allocations: 4 kB / 474.1 MB, free: 8.117 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001168/0.5721, allocations: 0.5732 MB / 474.7 MB, free: 7.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.5721, allocations: 12.03 kB / 474.7 MB, free: 7.488 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.712e-05/0.5722, allocations: 31.72 kB / 474.8 MB, free: 7.457 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004217/0.5726, allocations: 273.6 kB / 475 MB, free: 7.148 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002227/0.5729, allocations: 133.6 kB / 475.2 MB, free: 7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.803e-05/0.573, allocations: 16 kB / 475.2 MB, free: 6.984 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007173/0.5737, allocations: 405 kB / 475.6 MB, free: 6.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007873/0.5745, allocations: 437.8 kB / 476 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.5745, allocations: 4 kB / 476 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.944e-05/0.5746, allocations: 0 / 476 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.5746, allocations: 8 kB / 476 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001571/0.5762, allocations: 0.9758 MB / 477 MB, free: 5.074 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009228/0.5771, allocations: 390.9 kB / 477.4 MB, free: 4.656 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002817/0.5774, allocations: 196.2 kB / 477.6 MB, free: 4.453 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.653e-05/0.5775, allocations: 15.98 kB / 477.6 MB, free: 4.438 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.5775, allocations: 34.56 kB / 477.6 MB, free: 4.395 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 1.643e-06/0.5775, allocations: 0 / 477.6 MB, free: 4.395 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.007638/0.5851, allocations: 1.99 MB / 479.6 MB, free: 2.402 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.5853, allocations: 145.7 kB / 479.7 MB, free: 2.23 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/0.5855, allocations: 173.7 kB / 479.9 MB, free: 2.055 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.365e-05/0.5856, allocations: 25.7 kB / 479.9 MB, free: 2.023 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.5857, allocations: 145.5 kB / 480.1 MB, free: 1.879 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002039/0.5859, allocations: 185.3 kB / 480.3 MB, free: 1.695 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.682e-05/0.586, allocations: 4 kB / 480.3 MB, free: 1.691 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.5862, allocations: 342.8 kB / 480.6 MB, free: 1.348 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000681/0.5869, allocations: 465.5 kB / 481.1 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008484/0.5877, allocations: 0.6214 MB / 481.7 MB, free: 200 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006708/0.5884, allocations: 429.9 kB / 482.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.5884, allocations: 0 / 482.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001768/0.5902, allocations: 1.041 MB / 483.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.5902, allocations: 8 kB / 483.1 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.662e-05/0.5903, allocations: 11.94 kB / 483.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.913e-05/0.5903, allocations: 12 kB / 483.2 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001431/0.5917, allocations: 232.2 kB / 483.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.841e-05/0.5918, allocations: 15.92 kB / 483.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.5928, allocations: 111.7 kB / 483.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.03e-05/0.5929, allocations: 27.98 kB / 483.5 MB, free: 14.31 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.0003062/0.5932, allocations: 126.7 kB / 483.7 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001595/0.5948, allocations: 0.9134 MB / 484.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.5949, allocations: 35.58 kB / 484.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001875/0.5951, allocations: 51.39 kB / 484.7 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.48e-05/0.5951, allocations: 8 kB / 484.7 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.5951, allocations: 7.938 kB / 484.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.5952, allocations: 3.984 kB / 484.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003594/0.5988, allocations: 1.895 MB / 486.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/0.5988, allocations: 8 kB / 486.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008099/0.5996, allocations: 200.2 kB / 486.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-05/0.5996, allocations: 19.95 kB / 486.8 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.702e-05/0.5997, allocations: 12 kB / 486.8 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.889e-05/0.5997, allocations: 23.92 kB / 486.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.465e-05/0.5997, allocations: 15.94 kB / 486.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00197/0.6017, allocations: 1.714 MB / 488.6 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002021/0.6019, allocations: 160.7 kB / 488.7 MB, free: 8.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.264e-05/0.602, allocations: 15.98 kB / 488.7 MB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006198/0.6026, allocations: 83.98 kB / 488.8 MB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001959/0.6028, allocations: 107.6 kB / 488.9 MB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.848e-05/0.6029, allocations: 32 kB / 489 MB, free: 8.266 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001445/0.603, allocations: 136.3 kB / 489.1 MB, free: 8.133 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6031, allocations: 0 / 489.1 MB, free: 8.133 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006663/0.6037, allocations: 107.9 kB / 489.2 MB, free: 8.027 MB / 362.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.003335/0.6071, allocations: 5.293 MB / 494.5 MB, free: 2.414 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001353/0.6084, allocations: 0.8196 MB / 495.3 MB, free: 1.594 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.6085, allocations: 0 / 495.3 MB, free: 1.594 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004121/0.6089, allocations: 223 kB / 495.5 MB, free: 1.379 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000663/0.6095, allocations: 97.62 kB / 495.6 MB, free: 1.285 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002366/0.6119, allocations: 1.001 MB / 496.6 MB, free: 112 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004511/0.6124, allocations: 0.8171 MB / 497.4 MB, free: 15.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006242/0.613, allocations: 95.34 kB / 497.5 MB, free: 15.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003533/0.6134, allocations: 115.4 kB / 497.6 MB, free: 15.06 MB / 378.7 MB Notification: Performance of SimCode: time 6.82e-07/0.6134, allocations: 7.938 kB / 497.7 MB, free: 15.05 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03323/0.6466, allocations: 9.916 MB / 0.4957 GB, free: 5.16 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001951/0.6469, allocations: 155.8 kB / 0.4958 GB, free: 4.965 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.242/2.889, allocations: 0 / 0.4958 GB, free: 4.965 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat does not exist to compare? outputFormat=mat