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.001556/0.001555, allocations: 186.4 kB / 13.7 MB, free: 1.625 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.033/2.033, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001124/0.001123, allocations: 90.64 kB / 267.5 MB, free: 14.12 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.1001/0.1001, allocations: 12.6 MB / 328.2 MB, free: 11.17 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.909e-05/3.919e-05, allocations: 4 kB / 386 MB, free: 1.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.3091, allocations: 50.37 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1463/0.4555, allocations: 81.93 MB / 0.5061 GB, free: 12.12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.4558, allocations: 71.97 kB / 0.5062 GB, free: 12.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03161/0.4875, allocations: 6.434 MB / 0.5125 GB, free: 5.605 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4875, allocations: 0 / 0.5125 GB, free: 5.605 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.272e-05/0.4875, allocations: 8 kB / 0.5125 GB, free: 5.598 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.001557/0.4891, allocations: 0.5685 MB / 0.513 GB, free: 4.984 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/0.4892, allocations: 16.03 kB / 0.513 GB, free: 4.969 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.4893, allocations: 35.62 kB / 0.5131 GB, free: 4.934 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004741/0.4898, allocations: 267.1 kB / 0.5133 GB, free: 4.629 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003175/0.4901, allocations: 141.6 kB / 0.5135 GB, free: 4.473 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-05/0.4902, allocations: 27.94 kB / 0.5135 GB, free: 4.445 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.4915, allocations: 498.7 kB / 0.514 GB, free: 3.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.754e-05/0.4915, allocations: 11.94 kB / 0.514 GB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.998e-05/0.4916, allocations: 8 kB / 0.514 GB, free: 3.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.4916, allocations: 12 kB / 0.514 GB, free: 3.898 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.4928, allocations: 407.8 kB / 0.5144 GB, free: 3.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002394/0.4952, allocations: 1.006 MB / 0.5154 GB, free: 2.414 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/0.4967, allocations: 418.8 kB / 0.5158 GB, free: 1.969 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000518/0.4973, allocations: 219.5 kB / 0.516 GB, free: 1.742 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.632e-05/0.4974, allocations: 8 kB / 0.516 GB, free: 1.734 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.4974, allocations: 38.5 kB / 0.516 GB, free: 1.688 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 6.062e-06/0.4975, allocations: 0 / 0.516 GB, free: 1.688 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.2946/0.7921, allocations: 2.09 MB / 0.5181 GB, free: 86.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.7922, allocations: 147.3 kB / 0.5182 GB, free: 86.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00031/0.7925, allocations: 173.1 kB / 0.5184 GB, free: 86.45 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000127/0.7927, allocations: 40.33 kB / 0.5184 GB, free: 86.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.046e-05/0.7928, allocations: 205.4 kB / 0.5186 GB, free: 86.26 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002584/0.7931, allocations: 191.5 kB / 0.5188 GB, free: 86.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.7932, allocations: 15.22 kB / 0.5188 GB, free: 86.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.634e-05/0.7933, allocations: 336.2 kB / 0.5191 GB, free: 85.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.7946, allocations: 482.5 kB / 0.5196 GB, free: 85.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001436/0.796, allocations: 0.6465 MB / 0.5202 GB, free: 85.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.7973, allocations: 427.4 kB / 0.5206 GB, free: 85.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.7973, allocations: 1.625 kB / 0.5206 GB, free: 85.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003131/0.8005, allocations: 1.097 MB / 0.5217 GB, free: 85 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.538e-05/0.8006, allocations: 8.25 kB / 0.5217 GB, free: 85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/0.8006, allocations: 9 kB / 0.5217 GB, free: 85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.654e-05/0.8006, allocations: 12.91 kB / 0.5217 GB, free: 85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002688/0.8033, allocations: 229.1 kB / 0.5219 GB, free: 84.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.415e-05/0.8034, allocations: 13.72 kB / 0.522 GB, free: 84.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001879/0.8053, allocations: 125.6 kB / 0.5221 GB, free: 84.97 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/0.8055, allocations: 27.17 kB / 0.5221 GB, free: 84.96 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.000334/0.8058, allocations: 149.7 kB / 0.5222 GB, free: 84.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004929/0.8064, allocations: 156.4 kB / 0.5224 GB, free: 84.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002164/0.8066, allocations: 63.47 kB / 0.5225 GB, free: 84.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.8066, allocations: 7.469 kB / 0.5225 GB, free: 84.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.515e-05/0.8066, allocations: 5.109 kB / 0.5225 GB, free: 84.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.8067, allocations: 5 kB / 0.5225 GB, free: 84.7 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006376/0.8131, allocations: 2.016 MB / 0.5244 GB, free: 83.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.196e-05/0.8131, allocations: 19.42 kB / 0.5245 GB, free: 83.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001614/0.8148, allocations: 197.9 kB / 0.5246 GB, free: 83.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.959e-05/0.8148, allocations: 20.41 kB / 0.5247 GB, free: 83.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.204e-05/0.8149, allocations: 24.41 kB / 0.5247 GB, free: 83.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.306e-05/0.8149, allocations: 19.88 kB / 0.5247 GB, free: 83.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.574e-05/0.815, allocations: 15.47 kB / 0.5247 GB, free: 83.53 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002558/0.8175, allocations: 1.76 MB / 0.5264 GB, free: 81.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003607/0.8179, allocations: 160.4 kB / 0.5266 GB, free: 81.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.8181, allocations: 34.47 kB / 0.5266 GB, free: 81.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/0.8192, allocations: 97.91 kB / 0.5267 GB, free: 81.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003547/0.8196, allocations: 105.8 kB / 0.5268 GB, free: 81.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.86e-05/0.8197, allocations: 33.61 kB / 0.5269 GB, free: 81.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002259/0.82, allocations: 153.1 kB / 0.527 GB, free: 81.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.82, allocations: 0 / 0.527 GB, free: 81.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001003/0.821, allocations: 129.3 kB / 0.5271 GB, free: 81.5 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.0002157/0.8212, allocations: 135.7 kB / 0.5273 GB, free: 81.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002394/0.8236, allocations: 0.8708 MB / 0.5281 GB, free: 80.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/0.8237, allocations: 0 / 0.5281 GB, free: 80.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007702/0.8245, allocations: 238.2 kB / 0.5283 GB, free: 80.87 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008757/0.8254, allocations: 114.7 kB / 0.5284 GB, free: 80.83 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.8281, allocations: 1.015 MB / 0.5294 GB, free: 80.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003619/0.8285, allocations: 0.8216 MB / 0.5302 GB, free: 79.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005961/0.8291, allocations: 41.81 kB / 0.5303 GB, free: 79.33 MB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/0.8292, allocations: 0 / 0.5303 GB, free: 79.33 MB / 362.7 MB Notification: Performance of Templates: time 0.01393/0.8431, allocations: 6.894 MB / 0.537 GB, free: 76.13 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.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,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau