Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002072/0.002072, allocations: 178.5 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.191/2.191, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001187/0.001187, allocations: 94.84 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09878/0.09878, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005565/0.0005567, allocations: 16.56 kB / 392.1 MB, free: 54.83 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09474/0.09535, allocations: 50.36 MB / 442.5 MB, free: 10.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1674/0.2629, allocations: 82.03 MB / 0.5122 GB, free: 8.715 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004265/0.2634, allocations: 67.97 kB / 0.5123 GB, free: 8.648 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03568/0.2991, allocations: 6.445 MB / 0.5186 GB, free: 2.191 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.2991, allocations: 4 kB / 0.5186 GB, free: 2.188 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.2992, allocations: 4 kB / 0.5186 GB, free: 2.184 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001754/0.3009, allocations: 0.6003 MB / 0.5191 GB, free: 1.535 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.301, allocations: 8.031 kB / 0.5192 GB, free: 1.527 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.3011, allocations: 74.53 kB / 0.5192 GB, free: 1.445 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.3012, allocations: 35.62 kB / 0.5193 GB, free: 1.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005028/0.3017, allocations: 263.1 kB / 0.5195 GB, free: 1.109 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003149/0.3021, allocations: 145.6 kB / 0.5196 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.021e-05/0.3022, allocations: 28 kB / 0.5197 GB, free: 0.9219 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002044/0.3042, allocations: 0.5649 MB / 0.5202 GB, free: 332 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/0.3043, allocations: 3.984 kB / 0.5202 GB, free: 328 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.213e-05/0.3043, allocations: 16 kB / 0.5202 GB, free: 312 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.3044, allocations: 4 kB / 0.5202 GB, free: 308 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.279/0.5834, allocations: 0.5372 MB / 0.5208 GB, free: 84.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/0.5857, allocations: 1.009 MB / 0.5218 GB, free: 84.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002685/0.5885, allocations: 0.4955 MB / 0.5222 GB, free: 84.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.295e-05/0.5886, allocations: 11.28 kB / 0.5223 GB, free: 84.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.5886, allocations: 41.66 kB / 0.5223 GB, free: 84.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.196e-06/0.5886, allocations: 3 kB / 0.5223 GB, free: 84.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.08066/0.6693, allocations: 6.768 MB / 0.5289 GB, free: 83.74 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.6695, allocations: 145.9 kB / 0.529 GB, free: 83.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.6698, allocations: 174.1 kB / 0.5292 GB, free: 83.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001268/0.6699, allocations: 37.27 kB / 0.5292 GB, free: 83.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.757e-05/0.67, allocations: 152.2 kB / 0.5294 GB, free: 83.35 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002643/0.6703, allocations: 196.5 kB / 0.5296 GB, free: 83.24 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.6705, allocations: 12.5 kB / 0.5296 GB, free: 83.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.589e-05/0.6705, allocations: 346 kB / 0.5299 GB, free: 82.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003056/0.6736, allocations: 0.6566 MB / 0.5306 GB, free: 82.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003176/0.6768, allocations: 0.8409 MB / 0.5314 GB, free: 82.69 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002913/0.6798, allocations: 0.6082 MB / 0.532 GB, free: 82.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.6798, allocations: 3.875 kB / 0.532 GB, free: 82.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.006239/0.686, allocations: 1.481 MB / 0.5334 GB, free: 81.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.6861, allocations: 7.594 kB / 0.5334 GB, free: 81.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.6861, allocations: 7.516 kB / 0.5334 GB, free: 81.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.916e-05/0.6862, allocations: 11.59 kB / 0.5335 GB, free: 81.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002464/0.6886, allocations: 227.1 kB / 0.5337 GB, free: 81.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.08e-05/0.6887, allocations: 14.77 kB / 0.5337 GB, free: 81.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/0.6904, allocations: 127.1 kB / 0.5338 GB, free: 81.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/0.6906, allocations: 26.66 kB / 0.5338 GB, free: 81.84 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 () * Number of clocked states: 1 (PI.x) * 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.0004237/0.691, allocations: 192.8 kB / 0.534 GB, free: 81.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004606/0.6915, allocations: 157.2 kB / 0.5342 GB, free: 81.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001977/0.6917, allocations: 66.66 kB / 0.5342 GB, free: 81.53 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.6917, allocations: 7.812 kB / 0.5342 GB, free: 81.53 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/0.6917, allocations: 0 / 0.5342 GB, free: 81.53 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.6918, allocations: 2.391 kB / 0.5342 GB, free: 81.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008078/0.6998, allocations: 2.307 MB / 0.5365 GB, free: 80.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.266e-05/0.6999, allocations: 9.25 kB / 0.5365 GB, free: 80.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00148/0.7014, allocations: 206.7 kB / 0.5367 GB, free: 79.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-05/0.7015, allocations: 11.81 kB / 0.5367 GB, free: 79.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.388e-05/0.7015, allocations: 24.16 kB / 0.5367 GB, free: 79.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-05/0.7016, allocations: 21.27 kB / 0.5367 GB, free: 79.97 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.398e-05/0.7016, allocations: 19.08 kB / 0.5368 GB, free: 79.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005958/0.7076, allocations: 2.193 MB / 0.5389 GB, free: 77.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003138/0.7079, allocations: 161.5 kB / 0.5391 GB, free: 77.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.708, allocations: 27.98 kB / 0.5391 GB, free: 77.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.7091, allocations: 103.9 kB / 0.5392 GB, free: 77.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002973/0.7094, allocations: 107.6 kB / 0.5393 GB, free: 76.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.627e-05/0.7095, allocations: 31.95 kB / 0.5393 GB, free: 76.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001746/0.7097, allocations: 144.3 kB / 0.5395 GB, free: 76.76 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7097, allocations: 4 kB / 0.5395 GB, free: 76.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000928/0.7106, allocations: 129.1 kB / 0.5396 GB, free: 76.63 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 () * Number of clocked states: 1 (PI.x) * 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.006757/0.7174, allocations: 5.789 MB / 0.5452 GB, free: 70.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005168/0.7226, allocations: 1.207 MB / 0.5464 GB, free: 69.31 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/0.7227, allocations: 2.078 kB / 0.5464 GB, free: 69.31 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00198/0.7247, allocations: 386 kB / 0.5468 GB, free: 68.94 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009389/0.7256, allocations: 132.1 kB / 0.5469 GB, free: 68.81 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/0.7408, allocations: 7.87 MB / 0.5546 GB, free: 60.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.7412, allocations: 0.8171 MB / 0.5554 GB, free: 59.83 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001011/0.7422, allocations: 87.36 kB / 0.5555 GB, free: 59.74 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005894/0.7428, allocations: 123.4 kB / 0.5556 GB, free: 59.62 MB / 362.7 MB Notification: Performance of SimCode: time 8.11e-07/0.7428, allocations: 0 / 0.5556 GB, free: 59.62 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03437/0.7772, allocations: 10.27 MB / 0.5656 GB, free: 49.38 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000142/0.7774, allocations: 203.6 kB / 0.5658 GB, free: 49.13 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.808/3.586, allocations: 0 / 0.5658 GB, free: 49.13 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat does not exist to compare? outputFormat=mat