Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001658/0.001658, allocations: 172.4 kB / 8.19 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.982/1.982, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001284/0.001284, allocations: 95.64 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1033/0.1033, allocations: 12.59 MB / 322.3 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.376e-06/8.496e-06, allocations: 0 / 378.4 MB, free: 76.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1194, allocations: 50.36 MB / 428.7 MB, free: 25.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3594/0.479, allocations: 81.42 MB / 0.4982 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.4793, allocations: 71.91 kB / 0.4983 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.0307/0.51, allocations: 6.757 MB / 0.5049 GB, free: 10.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.49e-05/0.5101, allocations: 7.75 kB / 0.5049 GB, free: 10.41 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.001562/0.5116, allocations: 0.6172 MB / 0.5055 GB, free: 9.91 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.5117, allocations: 7.719 kB / 0.5055 GB, free: 9.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.5118, allocations: 42.59 kB / 0.5055 GB, free: 9.891 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005007/0.5124, allocations: 308.8 kB / 0.5058 GB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002788/0.5126, allocations: 130.5 kB / 0.5059 GB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.148e-05/0.5127, allocations: 19.06 kB / 0.506 GB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001141/0.5139, allocations: 414.2 kB / 0.5064 GB, free: 9.488 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.515, allocations: 458.9 kB / 0.5068 GB, free: 9.316 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.439e-05/0.515, allocations: 7.062 kB / 0.5068 GB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.651e-05/0.5151, allocations: 0 / 0.5068 GB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.5151, allocations: 7.406 kB / 0.5068 GB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00217/0.5173, allocations: 1.001 MB / 0.5078 GB, free: 8.625 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/0.5186, allocations: 362.3 kB / 0.5081 GB, free: 8.508 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005276/0.5192, allocations: 194.3 kB / 0.5083 GB, free: 8.465 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.05e-05/0.5193, allocations: 12.52 kB / 0.5083 GB, free: 8.465 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.5193, allocations: 45.19 kB / 0.5084 GB, free: 8.418 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 2.996e-06/0.5193, allocations: 0 / 0.5084 GB, free: 8.418 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.01573/0.5351, allocations: 2.066 MB / 0.5104 GB, free: 7.867 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.916e-05/0.5352, allocations: 142.6 kB / 0.5105 GB, free: 7.707 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003894/0.5356, allocations: 229.7 kB / 0.5107 GB, free: 7.586 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.5358, allocations: 30.42 kB / 0.5108 GB, free: 7.555 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.444e-05/0.5358, allocations: 192.9 kB / 0.511 GB, free: 7.375 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002426/0.5361, allocations: 189.1 kB / 0.5111 GB, free: 7.234 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.5362, allocations: 0 / 0.5111 GB, free: 7.234 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.641e-05/0.5363, allocations: 339 kB / 0.5115 GB, free: 6.914 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/0.5376, allocations: 466.2 kB / 0.5119 GB, free: 6.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.5391, allocations: 0.6283 MB / 0.5125 GB, free: 6.688 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.5402, allocations: 425.3 kB / 0.5129 GB, free: 6.629 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.5402, allocations: 3.188 kB / 0.5129 GB, free: 6.629 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003047/0.5433, allocations: 1.044 MB / 0.5139 GB, free: 6.488 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.5434, allocations: 9.484 kB / 0.5139 GB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/0.5434, allocations: 5.5 kB / 0.514 GB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.628e-05/0.5434, allocations: 9.625 kB / 0.514 GB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002836/0.5463, allocations: 236.3 kB / 0.5142 GB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.396e-05/0.5463, allocations: 13.28 kB / 0.5142 GB, free: 6.418 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002081/0.5484, allocations: 116.7 kB / 0.5143 GB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001734/0.5486, allocations: 28 kB / 0.5143 GB, free: 6.375 MB / 330.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.0003209/0.549, allocations: 52.55 kB / 0.5144 GB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005305/0.5495, allocations: 150.1 kB / 0.5145 GB, free: 6.254 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001762/0.5497, allocations: 45.02 kB / 0.5146 GB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/0.5497, allocations: 8.531 kB / 0.5146 GB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/0.5498, allocations: 1.188 kB / 0.5146 GB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.5498, allocations: 5.203 kB / 0.5146 GB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006438/0.5562, allocations: 1.924 MB / 0.5165 GB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.247e-05/0.5563, allocations: 11.09 kB / 0.5165 GB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001688/0.558, allocations: 211.1 kB / 0.5167 GB, free: 5.102 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.893e-05/0.558, allocations: 23.48 kB / 0.5167 GB, free: 5.094 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.735e-05/0.5581, allocations: 18.44 kB / 0.5167 GB, free: 5.094 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-05/0.5582, allocations: 21.23 kB / 0.5167 GB, free: 5.086 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.681e-05/0.5582, allocations: 15.94 kB / 0.5168 GB, free: 5.082 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002572/0.5608, allocations: 1.713 MB / 0.5184 GB, free: 3.664 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004099/0.5612, allocations: 183.3 kB / 0.5186 GB, free: 3.523 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.5614, allocations: 21.23 kB / 0.5186 GB, free: 3.516 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001242/0.5626, allocations: 92.48 kB / 0.5187 GB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003338/0.563, allocations: 96.47 kB / 0.5188 GB, free: 3.441 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.69e-05/0.5631, allocations: 32.78 kB / 0.5188 GB, free: 3.441 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002755/0.5634, allocations: 178 kB / 0.519 GB, free: 3.352 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001051/0.5644, allocations: 106.5 kB / 0.5191 GB, free: 3.348 MB / 330.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.0002162/0.5647, allocations: 129.6 kB / 0.5192 GB, free: 3.234 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002462/0.5671, allocations: 0.8326 MB / 0.52 GB, free: 3.184 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.807e-05/0.5672, allocations: 1 kB / 0.52 GB, free: 3.184 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008804/0.5681, allocations: 216.8 kB / 0.5203 GB, free: 3.148 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.5693, allocations: 113.9 kB / 0.5204 GB, free: 3.125 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003595/0.5729, allocations: 1.032 MB / 0.5214 GB, free: 2.363 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001049/0.574, allocations: 0.8908 MB / 0.5222 GB, free: 1.59 MB / 330.7 MB Notification: Performance of SimCode: time 1.462e-06/0.574, allocations: 0 / 0.5222 GB, free: 1.59 MB / 330.7 MB Notification: Performance of Templates: time 0.01751/0.5915, allocations: 7.147 MB / 0.5292 GB, free: 13 MB / 346.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/jenkins/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