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.001397/0.001397, 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.486/1.486, allocations: 221.3 MB / 235.5 MB, free: 2.953 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.0008833/0.0008833, allocations: 88.05 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.209e-05/2.213e-05, allocations: 0 / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09447/0.09451, allocations: 50.42 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3132/0.4078, allocations: 80.68 MB / 475 MB, free: 6.789 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001867/0.408, allocations: 73.84 kB / 475.1 MB, free: 6.719 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01871/0.4267, allocations: 6.535 MB / 481.6 MB, free: 196 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4267, allocations: 0 / 481.6 MB, free: 196 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.461e-05/0.4268, allocations: 4 kB / 481.6 MB, free: 192 kB / 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.001067/0.4278, allocations: 0.5732 MB / 482.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.4279, allocations: 8.031 kB / 482.2 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.714e-05/0.428, allocations: 74.53 kB / 482.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.041e-05/0.4281, allocations: 39.66 kB / 482.3 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003685/0.4284, allocations: 267.9 kB / 482.6 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001989/0.4287, allocations: 141.6 kB / 482.7 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.799e-05/0.4287, allocations: 24 kB / 482.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008219/0.4296, allocations: 498.2 kB / 483.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.4296, allocations: 4 kB / 483.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.537e-05/0.4296, allocations: 15.98 kB / 483.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.4296, allocations: 4 kB / 483.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006949/0.4303, allocations: 415.7 kB / 483.7 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001522/0.4319, allocations: 1.034 MB / 484.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009029/0.4328, allocations: 418.8 kB / 485.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003022/0.4331, allocations: 203.4 kB / 485.3 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.262e-05/0.4332, allocations: 11.92 kB / 485.3 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.4332, allocations: 38.56 kB / 485.4 MB, free: 12.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.954e-06/0.4332, allocations: 0 / 485.4 MB, free: 12.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.008002/0.4412, allocations: 2.068 MB / 487.4 MB, free: 10.11 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.4414, allocations: 148.9 kB / 487.6 MB, free: 9.938 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.4416, allocations: 185.7 kB / 487.7 MB, free: 9.75 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.646e-05/0.4417, allocations: 41.7 kB / 487.8 MB, free: 9.703 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.62e-05/0.4418, allocations: 137.5 kB / 487.9 MB, free: 9.562 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/0.4419, allocations: 193.3 kB / 488.1 MB, free: 9.371 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.485e-05/0.442, allocations: 16 kB / 488.1 MB, free: 9.355 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.4422, allocations: 346.8 kB / 488.5 MB, free: 9.008 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007656/0.4429, allocations: 477.5 kB / 488.9 MB, free: 8.539 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008298/0.4438, allocations: 0.65 MB / 489.6 MB, free: 7.812 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006587/0.4445, allocations: 435.1 kB / 490 MB, free: 7.387 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.4445, allocations: 4 kB / 490 MB, free: 7.383 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001796/0.4463, allocations: 1.096 MB / 491.1 MB, free: 6.281 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.4463, allocations: 11.98 kB / 491.1 MB, free: 6.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.4463, allocations: 4 kB / 491.1 MB, free: 6.266 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.4463, allocations: 12 kB / 491.1 MB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/0.4477, allocations: 231.9 kB / 491.4 MB, free: 6.027 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.684e-05/0.4477, allocations: 16.06 kB / 491.4 MB, free: 6.012 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009551/0.4487, allocations: 123.7 kB / 491.5 MB, free: 5.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.177e-05/0.4488, allocations: 31.94 kB / 491.5 MB, free: 5.859 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.0002098/0.449, allocations: 144.8 kB / 491.7 MB, free: 5.711 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002895/0.4493, allocations: 165.1 kB / 491.8 MB, free: 5.543 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001857/0.4495, allocations: 67.08 kB / 491.9 MB, free: 5.473 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/0.4495, allocations: 11.94 kB / 491.9 MB, free: 5.461 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4495, allocations: 0 / 491.9 MB, free: 5.461 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.4495, allocations: 7.984 kB / 491.9 MB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003561/0.4531, allocations: 2.012 MB / 493.9 MB, free: 3.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.316e-05/0.4531, allocations: 12 kB / 493.9 MB, free: 3.246 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007828/0.4539, allocations: 203.8 kB / 494.1 MB, free: 3.047 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.862e-05/0.4539, allocations: 19.98 kB / 494.2 MB, free: 3.027 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-05/0.454, allocations: 24 kB / 494.2 MB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-05/0.454, allocations: 15.94 kB / 494.2 MB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.267e-05/0.454, allocations: 19.94 kB / 494.2 MB, free: 2.969 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001845/0.4559, allocations: 1.756 MB / 496 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002007/0.4561, allocations: 160.7 kB / 496.1 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.853e-05/0.4562, allocations: 31.94 kB / 496.2 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006106/0.4568, allocations: 104 kB / 496.3 MB, free: 488 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/0.457, allocations: 107.7 kB / 496.4 MB, free: 380 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.77e-05/0.4571, allocations: 28 kB / 496.4 MB, free: 352 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001267/0.4572, allocations: 140.3 kB / 496.5 MB, free: 212 kB / 362.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4572, allocations: 0 / 496.5 MB, free: 212 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006192/0.4578, allocations: 131.9 kB / 496.7 MB, free: 80 kB / 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.002975/0.4608, allocations: 5.355 MB / 0.4902 GB, free: 10.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.4621, allocations: 0.8649 MB / 0.4911 GB, free: 9.543 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.4622, allocations: 0 / 0.4911 GB, free: 9.543 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004121/0.4626, allocations: 241.9 kB / 0.4913 GB, free: 9.309 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005593/0.4631, allocations: 120 kB / 0.4914 GB, free: 9.191 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002155/0.4653, allocations: 1.064 MB / 0.4925 GB, free: 7.957 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.4657, allocations: 0.8248 MB / 0.4933 GB, free: 7.105 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005813/0.4663, allocations: 87.38 kB / 0.4934 GB, free: 7.016 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003444/0.4667, allocations: 115.4 kB / 0.4935 GB, free: 6.902 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4667, allocations: 4 kB / 0.4935 GB, free: 6.898 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02325/0.4899, allocations: 10.34 MB / 0.5036 GB, free: 12.68 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/0.4902, allocations: 165.1 kB / 0.5037 GB, free: 12.46 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.251/2.741, allocations: 64 / 0.5037 GB, free: 12.46 MB / 394.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