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.001054/0.001054, allocations: 176.6 kB / 17.4 MB, free: 4.398 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.439/1.439, allocations: 223.3 MB / 241.4 MB, free: 11.71 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.0007645/0.0007644, allocations: 88.3 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004859/0.0004859, allocations: 12 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2625, allocations: 50.4 MB / 402.7 MB, free: 32.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09668/0.3593, allocations: 81.08 MB / 483.8 MB, free: 15.28 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.3596, allocations: 76.73 kB / 483.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02095/0.3805, allocations: 7.316 MB / 491.2 MB, free: 7.879 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3806, allocations: 0 / 491.2 MB, free: 7.879 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.853e-05/0.3806, allocations: 8 kB / 491.2 MB, free: 7.871 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.001394/0.382, allocations: 0.6354 MB / 491.9 MB, free: 7.188 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.3821, allocations: 11.97 kB / 491.9 MB, free: 7.176 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001704/0.3822, allocations: 44.47 kB / 491.9 MB, free: 7.133 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000441/0.3827, allocations: 299.2 kB / 492.2 MB, free: 6.797 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002024/0.3829, allocations: 146.3 kB / 492.3 MB, free: 6.637 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.64e-05/0.383, allocations: 32.28 kB / 492.4 MB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.3842, allocations: 0.5817 MB / 493 MB, free: 5.996 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.3e-05/0.3842, allocations: 0 / 493 MB, free: 5.996 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.381e-05/0.3843, allocations: 16 kB / 493 MB, free: 5.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.3843, allocations: 8 kB / 493 MB, free: 5.973 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.3857, allocations: 0.5386 MB / 493.5 MB, free: 5.434 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.3873, allocations: 1.041 MB / 494.6 MB, free: 4.316 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/0.3886, allocations: 0.4987 MB / 495.1 MB, free: 3.781 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006097/0.3893, allocations: 280.7 kB / 495.3 MB, free: 3.496 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.499e-05/0.3893, allocations: 7.859 kB / 495.3 MB, free: 3.488 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.3894, allocations: 50.48 kB / 495.4 MB, free: 3.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.715e-06/0.3894, allocations: 0 / 495.4 MB, free: 3.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.0354/0.4248, allocations: 6.804 MB / 0.4904 GB, free: 12.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.4249, allocations: 148.9 kB / 0.4906 GB, free: 12.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003279/0.4253, allocations: 266.5 kB / 0.4908 GB, free: 12.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.851e-05/0.4254, allocations: 37.7 kB / 0.4909 GB, free: 12.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.746e-05/0.4255, allocations: 153.4 kB / 0.491 GB, free: 11.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001886/0.4257, allocations: 193.3 kB / 0.4912 GB, free: 11.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.122e-05/0.4257, allocations: 12 kB / 0.4912 GB, free: 11.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.4259, allocations: 346.8 kB / 0.4915 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001509/0.4274, allocations: 0.6543 MB / 0.4922 GB, free: 10.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.429, allocations: 0.8394 MB / 0.493 GB, free: 9.855 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002889/0.4319, allocations: 1.332 MB / 0.4943 GB, free: 8.449 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.4319, allocations: 4 kB / 0.4943 GB, free: 8.445 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003313/0.4352, allocations: 1.483 MB / 0.4957 GB, free: 6.953 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.4353, allocations: 8 kB / 0.4958 GB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.4353, allocations: 8 kB / 0.4958 GB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.4353, allocations: 11.94 kB / 0.4958 GB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.4366, allocations: 227.8 kB / 0.496 GB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.146e-05/0.4366, allocations: 19.88 kB / 0.496 GB, free: 6.684 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009183/0.4375, allocations: 127.7 kB / 0.4961 GB, free: 6.559 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.293e-05/0.4376, allocations: 24 kB / 0.4962 GB, free: 6.535 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.0003524/0.438, allocations: 194.3 kB / 0.4963 GB, free: 6.336 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003361/0.4383, allocations: 169.4 kB / 0.4965 GB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001713/0.4385, allocations: 67.61 kB / 0.4966 GB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.4385, allocations: 8 kB / 0.4966 GB, free: 6.094 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.4385, allocations: 3.938 kB / 0.4966 GB, free: 6.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.4385, allocations: 3.984 kB / 0.4966 GB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004644/0.4432, allocations: 2.316 MB / 0.4988 GB, free: 3.586 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.692e-05/0.4432, allocations: 15.98 kB / 0.4989 GB, free: 3.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007173/0.444, allocations: 195.9 kB / 0.499 GB, free: 3.379 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.62e-05/0.444, allocations: 15.94 kB / 0.4991 GB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.308e-05/0.444, allocations: 32 kB / 0.4991 GB, free: 3.332 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.661e-05/0.4441, allocations: 27.86 kB / 0.4991 GB, free: 3.305 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.023e-05/0.4441, allocations: 15.94 kB / 0.4991 GB, free: 3.289 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003027/0.4471, allocations: 1.677 MB / 0.5008 GB, free: 1.457 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002237/0.4474, allocations: 188.6 kB / 0.5009 GB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.078e-05/0.4474, allocations: 27.94 kB / 0.501 GB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005669/0.448, allocations: 103.9 kB / 0.5011 GB, free: 1.125 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/0.4482, allocations: 103.6 kB / 0.5012 GB, free: 1.023 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.681e-05/0.4483, allocations: 32 kB / 0.5012 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001776/0.4485, allocations: 197.9 kB / 0.5014 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4485, allocations: 0 / 0.5014 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006639/0.4491, allocations: 128 kB / 0.5015 GB, free: 0.6758 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.0002061/0.4493, allocations: 147 kB / 0.5017 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1726/0.6219, allocations: 1.195 MB / 0.5028 GB, free: 102.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-05/0.622, allocations: 1.312 kB / 0.5028 GB, free: 102.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001249/0.6232, allocations: 387.2 kB / 0.5032 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.001262/0.6245, allocations: 146.8 kB / 0.5033 GB, free: 102.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002425/0.6269, allocations: 1.415 MB / 0.5047 GB, free: 101.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.6273, allocations: 0.8318 MB / 0.5055 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006776/0.628, allocations: 95.36 kB / 0.5056 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002907/0.6282, allocations: 43.25 kB / 0.5057 GB, free: 101.1 MB / 378.7 MB Notification: Performance of SimCode: time 8.12e-07/0.6283, allocations: 0 / 0.5057 GB, free: 101.1 MB / 378.7 MB Notification: Performance of Templates: time 0.01122/0.6395, allocations: 7.579 MB / 0.5131 GB, free: 99.48 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/jenkins1/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