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.002167/0.002167, allocations: 185.8 kB / 16.44 MB, free: 5.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.941/1.941, allocations: 205.4 MB / 222.6 MB, free: 9.133 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.001113/0.001113, allocations: 89.92 kB / 270.9 MB, free: 8.387 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.09753/0.09753, allocations: 12.59 MB / 331.8 MB, free: 11.42 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005445/0.0005446, allocations: 15.98 kB / 392 MB, free: 66.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08646/0.08703, allocations: 50.37 MB / 442.3 MB, free: 16.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4133/0.5003, allocations: 82.16 MB / 0.5122 GB, free: 11.99 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/0.5006, allocations: 77.81 kB / 0.5123 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03084/0.5315, allocations: 7.056 MB / 0.5192 GB, free: 8.531 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.5315, allocations: 3.938 kB / 0.5192 GB, free: 8.527 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.959e-05/0.5316, allocations: 12 kB / 0.5192 GB, free: 8.516 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.001516/0.5331, allocations: 0.5979 MB / 0.5198 GB, free: 7.895 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.5332, allocations: 8.031 kB / 0.5198 GB, free: 7.887 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.5333, allocations: 39.56 kB / 0.5198 GB, free: 7.848 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004205/0.5337, allocations: 271.2 kB / 0.5201 GB, free: 7.562 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002662/0.534, allocations: 147.9 kB / 0.5202 GB, free: 7.414 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-05/0.5341, allocations: 31.59 kB / 0.5202 GB, free: 7.391 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.536, allocations: 0.5787 MB / 0.5208 GB, free: 6.926 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/0.536, allocations: 0 / 0.5208 GB, free: 6.926 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.064e-05/0.5361, allocations: 14.31 kB / 0.5208 GB, free: 6.922 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.5361, allocations: 4 kB / 0.5208 GB, free: 6.918 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002542/0.5387, allocations: 0.5459 MB / 0.5214 GB, free: 6.496 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002142/0.5409, allocations: 1.024 MB / 0.5224 GB, free: 5.586 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002499/0.5434, allocations: 0.497 MB / 0.5228 GB, free: 5.16 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.735e-05/0.5435, allocations: 15.94 kB / 0.5229 GB, free: 5.145 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.5435, allocations: 42.25 kB / 0.5229 GB, free: 5.098 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 3.056e-06/0.5435, allocations: 0 / 0.5229 GB, free: 5.098 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.07847/0.622, allocations: 6.759 MB / 0.5295 GB, free: 15.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.6222, allocations: 155.1 kB / 0.5296 GB, free: 14.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003135/0.6225, allocations: 186.4 kB / 0.5298 GB, free: 14.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/0.6227, allocations: 35.89 kB / 0.5299 GB, free: 14.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.6228, allocations: 209.9 kB / 0.5301 GB, free: 14.49 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002821/0.6231, allocations: 202.1 kB / 0.5302 GB, free: 14.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/0.6233, allocations: 17.44 kB / 0.5303 GB, free: 14.31 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.6234, allocations: 332.8 kB / 0.5306 GB, free: 13.99 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003088/0.6265, allocations: 0.6569 MB / 0.5312 GB, free: 13.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003249/0.6298, allocations: 0.8401 MB / 0.532 GB, free: 12.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002992/0.6328, allocations: 0.603 MB / 0.5326 GB, free: 12.53 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.6328, allocations: 4 kB / 0.5326 GB, free: 12.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.006883/0.6397, allocations: 1.471 MB / 0.5341 GB, free: 11.53 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/0.6398, allocations: 8 kB / 0.5341 GB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.6398, allocations: 4 kB / 0.5341 GB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.296e-05/0.6399, allocations: 12.38 kB / 0.5341 GB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002588/0.6425, allocations: 227.5 kB / 0.5343 GB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.667e-05/0.6425, allocations: 16.23 kB / 0.5343 GB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/0.6443, allocations: 122.4 kB / 0.5344 GB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001342/0.6445, allocations: 39.36 kB / 0.5345 GB, free: 11.13 MB / 346.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 () * Number of clocked states: 1 (PI.x) * 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.0004677/0.645, allocations: 185.4 kB / 0.5347 GB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004753/0.6455, allocations: 148.6 kB / 0.5348 GB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002039/0.6457, allocations: 68.25 kB / 0.5349 GB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.6457, allocations: 8 kB / 0.5349 GB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.6457, allocations: 0 / 0.5349 GB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.6457, allocations: 3.984 kB / 0.5349 GB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008992/0.6548, allocations: 2.315 MB / 0.5371 GB, free: 8.746 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.779e-05/0.6548, allocations: 12 kB / 0.5372 GB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001567/0.6564, allocations: 203.6 kB / 0.5373 GB, free: 8.539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.523e-05/0.6564, allocations: 16 kB / 0.5374 GB, free: 8.523 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.542e-05/0.6565, allocations: 26.62 kB / 0.5374 GB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.303e-05/0.6566, allocations: 19.92 kB / 0.5374 GB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.711e-05/0.6566, allocations: 15.94 kB / 0.5374 GB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006569/0.6632, allocations: 2.194 MB / 0.5396 GB, free: 6.211 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003228/0.6635, allocations: 162.1 kB / 0.5397 GB, free: 6.055 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.6637, allocations: 30.55 kB / 0.5397 GB, free: 6.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.6648, allocations: 102.5 kB / 0.5398 GB, free: 5.945 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003177/0.6651, allocations: 102 kB / 0.5399 GB, free: 5.859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.239e-05/0.6652, allocations: 31.69 kB / 0.54 GB, free: 5.832 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002053/0.6654, allocations: 146.5 kB / 0.5401 GB, free: 5.711 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.6654, allocations: 0 / 0.5401 GB, free: 5.711 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009794/0.6664, allocations: 132.8 kB / 0.5402 GB, free: 5.602 MB / 346.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 () * Number of clocked states: 1 (PI.x) * 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.000234/0.6667, allocations: 145.1 kB / 0.5404 GB, free: 5.461 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005413/0.6721, allocations: 1.206 MB / 0.5416 GB, free: 4.633 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/0.6721, allocations: 0 / 0.5416 GB, free: 4.633 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002084/0.6742, allocations: 388.4 kB / 0.5419 GB, free: 4.312 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.6753, allocations: 115.3 kB / 0.542 GB, free: 4.227 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00414/0.6794, allocations: 1.37 MB / 0.5434 GB, free: 2.832 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.68, allocations: 0.8204 MB / 0.5442 GB, free: 1.984 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006469/0.6806, allocations: 47.23 kB / 0.5442 GB, free: 1.941 MB / 346.7 MB Notification: Performance of SimCode: time 1.102e-06/0.6807, allocations: 0 / 0.5442 GB, free: 1.941 MB / 346.7 MB Notification: Performance of Templates: time 0.01672/0.6974, allocations: 6.952 MB / 0.551 GB, free: 11.02 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