Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,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.AbsoluteClocks") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,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.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001517/0.001516, allocations: 186.2 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.956/1.956, 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.001122/0.001122, allocations: 88.41 kB / 270.9 MB, free: 8.379 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.09903/0.09903, allocations: 12.6 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005578/0.0005577, allocations: 12 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08925/0.08984, allocations: 50.37 MB / 442.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4311/0.5209, allocations: 82.24 MB / 0.5123 GB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/0.5213, allocations: 78.7 kB / 0.5124 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0314/0.5527, allocations: 7.138 MB / 0.5193 GB, free: 8.332 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5528, allocations: 0 / 0.5193 GB, free: 8.332 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.384e-05/0.5528, allocations: 8 kB / 0.5193 GB, free: 8.324 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001619/0.5544, allocations: 0.6401 MB / 0.52 GB, free: 7.66 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.5545, allocations: 8.031 kB / 0.52 GB, free: 7.652 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.5546, allocations: 47.16 kB / 0.52 GB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004623/0.5551, allocations: 290.6 kB / 0.5203 GB, free: 7.309 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002619/0.5554, allocations: 144 kB / 0.5204 GB, free: 7.164 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.098e-05/0.5555, allocations: 31.69 kB / 0.5205 GB, free: 7.141 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001916/0.5574, allocations: 0.5769 MB / 0.521 GB, free: 6.684 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.984e-05/0.5575, allocations: 0 / 0.521 GB, free: 6.684 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.342e-05/0.5575, allocations: 12.62 kB / 0.521 GB, free: 6.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.5576, allocations: 15.98 kB / 0.5211 GB, free: 6.664 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002526/0.5601, allocations: 0.5533 MB / 0.5216 GB, free: 6.238 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002211/0.5623, allocations: 1.035 MB / 0.5226 GB, free: 5.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002488/0.5649, allocations: 0.5017 MB / 0.5231 GB, free: 4.895 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001161/0.565, allocations: 7.953 kB / 0.5231 GB, free: 4.887 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.272e-05/0.5651, allocations: 53.95 kB / 0.5232 GB, free: 4.832 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 3.987e-06/0.5651, allocations: 0 / 0.5232 GB, free: 4.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.07909/0.6442, allocations: 6.787 MB / 0.5298 GB, free: 14.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001466/0.6444, allocations: 158.4 kB / 0.5299 GB, free: 14.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004223/0.6448, allocations: 242.7 kB / 0.5302 GB, free: 14.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001766/0.645, allocations: 39.7 kB / 0.5302 GB, free: 14.33 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.6452, allocations: 202.1 kB / 0.5304 GB, free: 14.14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002959/0.6455, allocations: 202.5 kB / 0.5306 GB, free: 13.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.6456, allocations: 12.62 kB / 0.5306 GB, free: 13.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.6458, allocations: 338.8 kB / 0.5309 GB, free: 13.65 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003177/0.649, allocations: 0.6567 MB / 0.5316 GB, free: 13.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003387/0.6524, allocations: 0.8353 MB / 0.5324 GB, free: 12.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003077/0.6555, allocations: 0.6155 MB / 0.533 GB, free: 12.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/0.6556, allocations: 0 / 0.533 GB, free: 12.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.007016/0.6626, allocations: 1.472 MB / 0.5344 GB, free: 11.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.631e-05/0.6627, allocations: 8 kB / 0.5344 GB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.031e-05/0.6628, allocations: 8 kB / 0.5344 GB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.128e-05/0.6628, allocations: 8 kB / 0.5344 GB, free: 11.15 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002692/0.6655, allocations: 235.1 kB / 0.5347 GB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.914e-05/0.6656, allocations: 11.94 kB / 0.5347 GB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/0.6675, allocations: 126.2 kB / 0.5348 GB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/0.6677, allocations: 27.69 kB / 0.5348 GB, free: 10.78 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.0005208/0.6682, allocations: 198.9 kB / 0.535 GB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005175/0.6687, allocations: 158.7 kB / 0.5352 GB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002682/0.669, allocations: 65.41 kB / 0.5352 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.669, allocations: 8 kB / 0.5352 GB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.6691, allocations: 0 / 0.5352 GB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.865e-05/0.6691, allocations: 11.97 kB / 0.5352 GB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009305/0.6784, allocations: 2.327 MB / 0.5375 GB, free: 8.371 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.128e-05/0.6785, allocations: 16.25 kB / 0.5375 GB, free: 8.355 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/0.6801, allocations: 199.3 kB / 0.5377 GB, free: 8.164 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.67e-05/0.6802, allocations: 20 kB / 0.5377 GB, free: 8.145 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.916e-05/0.6803, allocations: 30.25 kB / 0.5378 GB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.513e-05/0.6803, allocations: 19.92 kB / 0.5378 GB, free: 8.105 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.862e-05/0.6803, allocations: 15.94 kB / 0.5378 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006648/0.687, allocations: 2.189 MB / 0.5399 GB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005049/0.6875, allocations: 182 kB / 0.5401 GB, free: 5.656 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/0.6877, allocations: 26.94 kB / 0.5401 GB, free: 5.641 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.6888, allocations: 99.34 kB / 0.5402 GB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000359/0.6892, allocations: 110.2 kB / 0.5403 GB, free: 5.457 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.495e-05/0.6893, allocations: 35.38 kB / 0.5404 GB, free: 5.43 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000327/0.6897, allocations: 191.2 kB / 0.5406 GB, free: 5.273 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.6897, allocations: 3.938 kB / 0.5406 GB, free: 5.27 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001059/0.6907, allocations: 122 kB / 0.5407 GB, free: 5.168 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.0002597/0.691, allocations: 141.4 kB / 0.5408 GB, free: 5.035 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005602/0.6966, allocations: 1.196 MB / 0.542 GB, free: 4.215 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.66e-05/0.6967, allocations: 8.062 kB / 0.542 GB, free: 4.207 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002193/0.6989, allocations: 378.5 kB / 0.5424 GB, free: 3.895 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.7001, allocations: 130.7 kB / 0.5425 GB, free: 3.797 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004558/0.7046, allocations: 1.452 MB / 0.5439 GB, free: 2.324 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006964/0.7054, allocations: 0.8404 MB / 0.5447 GB, free: 1.457 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006577/0.7061, allocations: 55.11 kB / 0.5448 GB, free: 1.406 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/0.7061, allocations: 0 / 0.5448 GB, free: 1.406 MB / 346.7 MB Notification: Performance of Templates: time 0.02448/0.7306, allocations: 7.132 MB / 0.5517 GB, free: 10.31 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.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,fastClock.factor,fastClock.resolution,fastClock.useSolver,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,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,slowClock.factor,slowClock.resolution,slowClock.useSolver,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