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.002121/0.002121, allocations: 183.8 kB / 13.7 MB, free: 1.617 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.014/2.014, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00106/0.001059, allocations: 94.62 kB / 267.6 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1002/0.1002, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.285e-05/3.289e-05, allocations: 4 kB / 386 MB, free: 1.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3042, allocations: 50.36 MB / 436.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1431/0.4473, allocations: 82.07 MB / 0.5063 GB, free: 11.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/0.4477, allocations: 71.95 kB / 0.5063 GB, free: 11.9 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03338/0.4811, allocations: 7.055 MB / 0.5132 GB, free: 4.828 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4811, allocations: 3.938 kB / 0.5132 GB, free: 4.824 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.022e-05/0.4811, allocations: 4 kB / 0.5132 GB, free: 4.82 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.001654/0.4828, allocations: 0.5802 MB / 0.5138 GB, free: 4.195 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.4829, allocations: 8.031 kB / 0.5138 GB, free: 4.188 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.483, allocations: 43.62 kB / 0.5138 GB, free: 4.145 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005008/0.4835, allocations: 271.1 kB / 0.5141 GB, free: 3.836 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003108/0.4838, allocations: 145.8 kB / 0.5142 GB, free: 3.676 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.114e-05/0.484, allocations: 35.91 kB / 0.5143 GB, free: 3.641 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.4853, allocations: 0.5013 MB / 0.5148 GB, free: 3.109 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.4853, allocations: 0 / 0.5148 GB, free: 3.109 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.911e-05/0.4854, allocations: 12 kB / 0.5148 GB, free: 3.098 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.737e-05/0.4854, allocations: 8 kB / 0.5148 GB, free: 3.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.4866, allocations: 415.8 kB / 0.5152 GB, free: 2.684 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002331/0.489, allocations: 1.018 MB / 0.5162 GB, free: 1.586 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.4905, allocations: 419 kB / 0.5166 GB, free: 1.141 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005289/0.4911, allocations: 207.3 kB / 0.5168 GB, free: 0.9258 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.577e-05/0.4912, allocations: 11.98 kB / 0.5168 GB, free: 0.9141 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.4912, allocations: 38.56 kB / 0.5168 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.825e-06/0.4912, allocations: 4 kB / 0.5168 GB, free: 0.8633 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.2902/0.7814, allocations: 2.079 MB / 0.5188 GB, free: 86.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.7816, allocations: 152.2 kB / 0.519 GB, free: 86.44 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002925/0.7819, allocations: 183.4 kB / 0.5192 GB, free: 86.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00012/0.782, allocations: 35.05 kB / 0.5192 GB, free: 86.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.197e-05/0.7821, allocations: 209.9 kB / 0.5194 GB, free: 86.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002692/0.7824, allocations: 195.2 kB / 0.5196 GB, free: 86.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.7825, allocations: 12.72 kB / 0.5196 GB, free: 86.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.078e-05/0.7826, allocations: 337 kB / 0.5199 GB, free: 85.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.7839, allocations: 480.9 kB / 0.5204 GB, free: 85.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001438/0.7854, allocations: 0.6482 MB / 0.521 GB, free: 85.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001232/0.7867, allocations: 429.6 kB / 0.5214 GB, free: 85.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.7867, allocations: 2.062 kB / 0.5214 GB, free: 85.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003169/0.7899, allocations: 1.1 MB / 0.5225 GB, free: 84.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/0.79, allocations: 10.08 kB / 0.5225 GB, free: 84.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.79, allocations: 5.719 kB / 0.5225 GB, free: 84.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.8e-05/0.79, allocations: 9.781 kB / 0.5225 GB, free: 84.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002692/0.7927, allocations: 234.3 kB / 0.5227 GB, free: 84.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.832e-05/0.7928, allocations: 14.69 kB / 0.5228 GB, free: 84.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001904/0.7947, allocations: 122.1 kB / 0.5229 GB, free: 84.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001426/0.7949, allocations: 31.09 kB / 0.5229 GB, free: 84.55 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.0003412/0.7952, allocations: 154.3 kB / 0.523 GB, free: 84.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000495/0.7957, allocations: 149.8 kB / 0.5232 GB, free: 84.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002022/0.796, allocations: 64.08 kB / 0.5233 GB, free: 84.28 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.796, allocations: 7.969 kB / 0.5233 GB, free: 84.28 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/0.796, allocations: 2.219 kB / 0.5233 GB, free: 84.28 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.496e-05/0.796, allocations: 9.641 kB / 0.5233 GB, free: 84.28 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006594/0.8026, allocations: 2.015 MB / 0.5252 GB, free: 83.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-05/0.8027, allocations: 9.844 kB / 0.5252 GB, free: 83.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001675/0.8044, allocations: 206.7 kB / 0.5254 GB, free: 83.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.984e-05/0.8045, allocations: 15.66 kB / 0.5255 GB, free: 83.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/0.8046, allocations: 24.28 kB / 0.5255 GB, free: 83.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.683e-05/0.8046, allocations: 21.42 kB / 0.5255 GB, free: 83.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.699e-05/0.8047, allocations: 14.84 kB / 0.5255 GB, free: 83.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002982/0.8076, allocations: 1.759 MB / 0.5272 GB, free: 81.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003862/0.8081, allocations: 166.3 kB / 0.5274 GB, free: 81.27 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/0.8082, allocations: 30.12 kB / 0.5274 GB, free: 81.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.8094, allocations: 106 kB / 0.5275 GB, free: 81.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003516/0.8098, allocations: 104.5 kB / 0.5276 GB, free: 81.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.307e-05/0.8099, allocations: 34 kB / 0.5277 GB, free: 81.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002131/0.8101, allocations: 147.7 kB / 0.5278 GB, free: 81.1 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8101, allocations: 0 / 0.5278 GB, free: 81.1 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001123/0.8113, allocations: 125.7 kB / 0.5279 GB, free: 81.08 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.0002315/0.8115, allocations: 135.3 kB / 0.528 GB, free: 80.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002304/0.8138, allocations: 0.8651 MB / 0.5289 GB, free: 80.54 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.301e-05/0.8139, allocations: 4.719 kB / 0.5289 GB, free: 80.54 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008201/0.8147, allocations: 238.4 kB / 0.5291 GB, free: 80.45 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009565/0.8157, allocations: 124.8 kB / 0.5292 GB, free: 80.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002989/0.8187, allocations: 1.009 MB / 0.5302 GB, free: 79.62 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003829/0.8191, allocations: 0.8245 MB / 0.531 GB, free: 78.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006567/0.8198, allocations: 43.67 kB / 0.5311 GB, free: 78.9 MB / 362.7 MB Notification: Performance of SimCode: time 1.222e-06/0.8198, allocations: 0 / 0.5311 GB, free: 78.9 MB / 362.7 MB Notification: Performance of Templates: time 0.01495/0.8348, allocations: 6.931 MB / 0.5378 GB, free: 75.23 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.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.endTime,kinematicPTP.moving[1],kinematicPTP.nout,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.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.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.tau