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.001501/0.0015, allocations: 181 kB / 13.7 MB, free: 1.625 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.038/2.038, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001099/0.001099, allocations: 90.7 kB / 267.6 MB, free: 14.04 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.09758/0.09758, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.415e-05/3.419e-05, allocations: 4 kB / 386 MB, free: 1.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.3159, allocations: 50.38 MB / 436.3 MB, free: 14.14 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1426/0.4585, allocations: 82.15 MB / 0.5063 GB, free: 11.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/0.4589, allocations: 79.94 kB / 0.5064 GB, free: 11.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03477/0.4937, allocations: 7.131 MB / 0.5134 GB, free: 4.652 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4937, allocations: 0 / 0.5134 GB, free: 4.652 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.746e-05/0.4937, allocations: 8 kB / 0.5134 GB, free: 4.645 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001723/0.4955, allocations: 0.6035 MB / 0.514 GB, free: 3.996 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.4955, allocations: 8.031 kB / 0.514 GB, free: 3.988 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000149/0.4957, allocations: 47.53 kB / 0.514 GB, free: 3.941 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005651/0.4963, allocations: 290 kB / 0.5143 GB, free: 3.617 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003203/0.4966, allocations: 149.8 kB / 0.5145 GB, free: 3.453 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.946e-05/0.4967, allocations: 31.94 kB / 0.5145 GB, free: 3.422 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.4981, allocations: 0.5091 MB / 0.515 GB, free: 2.883 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.964e-05/0.4982, allocations: 0 / 0.515 GB, free: 2.883 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.407e-05/0.4982, allocations: 15.94 kB / 0.515 GB, free: 2.867 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.301e-05/0.4983, allocations: 4 kB / 0.515 GB, free: 2.863 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/0.4995, allocations: 419.8 kB / 0.5154 GB, free: 2.453 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002582/0.5021, allocations: 1.033 MB / 0.5164 GB, free: 1.344 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/0.5037, allocations: 419 kB / 0.5168 GB, free: 0.8984 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00055/0.5043, allocations: 211.3 kB / 0.517 GB, free: 0.6797 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.71e-05/0.5044, allocations: 8.156 kB / 0.517 GB, free: 0.6719 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.632e-05/0.5044, allocations: 42.55 kB / 0.5171 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.286e-06/0.5045, allocations: 0 / 0.5171 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.2875/0.792, allocations: 2.112 MB / 0.5191 GB, free: 86.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.7922, allocations: 146.5 kB / 0.5193 GB, free: 86.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004005/0.7926, allocations: 237.6 kB / 0.5195 GB, free: 85.97 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001467/0.7927, allocations: 37.55 kB / 0.5195 GB, free: 85.94 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.784e-05/0.7928, allocations: 206.8 kB / 0.5197 GB, free: 85.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002595/0.7931, allocations: 196.1 kB / 0.5199 GB, free: 85.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.7932, allocations: 13.03 kB / 0.5199 GB, free: 85.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.7933, allocations: 337.9 kB / 0.5202 GB, free: 85.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.7946, allocations: 485 kB / 0.5207 GB, free: 85.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001432/0.7961, allocations: 0.6481 MB / 0.5213 GB, free: 84.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00125/0.7974, allocations: 431.2 kB / 0.5217 GB, free: 84.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.7974, allocations: 4.719 kB / 0.5218 GB, free: 84.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003255/0.8007, allocations: 1.098 MB / 0.5228 GB, free: 84.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.8008, allocations: 7.875 kB / 0.5228 GB, free: 84.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.123e-05/0.8008, allocations: 5.344 kB / 0.5228 GB, free: 84.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.948e-05/0.8009, allocations: 10.06 kB / 0.5228 GB, free: 84.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002744/0.8036, allocations: 231.8 kB / 0.5231 GB, free: 84.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.48e-05/0.8037, allocations: 14.44 kB / 0.5231 GB, free: 84.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002009/0.8057, allocations: 121.6 kB / 0.5232 GB, free: 84.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001766/0.806, allocations: 32.42 kB / 0.5232 GB, free: 84.23 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 () * 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.0003513/0.8063, allocations: 146.4 kB / 0.5234 GB, free: 84.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000518/0.8068, allocations: 158.5 kB / 0.5235 GB, free: 84.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002391/0.8071, allocations: 71.7 kB / 0.5236 GB, free: 83.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.426e-05/0.8071, allocations: 8.406 kB / 0.5236 GB, free: 83.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.486e-05/0.8072, allocations: 0.9062 kB / 0.5236 GB, free: 83.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.8072, allocations: 5.328 kB / 0.5236 GB, free: 83.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006726/0.8139, allocations: 2.04 MB / 0.5256 GB, free: 82.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.686e-05/0.814, allocations: 11.31 kB / 0.5256 GB, free: 82.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001665/0.8157, allocations: 202.8 kB / 0.5258 GB, free: 82.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.46e-05/0.8158, allocations: 14.59 kB / 0.5258 GB, free: 82.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001149/0.8159, allocations: 32.75 kB / 0.5258 GB, free: 82.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-05/0.8159, allocations: 20.19 kB / 0.5259 GB, free: 82.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.512e-05/0.816, allocations: 17.16 kB / 0.5259 GB, free: 82.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002862/0.8188, allocations: 1.759 MB / 0.5276 GB, free: 81.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000421/0.8193, allocations: 180 kB / 0.5278 GB, free: 80.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.8195, allocations: 34.19 kB / 0.5278 GB, free: 80.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/0.8206, allocations: 104.8 kB / 0.5279 GB, free: 80.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003763/0.821, allocations: 112.3 kB / 0.528 GB, free: 80.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.036e-05/0.8211, allocations: 33.44 kB / 0.528 GB, free: 80.83 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002883/0.8214, allocations: 189.3 kB / 0.5282 GB, free: 80.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8214, allocations: 0 / 0.5282 GB, free: 80.72 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001068/0.8225, allocations: 127.7 kB / 0.5283 GB, free: 80.7 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 () * 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.0002257/0.8228, allocations: 133.9 kB / 0.5285 GB, free: 80.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002244/0.825, allocations: 0.8667 MB / 0.5293 GB, free: 80.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.335e-05/0.8251, allocations: 1.438 kB / 0.5293 GB, free: 80.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008334/0.8259, allocations: 236.3 kB / 0.5295 GB, free: 80.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.827, allocations: 137.3 kB / 0.5297 GB, free: 80.03 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003042/0.83, allocations: 1.06 MB / 0.5307 GB, free: 79.22 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003773/0.8305, allocations: 0.8391 MB / 0.5315 GB, free: 78.51 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006424/0.8311, allocations: 45.48 kB / 0.5316 GB, free: 78.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.183e-06/0.8311, allocations: 0 / 0.5316 GB, free: 78.5 MB / 362.7 MB Notification: Performance of Templates: time 0.01529/0.8464, allocations: 7.111 MB / 0.5385 GB, free: 74.44 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