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: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 181 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.456/1.456, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0007869/0.0007869, allocations: 98.84 kB / 270.3 MB, free: 13.34 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.06494/0.06494, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005358/0.000536, allocations: 9.75 kB / 392 MB, free: 54.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.124, allocations: 50.36 MB / 442.4 MB, free: 10.96 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1417/0.2657, allocations: 82.02 MB / 0.5121 GB, free: 8.828 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003331/0.2661, allocations: 67.97 kB / 0.5122 GB, free: 8.762 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01881/0.2849, allocations: 6.445 MB / 0.5184 GB, free: 2.305 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.063e-06/0.285, allocations: 0 / 0.5184 GB, free: 2.305 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.285, allocations: 8 kB / 0.5185 GB, free: 2.297 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.001096/0.2861, allocations: 0.5926 MB / 0.519 GB, free: 1.656 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.2861, allocations: 11.97 kB / 0.519 GB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.307e-05/0.2862, allocations: 35.62 kB / 0.5191 GB, free: 1.609 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003374/0.2866, allocations: 267.1 kB / 0.5193 GB, free: 1.305 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001928/0.2868, allocations: 141.6 kB / 0.5195 GB, free: 1.148 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.764e-05/0.2868, allocations: 24 kB / 0.5195 GB, free: 1.125 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.288, allocations: 0.5688 MB / 0.52 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.288, allocations: 0 / 0.52 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.643e-05/0.2881, allocations: 12 kB / 0.5201 GB, free: 0.5117 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.2881, allocations: 8 kB / 0.5201 GB, free: 0.5039 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2016/0.4897, allocations: 0.5449 MB / 0.5206 GB, free: 84.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.4917, allocations: 1.008 MB / 0.5216 GB, free: 84.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001747/0.4935, allocations: 0.4931 MB / 0.5221 GB, free: 84.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.038e-05/0.4936, allocations: 12.92 kB / 0.5221 GB, free: 84.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.4936, allocations: 39.36 kB / 0.5221 GB, free: 84.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.867e-06/0.4936, allocations: 0 / 0.5221 GB, free: 84.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.04214/0.5358, allocations: 6.777 MB / 0.5287 GB, free: 83.83 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.76e-05/0.5359, allocations: 152.1 kB / 0.5289 GB, free: 83.67 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/0.5362, allocations: 175.8 kB / 0.529 GB, free: 83.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.123e-05/0.5363, allocations: 37.42 kB / 0.5291 GB, free: 83.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.858e-05/0.5364, allocations: 139.4 kB / 0.5292 GB, free: 83.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002056/0.5366, allocations: 195.2 kB / 0.5294 GB, free: 83.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.657e-05/0.5367, allocations: 13.59 kB / 0.5294 GB, free: 83.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.775e-05/0.5368, allocations: 347.6 kB / 0.5297 GB, free: 83.01 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001562/0.5383, allocations: 0.6584 MB / 0.5304 GB, free: 83 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/0.54, allocations: 0.8405 MB / 0.5312 GB, free: 82.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.5415, allocations: 0.6128 MB / 0.5318 GB, free: 82.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.5415, allocations: 0 / 0.5318 GB, free: 82.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003059/0.5446, allocations: 1.482 MB / 0.5333 GB, free: 82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.5446, allocations: 7.562 kB / 0.5333 GB, free: 82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.5447, allocations: 7.562 kB / 0.5333 GB, free: 82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.5447, allocations: 7.75 kB / 0.5333 GB, free: 82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/0.546, allocations: 230.1 kB / 0.5335 GB, free: 81.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.338e-05/0.5461, allocations: 15.53 kB / 0.5335 GB, free: 81.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000981/0.5471, allocations: 125.4 kB / 0.5336 GB, free: 81.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.079e-05/0.5471, allocations: 31.44 kB / 0.5337 GB, free: 81.95 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.0003104/0.5475, allocations: 188.8 kB / 0.5338 GB, free: 81.78 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002957/0.5478, allocations: 153.3 kB / 0.534 GB, free: 81.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001709/0.5479, allocations: 65.97 kB / 0.534 GB, free: 81.65 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.548, allocations: 7.656 kB / 0.5341 GB, free: 81.65 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/0.548, allocations: 0 / 0.5341 GB, free: 81.65 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.548, allocations: 7.547 kB / 0.5341 GB, free: 81.65 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004953/0.553, allocations: 2.306 MB / 0.5363 GB, free: 80.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.688e-05/0.553, allocations: 9.312 kB / 0.5363 GB, free: 80.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007005/0.5537, allocations: 202.4 kB / 0.5365 GB, free: 80.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.656e-05/0.5537, allocations: 19.36 kB / 0.5365 GB, free: 80.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.633e-05/0.5538, allocations: 31.62 kB / 0.5366 GB, free: 80.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.091e-05/0.5538, allocations: 15.72 kB / 0.5366 GB, free: 80.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.295e-06/0.5538, allocations: 16.83 kB / 0.5366 GB, free: 80.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002993/0.5568, allocations: 2.187 MB / 0.5387 GB, free: 77.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001758/0.557, allocations: 172.5 kB / 0.5389 GB, free: 77.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.091e-05/0.5571, allocations: 31.92 kB / 0.5389 GB, free: 77.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005545/0.5576, allocations: 99.94 kB / 0.539 GB, free: 77.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/0.5578, allocations: 105.9 kB / 0.5391 GB, free: 77.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.39e-05/0.5579, allocations: 35.95 kB / 0.5392 GB, free: 77.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001066/0.558, allocations: 148.3 kB / 0.5393 GB, free: 76.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.558, allocations: 0 / 0.5393 GB, free: 76.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006525/0.5586, allocations: 124 kB / 0.5394 GB, free: 76.83 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.0001631/0.5588, allocations: 138.9 kB / 0.5395 GB, free: 76.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002441/0.5613, allocations: 1.2 MB / 0.5407 GB, free: 75.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.5613, allocations: 15.72 kB / 0.5407 GB, free: 75.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009054/0.5622, allocations: 381.8 kB / 0.5411 GB, free: 75.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006099/0.5628, allocations: 129.2 kB / 0.5412 GB, free: 74.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002096/0.5649, allocations: 1.328 MB / 0.5425 GB, free: 73.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.5652, allocations: 0.8212 MB / 0.5433 GB, free: 72.65 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005684/0.5658, allocations: 91.36 kB / 0.5434 GB, free: 72.56 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002661/0.566, allocations: 35.44 kB / 0.5434 GB, free: 72.53 MB / 362.7 MB Notification: Performance of SimCode: time 7.92e-07/0.566, allocations: 0 / 0.5434 GB, free: 72.53 MB / 362.7 MB Notification: Performance of Templates: time 0.009833/0.5759, allocations: 7.305 MB / 0.5506 GB, free: 65.25 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.makefile (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 & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.T,PI.k,PI.y,angle.phi,gain.k,gain.y,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,speed.w,super.factor,super.inferFactor,time