Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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.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") [: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.002366/0.002366, allocations: 175.9 kB / 8.193 MB, free: 2.184 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.727/1.727, 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.001354/0.001354, allocations: 86.81 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.09508/0.09508, allocations: 12.58 MB / 322.3 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.919e-06/1.026e-05, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1038, allocations: 50.37 MB / 428.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3407/0.4446, allocations: 81.33 MB / 0.4981 GB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003249/0.445, allocations: 69.48 kB / 0.4982 GB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.06967/0.5147, allocations: 6.681 MB / 0.5047 GB, free: 10.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.658e-05/0.5148, allocations: 7.781 kB / 0.5047 GB, free: 10.43 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.002082/0.5169, allocations: 0.59 MB / 0.5053 GB, free: 9.945 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.5169, allocations: 11.59 kB / 0.5053 GB, free: 9.945 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001609/0.5171, allocations: 34.41 kB / 0.5053 GB, free: 9.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006106/0.5177, allocations: 266.7 kB / 0.5056 GB, free: 9.688 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003962/0.5182, allocations: 138.2 kB / 0.5057 GB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.5183, allocations: 18.84 kB / 0.5057 GB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001576/0.5199, allocations: 411.8 kB / 0.5061 GB, free: 9.543 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001527/0.5214, allocations: 467 kB / 0.5066 GB, free: 9.367 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.464e-05/0.5215, allocations: 3.984 kB / 0.5066 GB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.146e-05/0.5216, allocations: 0 / 0.5066 GB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/0.5216, allocations: 7.688 kB / 0.5066 GB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003097/0.5248, allocations: 0.9721 MB / 0.5075 GB, free: 8.688 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001819/0.5266, allocations: 370.7 kB / 0.5079 GB, free: 8.566 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006307/0.5273, allocations: 193.2 kB / 0.5081 GB, free: 8.527 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.223e-05/0.5274, allocations: 11.36 kB / 0.5081 GB, free: 8.527 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.5275, allocations: 42 kB / 0.5081 GB, free: 8.484 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 4.599e-06/0.5275, allocations: 0 / 0.5081 GB, free: 8.484 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.0172/0.5447, allocations: 2.027 MB / 0.5101 GB, free: 7.969 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.388e-05/0.5448, allocations: 149.5 kB / 0.5102 GB, free: 7.805 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002878/0.5451, allocations: 180.7 kB / 0.5104 GB, free: 7.688 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001125/0.5452, allocations: 29.64 kB / 0.5104 GB, free: 7.652 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.371e-05/0.5453, allocations: 195 kB / 0.5106 GB, free: 7.473 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002296/0.5456, allocations: 182.5 kB / 0.5108 GB, free: 7.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.5457, allocations: 0 / 0.5108 GB, free: 7.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.131e-05/0.5458, allocations: 338.5 kB / 0.5111 GB, free: 7.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001301/0.5471, allocations: 468 kB / 0.5116 GB, free: 7.012 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001381/0.5485, allocations: 0.6317 MB / 0.5122 GB, free: 6.785 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001129/0.5496, allocations: 419.4 kB / 0.5126 GB, free: 6.734 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.5497, allocations: 1.375 kB / 0.5126 GB, free: 6.734 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003041/0.5527, allocations: 1.053 MB / 0.5136 GB, free: 6.59 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.5528, allocations: 4.125 kB / 0.5136 GB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/0.5528, allocations: 6.875 kB / 0.5136 GB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.604e-05/0.5528, allocations: 9.625 kB / 0.5136 GB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002878/0.5557, allocations: 236.4 kB / 0.5139 GB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.386e-05/0.5558, allocations: 17.34 kB / 0.5139 GB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00205/0.5579, allocations: 120.3 kB / 0.514 GB, free: 6.477 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001597/0.558, allocations: 25.94 kB / 0.514 GB, free: 6.477 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.000321/0.5584, allocations: 47.86 kB / 0.5141 GB, free: 6.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005068/0.5589, allocations: 137.1 kB / 0.5142 GB, free: 6.371 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001507/0.5591, allocations: 38.08 kB / 0.5142 GB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.5591, allocations: 12.72 kB / 0.5143 GB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.565e-05/0.5591, allocations: 9.406 kB / 0.5143 GB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.5591, allocations: 9.312 kB / 0.5143 GB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006278/0.5654, allocations: 1.912 MB / 0.5161 GB, free: 5.266 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.181e-05/0.5655, allocations: 9.625 kB / 0.5161 GB, free: 5.266 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001764/0.5673, allocations: 206.7 kB / 0.5163 GB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.01e-05/0.5674, allocations: 19.56 kB / 0.5164 GB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.822e-05/0.5675, allocations: 17.16 kB / 0.5164 GB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.07e-05/0.5675, allocations: 21.53 kB / 0.5164 GB, free: 5.203 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-05/0.5675, allocations: 15.62 kB / 0.5164 GB, free: 5.199 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002675/0.5702, allocations: 1.707 MB / 0.5181 GB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003733/0.5706, allocations: 165.2 kB / 0.5182 GB, free: 3.656 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.5708, allocations: 16.58 kB / 0.5183 GB, free: 3.652 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001246/0.572, allocations: 100.3 kB / 0.5183 GB, free: 3.617 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003077/0.5723, allocations: 88.33 kB / 0.5184 GB, free: 3.578 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.239e-05/0.5724, allocations: 35.67 kB / 0.5185 GB, free: 3.574 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001847/0.5726, allocations: 137.3 kB / 0.5186 GB, free: 3.492 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009989/0.5737, allocations: 109.7 kB / 0.5187 GB, free: 3.484 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.0002299/0.5739, allocations: 125.9 kB / 0.5188 GB, free: 3.371 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002446/0.5764, allocations: 0.827 MB / 0.5196 GB, free: 3.316 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.731e-05/0.5764, allocations: 2.281 kB / 0.5196 GB, free: 3.316 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009041/0.5773, allocations: 220.9 kB / 0.5198 GB, free: 3.277 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001097/0.5785, allocations: 106.9 kB / 0.5199 GB, free: 3.258 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003331/0.5818, allocations: 0.9714 MB / 0.5209 GB, free: 2.535 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000979/0.5828, allocations: 0.8679 MB / 0.5217 GB, free: 1.773 MB / 330.7 MB Notification: Performance of SimCode: time 1.323e-06/0.5828, allocations: 0 / 0.5217 GB, free: 1.773 MB / 330.7 MB Notification: Performance of Templates: time 0.01678/0.5996, allocations: 6.971 MB / 0.5285 GB, free: 13.64 MB / 346.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/jenkins/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