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: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001076/0.001076, allocations: 181.1 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 1.538/1.538, allocations: 205.4 MB / 221.9 MB, free: 13.85 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.001079/0.00108, 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.07058/0.07058, allocations: 12.6 MB / 331.1 MB, free: 10.31 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003232/0.0003232, allocations: 10.84 kB / 392 MB, free: 54.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08027/0.08061, allocations: 50.36 MB / 442.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1073/0.188, allocations: 80.97 MB / 0.5111 GB, free: 9.859 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.1883, allocations: 75.94 kB / 0.5111 GB, free: 9.785 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01566/0.2039, allocations: 5.578 MB / 0.5166 GB, free: 4.199 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.204, allocations: 0 / 0.5166 GB, free: 4.199 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.676e-05/0.204, allocations: 8 kB / 0.5166 GB, free: 4.191 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.0009189/0.2049, allocations: 0.5532 MB / 0.5171 GB, free: 3.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.205, allocations: 12.03 kB / 0.5171 GB, free: 3.578 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.598e-05/0.2051, allocations: 31.66 kB / 0.5172 GB, free: 3.547 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002951/0.2054, allocations: 247.2 kB / 0.5174 GB, free: 3.266 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001977/0.2056, allocations: 145.6 kB / 0.5175 GB, free: 3.105 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.224e-05/0.2056, allocations: 27.94 kB / 0.5176 GB, free: 3.078 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000844/0.2065, allocations: 379.6 kB / 0.5179 GB, free: 2.691 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.2065, allocations: 3.984 kB / 0.5179 GB, free: 2.688 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.573e-05/0.2066, allocations: 16 kB / 0.518 GB, free: 2.672 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.2066, allocations: 4 kB / 0.518 GB, free: 2.668 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001282/0.2079, allocations: 0.5174 MB / 0.5185 GB, free: 2.152 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.2095, allocations: 1.034 MB / 0.5195 GB, free: 1.047 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009731/0.2105, allocations: 330.4 kB / 0.5198 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.259e-05/0.2106, allocations: 7.938 kB / 0.5198 GB, free: 0.707 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/0.2106, allocations: 34.56 kB / 0.5198 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.264e-06/0.2106, allocations: 7.938 kB / 0.5198 GB, free: 0.6562 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.2244/0.435, allocations: 6.69 MB / 0.5264 GB, free: 84.66 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.4351, allocations: 58.47 kB / 0.5264 GB, free: 84.6 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002876/0.4354, allocations: 189.5 kB / 0.5266 GB, free: 84.51 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.597e-05/0.4355, allocations: 32.05 kB / 0.5266 GB, free: 84.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.948e-05/0.4356, allocations: 148.2 kB / 0.5268 GB, free: 84.37 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.4357, allocations: 174.3 kB / 0.5269 GB, free: 84.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.137e-05/0.4358, allocations: 9.594 kB / 0.527 GB, free: 84.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.05e-05/0.4359, allocations: 344.2 kB / 0.5273 GB, free: 83.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/0.4373, allocations: 0.4936 MB / 0.5278 GB, free: 83.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.4387, allocations: 0.551 MB / 0.5283 GB, free: 83.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/0.4399, allocations: 455.5 kB / 0.5287 GB, free: 83.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.4399, allocations: 0 / 0.5287 GB, free: 83.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00281/0.4427, allocations: 1.066 MB / 0.5298 GB, free: 83.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.4428, allocations: 8.75 kB / 0.5298 GB, free: 83.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.4428, allocations: 1.156 kB / 0.5298 GB, free: 83.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.448e-05/0.4428, allocations: 7.469 kB / 0.5298 GB, free: 83.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009393/0.4438, allocations: 191.7 kB / 0.53 GB, free: 83.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.4438, allocations: 5.312 kB / 0.53 GB, free: 83.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006927/0.4445, allocations: 104.9 kB / 0.5301 GB, free: 83.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.531e-05/0.4445, allocations: 19.27 kB / 0.5301 GB, free: 83.79 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.0002299/0.4448, allocations: 161.7 kB / 0.5303 GB, free: 83.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.704e-05/0.4449, allocations: 28.58 kB / 0.5303 GB, free: 83.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001192/0.445, allocations: 54.48 kB / 0.5303 GB, free: 83.65 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.445, allocations: 6.094 kB / 0.5303 GB, free: 83.65 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.445, allocations: 0 / 0.5303 GB, free: 83.65 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.4451, allocations: 3.938 kB / 0.5303 GB, free: 83.65 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00387/0.4489, allocations: 2.01 MB / 0.5323 GB, free: 82.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.286e-05/0.449, allocations: 17.58 kB / 0.5323 GB, free: 82.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005856/0.4496, allocations: 160.9 kB / 0.5325 GB, free: 82.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/0.4496, allocations: 19.89 kB / 0.5325 GB, free: 82.63 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.214e-05/0.4496, allocations: 24.52 kB / 0.5325 GB, free: 82.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.467e-06/0.4496, allocations: 13.22 kB / 0.5325 GB, free: 82.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.4496, allocations: 14.34 kB / 0.5325 GB, free: 82.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002576/0.4522, allocations: 1.749 MB / 0.5343 GB, free: 81.27 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002029/0.4525, allocations: 155.1 kB / 0.5344 GB, free: 81.13 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.177e-05/0.4525, allocations: 27.25 kB / 0.5344 GB, free: 81.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000544/0.4531, allocations: 90.42 kB / 0.5345 GB, free: 81.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002055/0.4533, allocations: 96.69 kB / 0.5346 GB, free: 81.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.495e-05/0.4534, allocations: 23.12 kB / 0.5346 GB, free: 81.08 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001654/0.4535, allocations: 156.3 kB / 0.5348 GB, free: 80.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4535, allocations: 0 / 0.5348 GB, free: 80.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000564/0.4541, allocations: 97.91 kB / 0.5349 GB, free: 80.96 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.0001807/0.4543, allocations: 132.7 kB / 0.535 GB, free: 80.85 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002103/0.4564, allocations: 0.9295 MB / 0.5359 GB, free: 80.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.4564, allocations: 0 / 0.5359 GB, free: 80.55 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008429/0.4573, allocations: 376.7 kB / 0.5363 GB, free: 80.37 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/0.4577, allocations: 60 kB / 0.5363 GB, free: 80.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/0.4597, allocations: 1.156 MB / 0.5374 GB, free: 79.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.4599, allocations: 0.7925 MB / 0.5382 GB, free: 78.21 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005038/0.4605, allocations: 81.83 kB / 0.5383 GB, free: 78.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002047/0.4607, allocations: 31.44 kB / 0.5383 GB, free: 78.11 MB / 362.7 MB Notification: Performance of SimCode: time 5.61e-07/0.4607, allocations: 0 / 0.5383 GB, free: 78.11 MB / 362.7 MB Notification: Performance of Templates: time 0.008449/0.4691, allocations: 5.097 MB / 0.5433 GB, free: 73.04 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.makefile (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 & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches