Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,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.SubClocked") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,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.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002216/0.002216, allocations: 179.4 kB / 8.407 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.073/2.073, allocations: 205.3 MB / 214.1 MB, free: 1.73 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.001091/0.00109, allocations: 90.66 kB / 262.2 MB, free: 1.676 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.1004/0.1004, allocations: 12.6 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.856e-05/1.848e-05, allocations: 0 / 378.9 MB, free: 6.902 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3116, allocations: 50.37 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1469/0.4586, allocations: 81.41 MB / 0.4987 GB, free: 0.8945 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/0.4589, allocations: 75.95 kB / 0.4988 GB, free: 0.8203 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03405/0.493, allocations: 7.002 MB / 0.5056 GB, free: 9.809 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.493, allocations: 0 / 0.5056 GB, free: 9.809 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.59e-05/0.4931, allocations: 11.98 kB / 0.5056 GB, free: 9.797 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001578/0.4947, allocations: 0.5763 MB / 0.5062 GB, free: 9.176 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.4947, allocations: 12.03 kB / 0.5062 GB, free: 9.164 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.4948, allocations: 35.62 kB / 0.5062 GB, free: 9.129 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004887/0.4953, allocations: 264.7 kB / 0.5065 GB, free: 8.828 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002876/0.4956, allocations: 137.8 kB / 0.5066 GB, free: 8.676 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.651e-05/0.4957, allocations: 19.91 kB / 0.5066 GB, free: 8.656 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001179/0.4969, allocations: 417.4 kB / 0.507 GB, free: 8.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/0.4981, allocations: 467.8 kB / 0.5075 GB, free: 7.762 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/0.4981, allocations: 3.984 kB / 0.5075 GB, free: 7.758 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.491e-05/0.4982, allocations: 4 kB / 0.5075 GB, free: 7.754 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.4982, allocations: 4 kB / 0.5075 GB, free: 7.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002206/0.5004, allocations: 0.9674 MB / 0.5084 GB, free: 6.715 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00139/0.5018, allocations: 386.9 kB / 0.5088 GB, free: 6.301 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004787/0.5023, allocations: 195.4 kB / 0.509 GB, free: 6.098 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.067e-05/0.5024, allocations: 8.141 kB / 0.509 GB, free: 6.09 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.5025, allocations: 46.5 kB / 0.509 GB, free: 6.035 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.226e-06/0.5025, allocations: 0 / 0.509 GB, free: 6.035 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.01408/0.5166, allocations: 1.992 MB / 0.511 GB, free: 4.039 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.5167, allocations: 144.9 kB / 0.5111 GB, free: 3.867 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.517, allocations: 175.4 kB / 0.5113 GB, free: 3.688 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001087/0.5172, allocations: 25.7 kB / 0.5113 GB, free: 3.656 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.5173, allocations: 204 kB / 0.5115 GB, free: 3.457 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002829/0.5176, allocations: 181.4 kB / 0.5117 GB, free: 3.277 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.5177, allocations: 0 / 0.5117 GB, free: 3.277 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.5179, allocations: 346.9 kB / 0.512 GB, free: 2.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.5191, allocations: 465.5 kB / 0.5125 GB, free: 2.477 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001323/0.5204, allocations: 0.633 MB / 0.5131 GB, free: 1.766 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.5215, allocations: 418 kB / 0.5135 GB, free: 1.359 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.298e-06/0.5215, allocations: 7.953 kB / 0.5135 GB, free: 1.352 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002798/0.5243, allocations: 1.026 MB / 0.5145 GB, free: 328 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.5244, allocations: 8 kB / 0.5145 GB, free: 320 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/0.5244, allocations: 8 kB / 0.5145 GB, free: 312 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.413e-05/0.5245, allocations: 8 kB / 0.5145 GB, free: 304 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002525/0.527, allocations: 236 kB / 0.5147 GB, free: 68 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.745e-05/0.5271, allocations: 11.94 kB / 0.5147 GB, free: 56 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2709/0.798, allocations: 109.1 kB / 0.5149 GB, free: 90.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001604/0.7982, allocations: 27.75 kB / 0.5149 GB, free: 90.07 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.0003302/0.7985, allocations: 119.8 kB / 0.515 GB, free: 89.97 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004886/0.799, allocations: 142.1 kB / 0.5151 GB, free: 89.94 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002329/0.7993, allocations: 54.11 kB / 0.5152 GB, free: 89.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/0.7993, allocations: 7.625 kB / 0.5152 GB, free: 89.93 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.7993, allocations: 0.9688 kB / 0.5152 GB, free: 89.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.7994, allocations: 6.438 kB / 0.5152 GB, free: 89.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006379/0.8058, allocations: 1.893 MB / 0.517 GB, free: 89.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.247e-05/0.8058, allocations: 17.86 kB / 0.5171 GB, free: 89.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001565/0.8074, allocations: 203.5 kB / 0.5173 GB, free: 89.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.141e-05/0.8075, allocations: 15.56 kB / 0.5173 GB, free: 89.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.639e-05/0.8076, allocations: 18.06 kB / 0.5173 GB, free: 89.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.503e-05/0.8076, allocations: 20.22 kB / 0.5173 GB, free: 89.31 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.065e-05/0.8076, allocations: 15.53 kB / 0.5173 GB, free: 89.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002464/0.8101, allocations: 1.707 MB / 0.519 GB, free: 87.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000337/0.8105, allocations: 164.5 kB / 0.5191 GB, free: 87.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.8106, allocations: 17.22 kB / 0.5192 GB, free: 87.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.8117, allocations: 87.28 kB / 0.5192 GB, free: 87.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003384/0.8121, allocations: 106.8 kB / 0.5193 GB, free: 87.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.02e-05/0.8122, allocations: 30.64 kB / 0.5194 GB, free: 87.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001789/0.8124, allocations: 139.4 kB / 0.5195 GB, free: 87.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.8124, allocations: 0 / 0.5195 GB, free: 87.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001025/0.8134, allocations: 104.3 kB / 0.5196 GB, free: 87.73 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.0002158/0.8136, allocations: 139.4 kB / 0.5197 GB, free: 87.61 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002074/0.8157, allocations: 0.8187 MB / 0.5205 GB, free: 87.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/0.8158, allocations: 1.469 kB / 0.5205 GB, free: 87.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007637/0.8165, allocations: 224.5 kB / 0.5208 GB, free: 87.12 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009534/0.8175, allocations: 102.9 kB / 0.5209 GB, free: 87.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002781/0.8203, allocations: 0.9613 MB / 0.5218 GB, free: 86.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004633/0.8208, allocations: 0.8216 MB / 0.5226 GB, free: 85.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006355/0.8215, allocations: 40.38 kB / 0.5226 GB, free: 85.62 MB / 362.7 MB Notification: Performance of SimCode: time 1.212e-06/0.8215, allocations: 0.5625 kB / 0.5226 GB, free: 85.62 MB / 362.7 MB Notification: Performance of Templates: time 0.01578/0.8373, allocations: 6.904 MB / 0.5294 GB, free: 83.95 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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,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,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,subSample1.factor,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.tau,torque.useSupport