Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,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.SuperSampled") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,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.SuperSampled") [: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.001644/0.001648, allocations: 174 kB / 8.187 MB, free: 2.176 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.929/1.929, allocations: 205.2 MB / 213.8 MB, free: 13.91 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.001254/0.001254, allocations: 88.98 kB / 261.8 MB, free: 13.61 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.09872/0.09872, allocations: 12.59 MB / 322.3 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.089e-05/1.113e-05, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09643/0.09647, allocations: 50.38 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3102/0.4068, allocations: 81.18 MB / 0.498 GB, free: 11.6 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.4071, allocations: 77.59 kB / 0.498 GB, free: 11.6 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02693/0.434, allocations: 6.065 MB / 0.504 GB, free: 10.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.634e-05/0.4341, allocations: 3.844 kB / 0.504 GB, free: 10.68 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001443/0.4355, allocations: 0.5822 MB / 0.5045 GB, free: 10.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.4356, allocations: 11.69 kB / 0.5045 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.418e-05/0.4357, allocations: 34.84 kB / 0.5046 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004042/0.4361, allocations: 264.9 kB / 0.5048 GB, free: 9.941 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002744/0.4364, allocations: 139.7 kB / 0.505 GB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.04e-05/0.4365, allocations: 15.12 kB / 0.505 GB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00106/0.4376, allocations: 410.8 kB / 0.5054 GB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000969/0.4385, allocations: 443.3 kB / 0.5058 GB, free: 9.621 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.4386, allocations: 3.906 kB / 0.5058 GB, free: 9.617 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.621e-05/0.4386, allocations: 0 / 0.5058 GB, free: 9.617 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.4387, allocations: 7.844 kB / 0.5058 GB, free: 9.617 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002003/0.4407, allocations: 0.979 MB / 0.5068 GB, free: 8.938 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.4419, allocations: 362.9 kB / 0.5071 GB, free: 8.824 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004213/0.4424, allocations: 196.2 kB / 0.5073 GB, free: 8.785 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.731e-05/0.4424, allocations: 7.828 kB / 0.5073 GB, free: 8.781 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.4425, allocations: 46.94 kB / 0.5073 GB, free: 8.734 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 2.084e-06/0.4425, allocations: 0 / 0.5073 GB, free: 8.734 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.01506/0.4576, allocations: 2.023 MB / 0.5093 GB, free: 8.223 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.903e-05/0.4577, allocations: 146.7 kB / 0.5095 GB, free: 8.059 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000248/0.4579, allocations: 173.9 kB / 0.5096 GB, free: 7.949 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.458, allocations: 26.83 kB / 0.5097 GB, free: 7.918 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.949e-05/0.4581, allocations: 200.6 kB / 0.5098 GB, free: 7.734 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002136/0.4583, allocations: 180.3 kB / 0.51 GB, free: 7.602 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.4584, allocations: 0 / 0.51 GB, free: 7.602 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.815e-05/0.4585, allocations: 341.8 kB / 0.5103 GB, free: 7.277 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.4598, allocations: 468.9 kB / 0.5108 GB, free: 7.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001382/0.4612, allocations: 0.636 MB / 0.5114 GB, free: 7.039 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/0.4623, allocations: 415.8 kB / 0.5118 GB, free: 6.992 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.4623, allocations: 5.312 kB / 0.5118 GB, free: 6.988 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002985/0.4653, allocations: 1.051 MB / 0.5128 GB, free: 6.848 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.4654, allocations: 7.5 kB / 0.5128 GB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-05/0.4654, allocations: 5.688 kB / 0.5129 GB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.624e-05/0.4654, allocations: 11.19 kB / 0.5129 GB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00276/0.4682, allocations: 237.6 kB / 0.5131 GB, free: 6.781 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.017e-05/0.4682, allocations: 20.95 kB / 0.5131 GB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001912/0.4702, allocations: 116.1 kB / 0.5132 GB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/0.4703, allocations: 29.7 kB / 0.5132 GB, free: 6.723 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.0002975/0.4706, allocations: 47.67 kB / 0.5133 GB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004649/0.4711, allocations: 136.6 kB / 0.5134 GB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001496/0.4713, allocations: 39.08 kB / 0.5135 GB, free: 6.609 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.4713, allocations: 8.312 kB / 0.5135 GB, free: 6.609 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.539e-05/0.4713, allocations: 5.062 kB / 0.5135 GB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.4714, allocations: 9.266 kB / 0.5135 GB, free: 6.598 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006044/0.4774, allocations: 1.896 MB / 0.5153 GB, free: 5.535 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.942e-05/0.4775, allocations: 14.88 kB / 0.5153 GB, free: 5.531 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00162/0.4791, allocations: 214.2 kB / 0.5156 GB, free: 5.477 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-05/0.4791, allocations: 16.09 kB / 0.5156 GB, free: 5.477 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.379e-05/0.4792, allocations: 17.06 kB / 0.5156 GB, free: 5.473 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.039e-05/0.4793, allocations: 22.05 kB / 0.5156 GB, free: 5.465 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-05/0.4793, allocations: 15.47 kB / 0.5156 GB, free: 5.461 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002399/0.4817, allocations: 1.706 MB / 0.5173 GB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002777/0.482, allocations: 172 kB / 0.5175 GB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.4821, allocations: 17.64 kB / 0.5175 GB, free: 3.902 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.4833, allocations: 92.11 kB / 0.5176 GB, free: 3.875 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002874/0.4836, allocations: 104.3 kB / 0.5177 GB, free: 3.824 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.076e-05/0.4837, allocations: 28.72 kB / 0.5177 GB, free: 3.824 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001749/0.4839, allocations: 143.3 kB / 0.5178 GB, free: 3.738 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009842/0.4849, allocations: 108.2 kB / 0.5179 GB, free: 3.73 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.0002102/0.4851, allocations: 123.1 kB / 0.518 GB, free: 3.617 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002224/0.4874, allocations: 0.8219 MB / 0.5188 GB, free: 3.566 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.667e-06/0.4874, allocations: 2.781 kB / 0.5188 GB, free: 3.566 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007726/0.4882, allocations: 223.4 kB / 0.5191 GB, free: 3.527 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000991/0.4892, allocations: 106.9 kB / 0.5192 GB, free: 3.508 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003263/0.4925, allocations: 0.969 MB / 0.5201 GB, free: 2.785 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009933/0.4935, allocations: 0.8644 MB / 0.5209 GB, free: 2.023 MB / 330.7 MB Notification: Performance of SimCode: time 1.133e-06/0.4935, allocations: 0 / 0.5209 GB, free: 2.023 MB / 330.7 MB Notification: Performance of Templates: time 0.01512/0.5086, allocations: 6.929 MB / 0.5277 GB, free: 14.23 MB / 346.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.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,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.tau,torque.useSupport