Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.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.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous",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.00153/0.001529, allocations: 184.6 kB / 15.8 MB, free: 6.312 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.12/2.12, 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.001149/0.001149, allocations: 86.88 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.09648/0.09647, allocations: 12.6 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005774/0.0005774, allocations: 12.72 kB / 392.1 MB, free: 54.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09783/0.09846, allocations: 50.37 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1475/0.246, allocations: 80.97 MB / 0.5112 GB, free: 9.766 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/0.2464, allocations: 71.95 kB / 0.5112 GB, free: 9.695 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.029/0.2754, allocations: 5.579 MB / 0.5167 GB, free: 4.105 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.2755, allocations: 0 / 0.5167 GB, free: 4.105 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.51e-05/0.2755, allocations: 8 kB / 0.5167 GB, free: 4.098 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001765/0.2773, allocations: 0.5648 MB / 0.5172 GB, free: 3.484 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/0.2774, allocations: 8.031 kB / 0.5173 GB, free: 3.477 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001189/0.2775, allocations: 58.55 kB / 0.5173 GB, free: 3.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.2776, allocations: 39.66 kB / 0.5173 GB, free: 3.371 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004864/0.2781, allocations: 255.1 kB / 0.5176 GB, free: 3.082 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003225/0.2785, allocations: 141.6 kB / 0.5177 GB, free: 2.926 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.877e-05/0.2786, allocations: 27.98 kB / 0.5177 GB, free: 2.898 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.2802, allocations: 379.6 kB / 0.5181 GB, free: 2.512 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.584e-05/0.2803, allocations: 0 / 0.5181 GB, free: 2.512 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.875e-05/0.2804, allocations: 8 kB / 0.5181 GB, free: 2.504 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.2804, allocations: 11.98 kB / 0.5181 GB, free: 2.492 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002731/0.2831, allocations: 0.5213 MB / 0.5186 GB, free: 1.973 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002983/0.2861, allocations: 1.023 MB / 0.5196 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001963/0.2882, allocations: 346.2 kB / 0.52 GB, free: 0.5312 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.124e-05/0.2883, allocations: 4 kB / 0.52 GB, free: 0.5273 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.017e-05/0.2883, allocations: 34.56 kB / 0.52 GB, free: 496 kB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.875e-06/0.2884, allocations: 3.938 kB / 0.52 GB, free: 492 kB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.3538/0.6421, allocations: 6.688 MB / 0.5265 GB, free: 84.69 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.6422, allocations: 61.28 kB / 0.5266 GB, free: 84.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003707/0.6426, allocations: 180.4 kB / 0.5268 GB, free: 84.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.967e-05/0.6427, allocations: 34.64 kB / 0.5268 GB, free: 84.51 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.813e-05/0.6428, allocations: 159.8 kB / 0.527 GB, free: 84.39 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002251/0.6431, allocations: 176.9 kB / 0.5271 GB, free: 84.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.764e-05/0.6432, allocations: 13.25 kB / 0.5271 GB, free: 84.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.561e-05/0.6433, allocations: 335.7 kB / 0.5275 GB, free: 83.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002705/0.646, allocations: 0.4971 MB / 0.5279 GB, free: 83.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002732/0.6488, allocations: 0.5551 MB / 0.5285 GB, free: 83.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002378/0.6512, allocations: 443.1 kB / 0.5289 GB, free: 83.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.6512, allocations: 1.375 kB / 0.5289 GB, free: 83.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.005389/0.6566, allocations: 1.068 MB / 0.53 GB, free: 83.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.897e-05/0.6567, allocations: 6.75 kB / 0.53 GB, free: 83.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.6567, allocations: 1.281 kB / 0.53 GB, free: 83.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.792e-05/0.6567, allocations: 3.719 kB / 0.53 GB, free: 83.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001858/0.6586, allocations: 188.9 kB / 0.5301 GB, free: 83.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.901e-05/0.6586, allocations: 8.391 kB / 0.5302 GB, free: 83.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.66, allocations: 109.5 kB / 0.5303 GB, free: 83.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.528e-05/0.6601, allocations: 15.88 kB / 0.5303 GB, free: 83.82 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0003385/0.6605, allocations: 165.5 kB / 0.5304 GB, free: 83.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.6606, allocations: 28 kB / 0.5305 GB, free: 83.69 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001519/0.6608, allocations: 51 kB / 0.5305 GB, free: 83.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.6608, allocations: 9.219 kB / 0.5305 GB, free: 83.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/0.6608, allocations: 1.375 kB / 0.5305 GB, free: 83.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.6608, allocations: 7.609 kB / 0.5305 GB, free: 83.67 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007025/0.6679, allocations: 2.01 MB / 0.5325 GB, free: 82.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.6679, allocations: 7.25 kB / 0.5325 GB, free: 82.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/0.6692, allocations: 171.6 kB / 0.5327 GB, free: 82.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.871e-05/0.6692, allocations: 11.03 kB / 0.5327 GB, free: 82.69 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.566e-05/0.6693, allocations: 16.94 kB / 0.5327 GB, free: 82.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.448e-05/0.6693, allocations: 10.22 kB / 0.5327 GB, free: 82.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.05e-05/0.6693, allocations: 16.56 kB / 0.5327 GB, free: 82.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005248/0.6746, allocations: 1.766 MB / 0.5344 GB, free: 81.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002877/0.6749, allocations: 153.8 kB / 0.5346 GB, free: 81.19 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.724e-05/0.675, allocations: 17.22 kB / 0.5346 GB, free: 81.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009499/0.676, allocations: 96.08 kB / 0.5347 GB, free: 81.17 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002788/0.6763, allocations: 93.56 kB / 0.5348 GB, free: 81.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.381e-05/0.6763, allocations: 21.41 kB / 0.5348 GB, free: 81.14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002634/0.6766, allocations: 154.6 kB / 0.5349 GB, free: 81.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.6766, allocations: 0 / 0.5349 GB, free: 81.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006922/0.6773, allocations: 95.56 kB / 0.535 GB, free: 81.03 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.005896/0.6832, allocations: 4.739 MB / 0.5397 GB, free: 76.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00428/0.6876, allocations: 0.9314 MB / 0.5406 GB, free: 75.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/0.6876, allocations: 7.938 kB / 0.5406 GB, free: 75.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001784/0.6894, allocations: 365.8 kB / 0.5409 GB, free: 75.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006232/0.69, allocations: 53.67 kB / 0.541 GB, free: 75.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/0.7018, allocations: 3.948 MB / 0.5448 GB, free: 71.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.7021, allocations: 0.7847 MB / 0.5456 GB, free: 70.43 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000826/0.703, allocations: 78.94 kB / 0.5457 GB, free: 70.35 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004317/0.7034, allocations: 91.41 kB / 0.5458 GB, free: 70.26 MB / 362.7 MB Notification: Performance of SimCode: time 1.333e-06/0.7034, allocations: 0 / 0.5458 GB, free: 70.26 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03118/0.7346, allocations: 7.622 MB / 0.5532 GB, free: 62.64 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002514/0.735, allocations: 205.4 kB / 0.5534 GB, free: 62.4 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.744/3.479, allocations: 0 / 0.5534 GB, free: 62.4 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat