Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002096/0.002096, allocations: 178.4 kB / 8.405 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.123/2.123, allocations: 205.3 MB / 214.1 MB, free: 1.742 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.001115/0.001114, allocations: 86.75 kB / 262.2 MB, free: 1.684 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.1003/0.1003, allocations: 12.6 MB / 322.7 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.36e-05/2.348e-05, allocations: 4 kB / 378.9 MB, free: 6.906 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3155, allocations: 50.36 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1395/0.4551, allocations: 81.27 MB / 0.4986 GB, free: 1.043 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002683/0.4555, allocations: 67.97 kB / 0.4986 GB, free: 0.9766 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03071/0.4862, allocations: 6.393 MB / 0.5049 GB, free: 10.58 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4862, allocations: 0 / 0.5049 GB, free: 10.58 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.024e-05/0.4863, allocations: 7.938 kB / 0.5049 GB, free: 10.57 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001604/0.4879, allocations: 0.5724 MB / 0.5054 GB, free: 9.953 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.4879, allocations: 12.03 kB / 0.5055 GB, free: 9.941 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.4881, allocations: 39.62 kB / 0.5055 GB, free: 9.902 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004942/0.4886, allocations: 269.5 kB / 0.5057 GB, free: 9.598 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002944/0.4889, allocations: 125.6 kB / 0.5059 GB, free: 9.457 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.396e-05/0.489, allocations: 19.98 kB / 0.5059 GB, free: 9.438 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001132/0.4902, allocations: 401 kB / 0.5063 GB, free: 9.047 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.4913, allocations: 453.6 kB / 0.5067 GB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.288e-05/0.4914, allocations: 0 / 0.5067 GB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.363e-05/0.4914, allocations: 4 kB / 0.5067 GB, free: 8.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.4914, allocations: 8 kB / 0.5067 GB, free: 8.562 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002329/0.4938, allocations: 0.9559 MB / 0.5076 GB, free: 7.539 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001408/0.4952, allocations: 394.9 kB / 0.508 GB, free: 7.117 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004553/0.4957, allocations: 191.4 kB / 0.5082 GB, free: 6.918 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.303e-05/0.4958, allocations: 7.938 kB / 0.5082 GB, free: 6.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.4958, allocations: 42.5 kB / 0.5083 GB, free: 6.859 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.046e-06/0.4958, allocations: 0 / 0.5083 GB, free: 6.859 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.01399/0.5098, allocations: 2.001 MB / 0.5102 GB, free: 4.852 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.51, allocations: 145 kB / 0.5103 GB, free: 4.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000269/0.5103, allocations: 173.8 kB / 0.5105 GB, free: 4.504 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.5104, allocations: 25.7 kB / 0.5105 GB, free: 4.473 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.5105, allocations: 200 kB / 0.5107 GB, free: 4.277 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002773/0.5108, allocations: 193.3 kB / 0.5109 GB, free: 4.086 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.5109, allocations: 0 / 0.5109 GB, free: 4.086 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.5111, allocations: 338.8 kB / 0.5112 GB, free: 3.746 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.5123, allocations: 469.5 kB / 0.5117 GB, free: 3.289 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.5137, allocations: 0.6291 MB / 0.5123 GB, free: 2.582 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.5147, allocations: 418 kB / 0.5127 GB, free: 2.172 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.5148, allocations: 4 kB / 0.5127 GB, free: 2.168 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002895/0.5177, allocations: 1.033 MB / 0.5137 GB, free: 1.129 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.5177, allocations: 4 kB / 0.5137 GB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.328e-05/0.5178, allocations: 11.98 kB / 0.5137 GB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.412e-05/0.5178, allocations: 8.812 kB / 0.5137 GB, free: 1.105 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002641/0.5205, allocations: 235.6 kB / 0.514 GB, free: 0.875 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.048e-05/0.5205, allocations: 8 kB / 0.514 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001802/0.5223, allocations: 111.7 kB / 0.5141 GB, free: 0.7578 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/0.5225, allocations: 28 kB / 0.5141 GB, free: 0.7305 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.0003431/0.5228, allocations: 132.7 kB / 0.5142 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004638/0.5233, allocations: 137.2 kB / 0.5144 GB, free: 464 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002071/0.5235, allocations: 55.39 kB / 0.5144 GB, free: 408 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/0.5236, allocations: 8 kB / 0.5144 GB, free: 400 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.5236, allocations: 0 / 0.5144 GB, free: 400 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.5236, allocations: 3.984 kB / 0.5144 GB, free: 396 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2755/0.7991, allocations: 1.884 MB / 0.5163 GB, free: 89.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.144e-05/0.7992, allocations: 9.969 kB / 0.5163 GB, free: 89.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/0.8009, allocations: 210 kB / 0.5165 GB, free: 89.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.275e-05/0.801, allocations: 18.25 kB / 0.5165 GB, free: 89.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.8011, allocations: 14.67 kB / 0.5165 GB, free: 89.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.64e-05/0.8011, allocations: 24.17 kB / 0.5165 GB, free: 89.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.715e-05/0.8011, allocations: 15.56 kB / 0.5165 GB, free: 89.94 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002507/0.8037, allocations: 1.707 MB / 0.5182 GB, free: 88.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004182/0.8041, allocations: 166.1 kB / 0.5184 GB, free: 88.51 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.8043, allocations: 16.31 kB / 0.5184 GB, free: 88.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.8055, allocations: 86.09 kB / 0.5185 GB, free: 88.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000351/0.8058, allocations: 107.2 kB / 0.5186 GB, free: 88.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.993e-05/0.8059, allocations: 32.42 kB / 0.5186 GB, free: 88.49 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001786/0.8061, allocations: 134.6 kB / 0.5187 GB, free: 88.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8061, allocations: 1.062 kB / 0.5187 GB, free: 88.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0011/0.8072, allocations: 102.8 kB / 0.5188 GB, free: 88.41 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.0002336/0.8075, allocations: 124.6 kB / 0.5189 GB, free: 88.31 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002187/0.8097, allocations: 0.8185 MB / 0.5197 GB, free: 87.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.557e-05/0.8098, allocations: 2.094 kB / 0.5197 GB, free: 87.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007989/0.8106, allocations: 217.8 kB / 0.5199 GB, free: 87.89 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/0.8116, allocations: 112.7 kB / 0.5201 GB, free: 87.85 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003098/0.8148, allocations: 0.9566 MB / 0.521 GB, free: 87.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004379/0.8153, allocations: 0.8223 MB / 0.5218 GB, free: 86.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006194/0.8159, allocations: 40.31 kB / 0.5218 GB, free: 86.39 MB / 362.7 MB Notification: Performance of SimCode: time 1.152e-06/0.8159, allocations: 3.719 kB / 0.5218 GB, free: 86.39 MB / 362.7 MB Notification: Performance of Templates: time 0.01917/0.8351, allocations: 6.873 MB / 0.5285 GB, free: 84.84 MB / 362.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/jenkins1/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