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.001534/0.001539, allocations: 177.8 kB / 8.406 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.104/2.104, allocations: 205.3 MB / 214.1 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001105/0.001105, allocations: 82.7 kB / 262.1 MB, free: 1.68 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.09932/0.09932, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.188e-05/2.197e-05, allocations: 4 kB / 378.9 MB, free: 6.898 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3099, allocations: 50.36 MB / 429.3 MB, free: 18.4 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1397/0.4497, allocations: 81.5 MB / 0.4988 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002863/0.4501, allocations: 71.95 kB / 0.4989 GB, free: 0.7188 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03546/0.4855, allocations: 7.074 MB / 0.5058 GB, free: 9.637 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.527e-06/0.4856, allocations: 3.984 kB / 0.5058 GB, free: 9.633 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.596e-05/0.4856, allocations: 8 kB / 0.5058 GB, free: 9.625 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.001635/0.4873, allocations: 0.6074 MB / 0.5064 GB, free: 8.973 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.4873, allocations: 12.02 kB / 0.5064 GB, free: 8.961 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.4874, allocations: 43.53 kB / 0.5064 GB, free: 8.918 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005548/0.488, allocations: 286 kB / 0.5067 GB, free: 8.594 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002928/0.4883, allocations: 137.8 kB / 0.5068 GB, free: 8.441 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.205e-05/0.4884, allocations: 23.98 kB / 0.5069 GB, free: 8.418 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001179/0.4896, allocations: 405.4 kB / 0.5072 GB, free: 8.023 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.4908, allocations: 469.3 kB / 0.5077 GB, free: 7.535 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.4909, allocations: 3.938 kB / 0.5077 GB, free: 7.531 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.46e-05/0.4909, allocations: 0 / 0.5077 GB, free: 7.531 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.491, allocations: 8 kB / 0.5077 GB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002446/0.4934, allocations: 0.9909 MB / 0.5087 GB, free: 6.469 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/0.4949, allocations: 390.8 kB / 0.509 GB, free: 6.051 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004882/0.4954, allocations: 195.6 kB / 0.5092 GB, free: 5.848 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.633e-05/0.4955, allocations: 11.97 kB / 0.5092 GB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.447e-05/0.4956, allocations: 46.5 kB / 0.5093 GB, free: 5.781 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.036e-06/0.4956, allocations: 0 / 0.5093 GB, free: 5.781 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.01441/0.51, allocations: 2.03 MB / 0.5113 GB, free: 3.742 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/0.5102, allocations: 153.9 kB / 0.5114 GB, free: 3.559 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004097/0.5106, allocations: 226 kB / 0.5116 GB, free: 3.332 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001223/0.5107, allocations: 25.7 kB / 0.5117 GB, free: 3.301 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.5109, allocations: 208 kB / 0.5119 GB, free: 3.098 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002973/0.5112, allocations: 185.3 kB / 0.512 GB, free: 2.914 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.5113, allocations: 0 / 0.512 GB, free: 2.914 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.5115, allocations: 334.8 kB / 0.5124 GB, free: 2.578 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.5127, allocations: 469.5 kB / 0.5128 GB, free: 2.121 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/0.5142, allocations: 0.6291 MB / 0.5134 GB, free: 1.414 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/0.5153, allocations: 425.9 kB / 0.5138 GB, free: 1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.5153, allocations: 7.953 kB / 0.5138 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.2745/0.7899, allocations: 1.025 MB / 0.5148 GB, free: 89.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/0.79, allocations: 7.656 kB / 0.5148 GB, free: 89.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.862e-05/0.79, allocations: 5.906 kB / 0.5148 GB, free: 89.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.836e-05/0.79, allocations: 10.52 kB / 0.5149 GB, free: 89.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002776/0.7928, allocations: 225.1 kB / 0.5151 GB, free: 89.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.24e-05/0.7929, allocations: 16.89 kB / 0.5151 GB, free: 89.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001943/0.7949, allocations: 107 kB / 0.5152 GB, free: 89.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001707/0.7951, allocations: 28.69 kB / 0.5152 GB, free: 89.29 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.0003301/0.7954, allocations: 126.5 kB / 0.5153 GB, free: 89.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005108/0.7959, allocations: 145 kB / 0.5155 GB, free: 89.15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002459/0.7962, allocations: 58.86 kB / 0.5155 GB, free: 89.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-05/0.7962, allocations: 8.484 kB / 0.5155 GB, free: 89.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.7963, allocations: 1.656 kB / 0.5155 GB, free: 89.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.7963, allocations: 4.891 kB / 0.5155 GB, free: 89.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006615/0.8029, allocations: 1.916 MB / 0.5174 GB, free: 88.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.005e-05/0.803, allocations: 9.719 kB / 0.5174 GB, free: 88.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001576/0.8046, allocations: 203.5 kB / 0.5176 GB, free: 88.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.967e-05/0.8046, allocations: 15 kB / 0.5176 GB, free: 88.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.729e-05/0.8047, allocations: 15.3 kB / 0.5176 GB, free: 88.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.317e-05/0.8048, allocations: 23.72 kB / 0.5177 GB, free: 88.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.865e-05/0.8048, allocations: 16 kB / 0.5177 GB, free: 88.53 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002484/0.8073, allocations: 1.702 MB / 0.5193 GB, free: 87.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003971/0.8077, allocations: 187 kB / 0.5195 GB, free: 87.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.8078, allocations: 18.92 kB / 0.5195 GB, free: 87.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/0.809, allocations: 87.78 kB / 0.5196 GB, free: 87.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003718/0.8094, allocations: 108.2 kB / 0.5197 GB, free: 87.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-05/0.8095, allocations: 31.17 kB / 0.5198 GB, free: 87.04 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002604/0.8098, allocations: 178.9 kB / 0.5199 GB, free: 86.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.8098, allocations: 0 / 0.5199 GB, free: 86.96 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001104/0.8109, allocations: 103.8 kB / 0.52 GB, free: 86.96 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.0002146/0.8111, allocations: 121.9 kB / 0.5201 GB, free: 86.87 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002121/0.8133, allocations: 0.8247 MB / 0.5209 GB, free: 86.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.296e-05/0.8133, allocations: 0.9688 kB / 0.5209 GB, free: 86.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007754/0.8141, allocations: 216.8 kB / 0.5212 GB, free: 86.42 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.8152, allocations: 124 kB / 0.5213 GB, free: 86.39 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00324/0.8185, allocations: 1.01 MB / 0.5223 GB, free: 85.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004762/0.819, allocations: 0.8412 MB / 0.5231 GB, free: 84.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006283/0.8197, allocations: 42.05 kB / 0.5231 GB, free: 84.91 MB / 362.7 MB Notification: Performance of SimCode: time 1.452e-06/0.8197, allocations: 0 / 0.5231 GB, free: 84.91 MB / 362.7 MB Notification: Performance of Templates: time 0.01572/0.8354, allocations: 7.085 MB / 0.53 GB, free: 82.99 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.Ts,PI.k,PI.u,PI.x,PI.y,angle.flange.phi,angle.flange.tau,angle.phi,fastClock.factor,fastClock.resolution,fastClock.resolutionFactor,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.Ta1,kinematicPTP.Ta1s,kinematicPTP.Ta2,kinematicPTP.Ta2s,kinematicPTP.Te,kinematicPTP.Tes,kinematicPTP.Tv,kinematicPTP.Tvs,kinematicPTP.aux1[1],kinematicPTP.aux2[1],der(kinematicPTP.Ta1),der(kinematicPTP.Ta1s),der(kinematicPTP.Ta2),der(kinematicPTP.Ta2s),der(kinematicPTP.Te),der(kinematicPTP.Tv),der(kinematicPTP.Tvs),der(kinematicPTP.der(Ta1)),der(kinematicPTP.der(Ta1s)),der(kinematicPTP.der(Ta2)),der(kinematicPTP.der(Ta2s)),der(kinematicPTP.der(Te)),der(kinematicPTP.der(Tv)),der(kinematicPTP.der(Tvs)),der(kinematicPTP.der(s1)),der(kinematicPTP.der(s2)),der(kinematicPTP.der(s3)),der(kinematicPTP.der(sd_max)),der(kinematicPTP.der(sd_max2)),der(kinematicPTP.der(sdd_max)),der(kinematicPTP.s),der(kinematicPTP.s1),der(kinematicPTP.s2),der(kinematicPTP.s3),der(kinematicPTP.sd),der(kinematicPTP.sd_max),der(kinematicPTP.sd_max2),der(kinematicPTP.sdd_max),kinematicPTP.endTime,kinematicPTP.motion_ref,kinematicPTP.moving[1],kinematicPTP.noWphase,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[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd[1],kinematicPTP.qd_max[1],kinematicPTP.qdd[1],kinematicPTP.qdd_max[1],kinematicPTP.s,kinematicPTP.s1,kinematicPTP.s2,kinematicPTP.s3,kinematicPTP.sd,kinematicPTP.sd_max,kinematicPTP.sd_max2,kinematicPTP.sd_max_inv,kinematicPTP.sdd,kinematicPTP.sdd_max,kinematicPTP.sdd_max_inv,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.stateSelect,load.w,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,slowClock.factor,slowClock.resolution,slowClock.resolutionFactor,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.phi_support,torque.tau,torque.useSupport