Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00134/0.00134, allocations: 177.6 kB / 8.045 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.3 MB / 213.8 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008052/0.0008052, allocations: 90.41 kB / 261.8 MB, free: 1.617 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.06859/0.06859, allocations: 12.59 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.215e-05/1.218e-05, allocations: 0 / 378.9 MB, free: 6.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2195, allocations: 50.37 MB / 429.3 MB, free: 18.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09271/0.3123, allocations: 81.5 MB / 0.4988 GB, free: 0.7539 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001807/0.3125, allocations: 67.97 kB / 0.4989 GB, free: 0.6875 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01947/0.332, allocations: 7.085 MB / 0.5058 GB, free: 9.594 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.332, allocations: 0 / 0.5058 GB, free: 9.594 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.154e-05/0.3321, allocations: 4 kB / 0.5058 GB, free: 9.59 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.001114/0.3332, allocations: 0.6113 MB / 0.5064 GB, free: 8.934 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.3332, allocations: 8.031 kB / 0.5064 GB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.351e-05/0.3333, allocations: 47.53 kB / 0.5065 GB, free: 8.879 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003691/0.3337, allocations: 290 kB / 0.5067 GB, free: 8.551 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001936/0.3339, allocations: 137.8 kB / 0.5069 GB, free: 8.398 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.92e-05/0.334, allocations: 16 kB / 0.5069 GB, free: 8.383 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006874/0.3346, allocations: 413.4 kB / 0.5073 GB, free: 7.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007688/0.3354, allocations: 461.3 kB / 0.5077 GB, free: 7.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.3355, allocations: 0 / 0.5077 GB, free: 7.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.171e-05/0.3355, allocations: 7.938 kB / 0.5077 GB, free: 7.492 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.3355, allocations: 4 kB / 0.5077 GB, free: 7.488 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001426/0.3369, allocations: 0.9948 MB / 0.5087 GB, free: 6.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008051/0.3378, allocations: 391 kB / 0.5091 GB, free: 6.012 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002609/0.338, allocations: 195.4 kB / 0.5093 GB, free: 5.809 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.265e-05/0.3381, allocations: 4 kB / 0.5093 GB, free: 5.805 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.3381, allocations: 50.48 kB / 0.5093 GB, free: 5.746 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.874e-06/0.3381, allocations: 0 / 0.5093 GB, free: 5.746 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.006938/0.3451, allocations: 2.03 MB / 0.5113 GB, free: 3.707 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.814e-05/0.3452, allocations: 149.8 kB / 0.5114 GB, free: 3.527 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.3454, allocations: 226 kB / 0.5117 GB, free: 3.301 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.031e-05/0.3455, allocations: 25.7 kB / 0.5117 GB, free: 3.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.654e-05/0.3456, allocations: 149.5 kB / 0.5118 GB, free: 3.121 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000165/0.3458, allocations: 181.3 kB / 0.512 GB, free: 2.941 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.233e-05/0.3458, allocations: 0 / 0.512 GB, free: 2.941 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3459, allocations: 346.8 kB / 0.5123 GB, free: 2.594 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006152/0.3466, allocations: 465.5 kB / 0.5128 GB, free: 2.141 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007159/0.3473, allocations: 0.6368 MB / 0.5134 GB, free: 1.426 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005533/0.3478, allocations: 418 kB / 0.5138 GB, free: 1.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.3479, allocations: 7.953 kB / 0.5138 GB, free: 1.012 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.1877/0.5356, allocations: 1.038 MB / 0.5148 GB, free: 89.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.458e-05/0.5357, allocations: 7.5 kB / 0.5148 GB, free: 89.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.194e-05/0.5357, allocations: 7.094 kB / 0.5148 GB, free: 89.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.518e-05/0.5358, allocations: 8.594 kB / 0.5148 GB, free: 89.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001556/0.5373, allocations: 232.2 kB / 0.5151 GB, free: 89.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.5374, allocations: 13.69 kB / 0.5151 GB, free: 89.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009669/0.5383, allocations: 103.3 kB / 0.5152 GB, free: 89.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.5384, allocations: 26.64 kB / 0.5152 GB, free: 89.24 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.0002245/0.5387, allocations: 127.1 kB / 0.5153 GB, free: 89.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003018/0.539, allocations: 145.9 kB / 0.5154 GB, free: 89.1 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002/0.5392, allocations: 58.69 kB / 0.5155 GB, free: 89.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/0.5392, allocations: 8.188 kB / 0.5155 GB, free: 89.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.5392, allocations: 2.719 kB / 0.5155 GB, free: 89.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.5393, allocations: 6.969 kB / 0.5155 GB, free: 89.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003992/0.5433, allocations: 1.91 MB / 0.5174 GB, free: 88.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.187e-05/0.5433, allocations: 12.22 kB / 0.5174 GB, free: 88.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008828/0.5442, allocations: 201.7 kB / 0.5176 GB, free: 88.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.175e-05/0.5442, allocations: 14.38 kB / 0.5176 GB, free: 88.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.687e-05/0.5443, allocations: 16.95 kB / 0.5176 GB, free: 88.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.667e-05/0.5443, allocations: 18.7 kB / 0.5176 GB, free: 88.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.698e-05/0.5444, allocations: 19.56 kB / 0.5177 GB, free: 88.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00159/0.546, allocations: 1.703 MB / 0.5193 GB, free: 87.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002371/0.5462, allocations: 185 kB / 0.5195 GB, free: 87.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.055e-05/0.5463, allocations: 21.19 kB / 0.5195 GB, free: 87.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000705/0.547, allocations: 87.5 kB / 0.5196 GB, free: 87.01 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002668/0.5473, allocations: 112.7 kB / 0.5197 GB, free: 86.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.03e-05/0.5474, allocations: 29.62 kB / 0.5197 GB, free: 86.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002138/0.5476, allocations: 177.9 kB / 0.5199 GB, free: 86.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5476, allocations: 0 / 0.5199 GB, free: 86.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007724/0.5484, allocations: 105.3 kB / 0.52 GB, free: 86.91 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.0002063/0.5486, allocations: 123.1 kB / 0.5201 GB, free: 86.81 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.5499, allocations: 0.8214 MB / 0.5209 GB, free: 86.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.5499, allocations: 1.062 kB / 0.5209 GB, free: 86.45 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003844/0.5503, allocations: 223.3 kB / 0.5211 GB, free: 86.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006782/0.5509, allocations: 122.1 kB / 0.5213 GB, free: 86.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001931/0.5529, allocations: 0.9733 MB / 0.5222 GB, free: 85.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003637/0.5533, allocations: 0.842 MB / 0.523 GB, free: 84.88 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000587/0.5539, allocations: 96.39 kB / 0.5231 GB, free: 84.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002697/0.5541, allocations: 39.34 kB / 0.5232 GB, free: 84.84 MB / 362.7 MB Notification: Performance of SimCode: time 4e-07/0.5541, allocations: 0 / 0.5232 GB, free: 84.84 MB / 362.7 MB Notification: Performance of Templates: time 0.009557/0.5637, allocations: 7.392 MB / 0.5304 GB, free: 82.63 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.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.y,angle.phi,fastClock.factor,fastClock.resolution,fastClock.resolutionFactor,fastClock.useSolver,gain.k,gain.y,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.w,slowClock.factor,slowClock.resolution,slowClock.resolutionFactor,slowClock.useSolver,speed.flange.phi,speed.w,super.factor,super.inferFactor,time