Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.001482/0.001481, allocations: 186.1 kB / 16.44 MB, free: 5.672 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.962/1.962, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.001097/0.001097, allocations: 84.48 kB / 270.9 MB, free: 8.383 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.09937/0.09937, allocations: 12.59 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005934/0.0005933, allocations: 12 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08524/0.08586, allocations: 50.37 MB / 442.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4264/0.5123, allocations: 82.01 MB / 0.5121 GB, free: 12.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/0.5127, allocations: 76.7 kB / 0.5121 GB, free: 12.06 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02748/0.5402, allocations: 6.451 MB / 0.5184 GB, free: 9.078 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5402, allocations: 0 / 0.5184 GB, free: 9.078 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.5402, allocations: 4 kB / 0.5184 GB, free: 9.074 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.001482/0.5417, allocations: 0.594 MB / 0.519 GB, free: 8.453 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.5418, allocations: 12.03 kB / 0.519 GB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.625e-05/0.5419, allocations: 35.62 kB / 0.5191 GB, free: 8.406 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.5423, allocations: 263.6 kB / 0.5193 GB, free: 8.129 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002521/0.5425, allocations: 147.9 kB / 0.5195 GB, free: 7.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.813e-05/0.5426, allocations: 28.62 kB / 0.5195 GB, free: 7.961 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00176/0.5444, allocations: 0.5516 MB / 0.52 GB, free: 7.512 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.535e-05/0.5444, allocations: 7.375 kB / 0.52 GB, free: 7.508 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.82e-05/0.5445, allocations: 7.062 kB / 0.52 GB, free: 7.508 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.5445, allocations: 12 kB / 0.52 GB, free: 7.496 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002422/0.547, allocations: 0.5555 MB / 0.5206 GB, free: 7.07 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001979/0.549, allocations: 1.007 MB / 0.5216 GB, free: 6.172 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0024/0.5514, allocations: 0.4966 MB / 0.5221 GB, free: 5.746 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.547e-05/0.5515, allocations: 11.5 kB / 0.5221 GB, free: 5.742 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.5515, allocations: 42.38 kB / 0.5221 GB, free: 5.695 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 3.797e-06/0.5515, allocations: 0 / 0.5221 GB, free: 5.695 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.07817/0.6297, allocations: 6.772 MB / 0.5287 GB, free: 15.64 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/0.6299, allocations: 156.4 kB / 0.5289 GB, free: 15.46 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003166/0.6302, allocations: 181.9 kB / 0.529 GB, free: 15.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001398/0.6304, allocations: 40.52 kB / 0.5291 GB, free: 15.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.6305, allocations: 197.1 kB / 0.5293 GB, free: 15.08 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002927/0.6308, allocations: 194.9 kB / 0.5295 GB, free: 14.92 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.631, allocations: 13 kB / 0.5295 GB, free: 14.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.6311, allocations: 342.6 kB / 0.5298 GB, free: 14.58 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003162/0.6343, allocations: 0.6586 MB / 0.5304 GB, free: 14.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003336/0.6377, allocations: 0.8341 MB / 0.5312 GB, free: 13.51 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003008/0.6408, allocations: 0.6133 MB / 0.5318 GB, free: 13.11 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/0.6408, allocations: 0 / 0.5318 GB, free: 13.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.006839/0.6477, allocations: 1.472 MB / 0.5333 GB, free: 12.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.665e-05/0.6478, allocations: 8 kB / 0.5333 GB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.414e-05/0.6478, allocations: 11.98 kB / 0.5333 GB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.115e-05/0.6478, allocations: 8 kB / 0.5333 GB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002754/0.6506, allocations: 238.1 kB / 0.5335 GB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.327e-05/0.6507, allocations: 11.95 kB / 0.5336 GB, free: 11.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001909/0.6526, allocations: 130.5 kB / 0.5337 GB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/0.6528, allocations: 23.75 kB / 0.5337 GB, free: 11.71 MB / 346.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.0004749/0.6532, allocations: 190.9 kB / 0.5339 GB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004817/0.6537, allocations: 152.2 kB / 0.534 GB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002117/0.654, allocations: 65.23 kB / 0.5341 GB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.654, allocations: 8 kB / 0.5341 GB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.654, allocations: 0 / 0.5341 GB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.644e-05/0.654, allocations: 11.94 kB / 0.5341 GB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008813/0.6629, allocations: 2.292 MB / 0.5363 GB, free: 9.344 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.388e-05/0.6629, allocations: 20.05 kB / 0.5364 GB, free: 9.324 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001519/0.6645, allocations: 199.6 kB / 0.5366 GB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.514e-05/0.6645, allocations: 16 kB / 0.5366 GB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.652e-05/0.6646, allocations: 30.88 kB / 0.5366 GB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.316e-05/0.6646, allocations: 19.92 kB / 0.5366 GB, free: 9.078 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.669e-05/0.6647, allocations: 15.94 kB / 0.5366 GB, free: 9.062 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006523/0.6712, allocations: 2.191 MB / 0.5388 GB, free: 6.797 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003425/0.6716, allocations: 165.4 kB / 0.5389 GB, free: 6.637 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.6717, allocations: 24.88 kB / 0.539 GB, free: 6.621 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.6728, allocations: 102.1 kB / 0.5391 GB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003264/0.6732, allocations: 109 kB / 0.5392 GB, free: 6.441 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.658e-05/0.6733, allocations: 31.38 kB / 0.5392 GB, free: 6.414 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002057/0.6735, allocations: 145.3 kB / 0.5393 GB, free: 6.289 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6735, allocations: 0 / 0.5393 GB, free: 6.289 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009478/0.6744, allocations: 129 kB / 0.5394 GB, free: 6.184 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 () * 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.0002419/0.6747, allocations: 141.4 kB / 0.5396 GB, free: 6.051 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005398/0.6801, allocations: 1.205 MB / 0.5408 GB, free: 5.227 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.564e-05/0.6802, allocations: 4 kB / 0.5408 GB, free: 5.223 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002092/0.6823, allocations: 380 kB / 0.5411 GB, free: 4.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009421/0.6832, allocations: 121.7 kB / 0.5412 GB, free: 4.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003966/0.6872, allocations: 1.37 MB / 0.5426 GB, free: 3.426 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005145/0.6878, allocations: 0.8168 MB / 0.5434 GB, free: 2.582 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006161/0.6884, allocations: 46.98 kB / 0.5434 GB, free: 2.539 MB / 346.7 MB Notification: Performance of SimCode: time 1.262e-06/0.6884, allocations: 4 kB / 0.5434 GB, free: 2.535 MB / 346.7 MB Notification: Performance of Templates: time 0.01604/0.7045, allocations: 6.915 MB / 0.5502 GB, free: 11.64 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.mat","../files/Modelica_Synchronous_cpp_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.u,PI.x,PI.y,angle.flange.phi,angle.flange.tau,angle.phi,feedback1.u1,feedback1.u2,feedback1.y,feedback2.u1,feedback2.u2,feedback2.y,gain.k,gain.u,gain.y,hold1.u,hold1.y,hold1.y_start,kinematicPTP.endTime,kinematicPTP.moving[1],kinematicPTP.nout,kinematicPTP.q[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd[1],kinematicPTP.qd_max[1],kinematicPTP.qdd[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.a,der(load.w),load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.w,periodicRealClock.period,periodicRealClock.useSolver,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,der(speed.flange.phi),speed.flange.phi,speed.flange.tau,speed.w,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau