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.002304/0.002304, allocations: 182.4 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.286/2.286, allocations: 205.2 MB / 219 MB, free: 9.207 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.001133/0.001133, allocations: 97.48 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.1082/0.1082, allocations: 12.58 MB / 327.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.254e-05/3.27e-05, allocations: 4 kB / 386.1 MB, free: 69.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.103, allocations: 50.37 MB / 436.5 MB, free: 19.13 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4564/0.5595, allocations: 80.88 MB / 0.5052 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002889/0.5599, allocations: 69.38 kB / 0.5053 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02564/0.5855, allocations: 5.556 MB / 0.5107 GB, free: 9.977 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5856, allocations: 4 kB / 0.5107 GB, free: 9.973 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.875e-05/0.5856, allocations: 3.906 kB / 0.5107 GB, free: 9.973 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001401/0.587, allocations: 0.5407 MB / 0.5113 GB, free: 9.527 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.5871, allocations: 7.688 kB / 0.5113 GB, free: 9.527 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.814e-05/0.5872, allocations: 58.61 kB / 0.5113 GB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.558e-05/0.5873, allocations: 34.59 kB / 0.5113 GB, free: 9.469 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003678/0.5877, allocations: 248 kB / 0.5116 GB, free: 9.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000269/0.588, allocations: 145.6 kB / 0.5117 GB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.274e-05/0.588, allocations: 26.44 kB / 0.5117 GB, free: 9.117 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006992/0.5888, allocations: 305.9 kB / 0.512 GB, free: 9.023 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.5888, allocations: 7.984 kB / 0.512 GB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.472e-05/0.5889, allocations: 10.62 kB / 0.5121 GB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.5889, allocations: 3.844 kB / 0.5121 GB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009507/0.5898, allocations: 392.8 kB / 0.5124 GB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002439/0.5923, allocations: 1.03 MB / 0.5134 GB, free: 8.348 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008727/0.5932, allocations: 261.2 kB / 0.5137 GB, free: 8.301 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003236/0.5935, allocations: 127 kB / 0.5138 GB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.246e-05/0.5936, allocations: 3.844 kB / 0.5138 GB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.5937, allocations: 33.44 kB / 0.5138 GB, free: 8.246 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.236e-06/0.5937, allocations: 4 kB / 0.5139 GB, free: 8.242 MB / 330.7 MB Notification: Performance of matching and sorting (n=53): time 0.01299/0.6067, allocations: 3.102 MB / 0.5169 GB, free: 7.176 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.6068, allocations: 55.69 kB / 0.5169 GB, free: 7.113 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002593/0.607, allocations: 180.2 kB / 0.5171 GB, free: 7.012 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.437e-05/0.6071, allocations: 35.92 kB / 0.5171 GB, free: 6.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.791e-05/0.6072, allocations: 155.5 kB / 0.5173 GB, free: 6.852 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.6074, allocations: 175.7 kB / 0.5175 GB, free: 6.727 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.19e-05/0.6075, allocations: 11.12 kB / 0.5175 GB, free: 6.723 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.006e-05/0.6076, allocations: 344.9 kB / 0.5178 GB, free: 6.398 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007872/0.6084, allocations: 333.8 kB / 0.5181 GB, free: 6.387 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008323/0.6092, allocations: 383.2 kB / 0.5185 GB, free: 6.332 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006733/0.6099, allocations: 261.2 kB / 0.5187 GB, free: 6.242 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.6099, allocations: 3.938 kB / 0.5187 GB, free: 6.238 MB / 330.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001813/0.6117, allocations: 0.717 MB / 0.5194 GB, free: 5.789 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.6118, allocations: 4 kB / 0.5194 GB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.6118, allocations: 4 kB / 0.5194 GB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.6118, allocations: 0 / 0.5194 GB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001882/0.6137, allocations: 195.7 kB / 0.5196 GB, free: 5.594 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.501e-05/0.6138, allocations: 0 / 0.5196 GB, free: 5.594 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/0.6151, allocations: 111.5 kB / 0.5197 GB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.635e-05/0.6152, allocations: 15.94 kB / 0.5197 GB, free: 5.484 MB / 330.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 () * 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.0002258/0.6155, allocations: 132.1 kB / 0.5199 GB, free: 5.363 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/0.6156, allocations: 27.62 kB / 0.5199 GB, free: 5.336 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001623/0.6158, allocations: 53.97 kB / 0.52 GB, free: 5.32 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.6158, allocations: 4 kB / 0.52 GB, free: 5.316 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.6159, allocations: 3.938 kB / 0.52 GB, free: 5.312 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.6159, allocations: 3.984 kB / 0.52 GB, free: 5.309 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004867/0.6208, allocations: 1.726 MB / 0.5216 GB, free: 3.781 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/0.6208, allocations: 8.156 kB / 0.5217 GB, free: 3.773 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/0.6221, allocations: 167.6 kB / 0.5218 GB, free: 3.613 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-05/0.6221, allocations: 19.95 kB / 0.5218 GB, free: 3.594 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.343e-05/0.6222, allocations: 19.25 kB / 0.5219 GB, free: 3.582 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.468e-05/0.6222, allocations: 15.94 kB / 0.5219 GB, free: 3.566 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.648e-06/0.6223, allocations: 11.94 kB / 0.5219 GB, free: 3.555 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001914/0.6242, allocations: 1.34 MB / 0.5232 GB, free: 2.129 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002543/0.6245, allocations: 152.1 kB / 0.5233 GB, free: 1.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.058e-05/0.6246, allocations: 19.69 kB / 0.5234 GB, free: 1.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.6256, allocations: 95.77 kB / 0.5234 GB, free: 1.879 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002998/0.6259, allocations: 95.58 kB / 0.5235 GB, free: 1.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-05/0.626, allocations: 23.69 kB / 0.5236 GB, free: 1.781 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002063/0.6262, allocations: 155.5 kB / 0.5237 GB, free: 1.648 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6262, allocations: 0 / 0.5237 GB, free: 1.648 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009508/0.6272, allocations: 99.56 kB / 0.5238 GB, free: 1.566 MB / 330.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 () * 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.003523/0.6308, allocations: 4.293 MB / 0.528 GB, free: 13.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001777/0.6326, allocations: 0.6171 MB / 0.5286 GB, free: 12.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/0.6327, allocations: 0 / 0.5286 GB, free: 12.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008241/0.6335, allocations: 229.4 kB / 0.5288 GB, free: 12.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006694/0.6342, allocations: 54.95 kB / 0.5289 GB, free: 12.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003818/0.638, allocations: 0.9261 MB / 0.5298 GB, free: 11.76 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007947/0.6389, allocations: 0.7905 MB / 0.5305 GB, free: 10.95 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00141/0.6403, allocations: 74.94 kB / 0.5306 GB, free: 10.88 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007714/0.6411, allocations: 90.59 kB / 0.5307 GB, free: 10.84 MB / 346.7 MB Notification: Performance of SimCode: time 1.923e-06/0.6412, allocations: 0 / 0.5307 GB, free: 10.84 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04671/0.6879, allocations: 7.694 MB / 0.5382 GB, free: 3.16 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000338/0.6883, allocations: 176.2 kB / 0.5384 GB, free: 2.934 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.789/3.477, allocations: 0 / 0.5384 GB, free: 2.934 MB / 346.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