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.00225/0.00225, allocations: 182 kB / 13.23 MB, free: 2.086 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.167/2.167, allocations: 205.2 MB / 219 MB, free: 9.199 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.001113/0.001113, allocations: 82.44 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1128/0.1128, allocations: 12.58 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.737e-05/3.781e-05, allocations: 7.984 kB / 386.1 MB, free: 69.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09493/0.09501, allocations: 50.37 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.546/0.6411, allocations: 81.92 MB / 0.5062 GB, free: 11.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.6414, allocations: 69.09 kB / 0.5063 GB, free: 11.94 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02796/0.6694, allocations: 6.426 MB / 0.5126 GB, free: 9.504 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.6695, allocations: 0 / 0.5126 GB, free: 9.504 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.174e-05/0.6695, allocations: 3.875 kB / 0.5126 GB, free: 9.504 MB / 330.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.001504/0.671, allocations: 0.5712 MB / 0.5131 GB, free: 9.035 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.6711, allocations: 11.5 kB / 0.5132 GB, free: 9.035 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.574e-05/0.6712, allocations: 71.66 kB / 0.5132 GB, free: 8.988 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.254e-05/0.6713, allocations: 34.75 kB / 0.5133 GB, free: 8.973 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004185/0.6717, allocations: 271.6 kB / 0.5135 GB, free: 8.723 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002668/0.672, allocations: 148.8 kB / 0.5137 GB, free: 8.609 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.608e-05/0.6721, allocations: 28.97 kB / 0.5137 GB, free: 8.609 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.6732, allocations: 494.7 kB / 0.5142 GB, free: 8.438 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.615e-05/0.6733, allocations: 7.859 kB / 0.5142 GB, free: 8.434 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.814e-05/0.6733, allocations: 7.438 kB / 0.5142 GB, free: 8.434 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.6733, allocations: 11.7 kB / 0.5142 GB, free: 8.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.6744, allocations: 417.4 kB / 0.5146 GB, free: 8.387 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002212/0.6766, allocations: 1.012 MB / 0.5156 GB, free: 7.684 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001389/0.678, allocations: 417.9 kB / 0.516 GB, free: 7.547 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004817/0.6786, allocations: 206.4 kB / 0.5162 GB, free: 7.508 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.632e-05/0.6787, allocations: 18.38 kB / 0.5162 GB, free: 7.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.6787, allocations: 45.72 kB / 0.5162 GB, free: 7.453 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 3.046e-06/0.6787, allocations: 0 / 0.5162 GB, free: 7.453 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.01427/0.693, allocations: 2.079 MB / 0.5183 GB, free: 6.762 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.747e-05/0.6931, allocations: 152.8 kB / 0.5184 GB, free: 6.586 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002402/0.6934, allocations: 177.3 kB / 0.5186 GB, free: 6.434 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.6935, allocations: 37.14 kB / 0.5186 GB, free: 6.398 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.93e-05/0.6936, allocations: 141 kB / 0.5187 GB, free: 6.27 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002197/0.6938, allocations: 195.9 kB / 0.5189 GB, free: 6.105 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.694, allocations: 15.56 kB / 0.5189 GB, free: 6.102 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.316e-05/0.694, allocations: 342.3 kB / 0.5193 GB, free: 5.773 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/0.6952, allocations: 480 kB / 0.5197 GB, free: 5.543 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.6965, allocations: 0.6493 MB / 0.5204 GB, free: 5.074 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.6976, allocations: 427.4 kB / 0.5208 GB, free: 4.836 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.6976, allocations: 4 kB / 0.5208 GB, free: 4.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002785/0.7004, allocations: 1.101 MB / 0.5218 GB, free: 4.172 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.7005, allocations: 8 kB / 0.5219 GB, free: 4.164 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.7005, allocations: 8 kB / 0.5219 GB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.177e-05/0.7005, allocations: 11.95 kB / 0.5219 GB, free: 4.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002561/0.7031, allocations: 231.9 kB / 0.5221 GB, free: 3.922 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.284e-05/0.7032, allocations: 8 kB / 0.5221 GB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.705, allocations: 126.7 kB / 0.5222 GB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.7051, allocations: 27.31 kB / 0.5222 GB, free: 3.781 MB / 330.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.0003077/0.7054, allocations: 158.2 kB / 0.5224 GB, free: 3.641 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004369/0.7059, allocations: 154.9 kB / 0.5225 GB, free: 3.508 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000195/0.7061, allocations: 61.95 kB / 0.5226 GB, free: 3.496 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.7061, allocations: 8 kB / 0.5226 GB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.7061, allocations: 3.953 kB / 0.5226 GB, free: 3.484 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.7061, allocations: 7.984 kB / 0.5226 GB, free: 3.477 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005678/0.7119, allocations: 2.008 MB / 0.5246 GB, free: 1.703 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.775e-05/0.7119, allocations: 12 kB / 0.5246 GB, free: 1.691 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00149/0.7134, allocations: 206.7 kB / 0.5248 GB, free: 1.496 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.377e-05/0.7135, allocations: 16 kB / 0.5248 GB, free: 1.48 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.536e-05/0.7136, allocations: 24.94 kB / 0.5248 GB, free: 1.465 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.639e-05/0.7136, allocations: 15.94 kB / 0.5248 GB, free: 1.449 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.28e-05/0.7136, allocations: 19.89 kB / 0.5249 GB, free: 1.43 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002668/0.7163, allocations: 1.76 MB / 0.5266 GB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003655/0.7167, allocations: 167.2 kB / 0.5267 GB, free: 15.42 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/0.7168, allocations: 33.36 kB / 0.5268 GB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001442/0.7183, allocations: 101 kB / 0.5269 GB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00104/0.7194, allocations: 103.6 kB / 0.527 GB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001405/0.7195, allocations: 28.44 kB / 0.527 GB, free: 15.2 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003571/0.7199, allocations: 146.2 kB / 0.5271 GB, free: 15.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7199, allocations: 0 / 0.5271 GB, free: 15.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002332/0.7223, allocations: 128.3 kB / 0.5273 GB, free: 14.96 MB / 346.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.008446/0.7308, allocations: 5.357 MB / 0.5325 GB, free: 9.637 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004375/0.7352, allocations: 0.8621 MB / 0.5333 GB, free: 9.152 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.962e-05/0.7353, allocations: 12.06 kB / 0.5333 GB, free: 9.141 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001938/0.7373, allocations: 234 kB / 0.5336 GB, free: 8.969 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/0.7387, allocations: 124.7 kB / 0.5337 GB, free: 8.875 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006849/0.7456, allocations: 1.054 MB / 0.5347 GB, free: 7.805 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000859/0.7465, allocations: 0.8211 MB / 0.5355 GB, free: 6.961 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002358/0.7489, allocations: 91.38 kB / 0.5356 GB, free: 6.871 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008176/0.7497, allocations: 114.7 kB / 0.5357 GB, free: 6.824 MB / 346.7 MB Notification: Performance of SimCode: time 1.303e-06/0.7497, allocations: 3.938 kB / 0.5357 GB, free: 6.82 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05117/0.8009, allocations: 10.35 MB / 0.5458 GB, free: 12.47 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003562/0.8014, allocations: 174.2 kB / 0.546 GB, free: 12.25 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.925/3.727, allocations: 4.062 kB / 0.546 GB, free: 12.24 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