Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009399/0.0009399, allocations: 90.3 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002941/0.0002942, allocations: 11.92 kB / 351.1 MB, free: 15.13 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2694, allocations: 50.42 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09908/0.3686, allocations: 81.03 MB / 482.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/0.3688, allocations: 77.42 kB / 482.6 MB, free: 15.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01974/0.3885, allocations: 7.309 MB / 489.9 MB, free: 8.059 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3886, allocations: 0 / 489.9 MB, free: 8.059 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.3886, allocations: 11.98 kB / 489.9 MB, free: 8.047 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001075/0.3897, allocations: 0.6352 MB / 490.5 MB, free: 7.363 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.3897, allocations: 11.97 kB / 490.6 MB, free: 7.352 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.374e-05/0.3898, allocations: 47.53 kB / 490.6 MB, free: 7.305 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000402/0.3902, allocations: 286 kB / 490.9 MB, free: 6.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/0.3904, allocations: 141.7 kB / 491 MB, free: 6.824 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.223e-05/0.3905, allocations: 28 kB / 491.1 MB, free: 6.797 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/0.3916, allocations: 0.5816 MB / 491.6 MB, free: 6.191 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.3917, allocations: 4 kB / 491.6 MB, free: 6.188 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.534e-05/0.3917, allocations: 8 kB / 491.6 MB, free: 6.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.3917, allocations: 11.98 kB / 491.7 MB, free: 6.168 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001277/0.393, allocations: 0.5425 MB / 492.2 MB, free: 5.625 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.3945, allocations: 1.041 MB / 493.2 MB, free: 4.508 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001353/0.3959, allocations: 0.4987 MB / 493.7 MB, free: 3.973 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.313e-05/0.396, allocations: 4.406 kB / 493.7 MB, free: 3.969 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.396, allocations: 51.39 kB / 493.8 MB, free: 3.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.683e-06/0.396, allocations: 0 / 493.8 MB, free: 3.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.03866/0.4347, allocations: 6.812 MB / 0.4889 GB, free: 13.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.4349, allocations: 148.9 kB / 0.489 GB, free: 12.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003356/0.4352, allocations: 229.8 kB / 0.4892 GB, free: 12.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.531e-05/0.4353, allocations: 41.7 kB / 0.4893 GB, free: 12.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.4354, allocations: 153.4 kB / 0.4894 GB, free: 12.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002217/0.4356, allocations: 197.3 kB / 0.4896 GB, free: 12.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.616e-05/0.4357, allocations: 12 kB / 0.4896 GB, free: 12.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.4359, allocations: 346.8 kB / 0.49 GB, free: 11.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001477/0.4374, allocations: 0.6578 MB / 0.4906 GB, free: 11.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001619/0.439, allocations: 0.8355 MB / 0.4914 GB, free: 10.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.4404, allocations: 0.6115 MB / 0.492 GB, free: 9.742 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.4404, allocations: 0 / 0.492 GB, free: 9.742 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003288/0.4437, allocations: 1.483 MB / 0.4935 GB, free: 8.254 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.4438, allocations: 10.81 kB / 0.4935 GB, free: 8.246 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.4438, allocations: 11.95 kB / 0.4935 GB, free: 8.234 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.4438, allocations: 12 kB / 0.4935 GB, free: 8.223 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/0.4451, allocations: 223.8 kB / 0.4937 GB, free: 8.004 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.475e-05/0.4452, allocations: 23.91 kB / 0.4937 GB, free: 7.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009243/0.4461, allocations: 123.7 kB / 0.4938 GB, free: 7.859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.695e-05/0.4462, allocations: 27.98 kB / 0.4939 GB, free: 7.832 MB / 378.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.0003631/0.4465, allocations: 196.5 kB / 0.4941 GB, free: 7.633 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003135/0.4469, allocations: 165 kB / 0.4942 GB, free: 7.465 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000183/0.4471, allocations: 71.61 kB / 0.4943 GB, free: 7.395 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.4471, allocations: 8.234 kB / 0.4943 GB, free: 7.387 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/0.4471, allocations: 0 / 0.4943 GB, free: 7.387 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.4471, allocations: 7.969 kB / 0.4943 GB, free: 7.379 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00505/0.4522, allocations: 2.319 MB / 0.4966 GB, free: 4.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/0.4522, allocations: 12.97 kB / 0.4966 GB, free: 4.863 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007531/0.453, allocations: 195.8 kB / 0.4968 GB, free: 4.672 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.759e-05/0.453, allocations: 19.98 kB / 0.4968 GB, free: 4.652 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.524e-05/0.4531, allocations: 28 kB / 0.4968 GB, free: 4.625 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.523e-05/0.4531, allocations: 23.88 kB / 0.4968 GB, free: 4.602 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.544e-05/0.4531, allocations: 15.94 kB / 0.4968 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003578/0.4567, allocations: 2.188 MB / 0.499 GB, free: 1.969 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002336/0.457, allocations: 180.5 kB / 0.4992 GB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.912e-05/0.457, allocations: 31.92 kB / 0.4992 GB, free: 1.742 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005828/0.4576, allocations: 100.2 kB / 0.4993 GB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.4578, allocations: 107.6 kB / 0.4994 GB, free: 1.539 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.784e-05/0.4579, allocations: 31.94 kB / 0.4994 GB, free: 1.508 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000206/0.4581, allocations: 197.8 kB / 0.4996 GB, free: 1.312 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4581, allocations: 0 / 0.4996 GB, free: 1.312 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006564/0.4588, allocations: 128 kB / 0.4997 GB, free: 1.188 MB / 378.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.0001931/0.459, allocations: 143 kB / 0.4999 GB, free: 1.039 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1811/0.64, allocations: 1.202 MB / 0.501 GB, free: 102.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.939e-05/0.6401, allocations: 2.125 kB / 0.501 GB, free: 102.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001191/0.6413, allocations: 388.1 kB / 0.5014 GB, free: 102.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007988/0.6421, allocations: 131.2 kB / 0.5015 GB, free: 102.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002321/0.6444, allocations: 1.423 MB / 0.5029 GB, free: 101.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.6448, allocations: 0.8385 MB / 0.5037 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005901/0.6454, allocations: 93.69 kB / 0.5038 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002699/0.6456, allocations: 43.36 kB / 0.5039 GB, free: 101.1 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.6456, allocations: 0 / 0.5039 GB, free: 101.1 MB / 378.7 MB Notification: Performance of Templates: time 0.01072/0.6564, allocations: 7.544 MB / 0.5112 GB, free: 99.55 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,PI.y,fastClock.factor,fastClock.resolution,fastClock.resolutionFactor,fastClock.useSolver,gain.k,hold1.y_start,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_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.phi,load.w,slowClock.factor,slowClock.resolution,slowClock.resolutionFactor,slowClock.useSolver,speed.flange.phi,super.factor,super.inferFactor,time