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.001448/0.001452, allocations: 177.5 kB / 8.05 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.226/2.226, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.001661/0.001661, allocations: 92.05 kB / 261.8 MB, free: 13.45 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.1078/0.1078, allocations: 12.59 MB / 322.3 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.747e-05/1.738e-05, allocations: 4 kB / 378.9 MB, free: 75.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1315, allocations: 50.37 MB / 429.3 MB, free: 24.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4896/0.6212, allocations: 81.49 MB / 0.4988 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.6215, allocations: 71.58 kB / 0.4989 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0302/0.6518, allocations: 7.088 MB / 0.5058 GB, free: 10.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6518, allocations: 0 / 0.5058 GB, free: 10.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.207e-05/0.6518, allocations: 3.844 kB / 0.5058 GB, free: 10.32 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001442/0.6533, allocations: 0.6072 MB / 0.5064 GB, free: 9.828 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.6534, allocations: 7.688 kB / 0.5064 GB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.6535, allocations: 46.5 kB / 0.5065 GB, free: 9.805 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004851/0.654, allocations: 289.8 kB / 0.5067 GB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002573/0.6543, allocations: 143.8 kB / 0.5069 GB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.81e-05/0.6544, allocations: 15.44 kB / 0.5069 GB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009762/0.6553, allocations: 410.7 kB / 0.5073 GB, free: 9.402 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009852/0.6563, allocations: 459.6 kB / 0.5077 GB, free: 9.23 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/0.6564, allocations: 3.984 kB / 0.5077 GB, free: 9.227 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.456e-05/0.6564, allocations: 11.73 kB / 0.5077 GB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.6565, allocations: 7.406 kB / 0.5077 GB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002041/0.6585, allocations: 0.9851 MB / 0.5087 GB, free: 8.539 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.6598, allocations: 399.6 kB / 0.5091 GB, free: 8.406 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003878/0.6602, allocations: 193.1 kB / 0.5093 GB, free: 8.363 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.031e-05/0.6603, allocations: 7.688 kB / 0.5093 GB, free: 8.363 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.6603, allocations: 46.34 kB / 0.5093 GB, free: 8.316 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 4.148e-06/0.6603, allocations: 0 / 0.5093 GB, free: 8.316 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.01326/0.6736, allocations: 2.019 MB / 0.5113 GB, free: 7.785 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.863e-05/0.6737, allocations: 151.8 kB / 0.5114 GB, free: 7.621 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003167/0.6741, allocations: 226.5 kB / 0.5116 GB, free: 7.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000108/0.6742, allocations: 25.7 kB / 0.5117 GB, free: 7.469 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.651e-05/0.6743, allocations: 147.5 kB / 0.5118 GB, free: 7.352 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002127/0.6745, allocations: 188 kB / 0.512 GB, free: 7.215 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.6746, allocations: 0 / 0.512 GB, free: 7.215 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.271e-05/0.6747, allocations: 343.9 kB / 0.5123 GB, free: 6.891 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009828/0.6757, allocations: 467.9 kB / 0.5128 GB, free: 6.887 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/0.6774, allocations: 0.6376 MB / 0.5134 GB, free: 6.652 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.6785, allocations: 415 kB / 0.5138 GB, free: 6.602 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.6785, allocations: 7.953 kB / 0.5138 GB, free: 6.594 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002586/0.6811, allocations: 1.044 MB / 0.5148 GB, free: 6.441 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.6812, allocations: 7.688 kB / 0.5148 GB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.6812, allocations: 7.828 kB / 0.5148 GB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.475e-05/0.6813, allocations: 11.53 kB / 0.5148 GB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00254/0.6838, allocations: 225.2 kB / 0.5151 GB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.915e-05/0.6839, allocations: 11.78 kB / 0.5151 GB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/0.6857, allocations: 109.4 kB / 0.5152 GB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.6859, allocations: 33.94 kB / 0.5152 GB, free: 6.336 MB / 330.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.00033/0.6862, allocations: 126.2 kB / 0.5153 GB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004447/0.6867, allocations: 143.3 kB / 0.5155 GB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002177/0.6869, allocations: 63.55 kB / 0.5155 GB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.6869, allocations: 11.84 kB / 0.5155 GB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.6869, allocations: 0 / 0.5155 GB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.687, allocations: 7.828 kB / 0.5155 GB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005687/0.6927, allocations: 1.908 MB / 0.5174 GB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/0.6927, allocations: 15.66 kB / 0.5174 GB, free: 5.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001501/0.6942, allocations: 203.2 kB / 0.5176 GB, free: 5.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.346e-05/0.6943, allocations: 19.38 kB / 0.5176 GB, free: 5.004 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-05/0.6944, allocations: 11.53 kB / 0.5176 GB, free: 5.004 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.73e-05/0.6944, allocations: 19.31 kB / 0.5177 GB, free: 5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-05/0.6944, allocations: 19.56 kB / 0.5177 GB, free: 4.992 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002213/0.6966, allocations: 1.702 MB / 0.5193 GB, free: 3.574 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003165/0.697, allocations: 182.6 kB / 0.5195 GB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.541e-05/0.6971, allocations: 15.31 kB / 0.5195 GB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.6982, allocations: 89.72 kB / 0.5196 GB, free: 3.406 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002977/0.6985, allocations: 101.4 kB / 0.5197 GB, free: 3.355 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.539e-05/0.6986, allocations: 30.88 kB / 0.5197 GB, free: 3.355 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002194/0.6989, allocations: 186.5 kB / 0.5199 GB, free: 3.258 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.6989, allocations: 0 / 0.5199 GB, free: 3.258 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009652/0.6998, allocations: 99.22 kB / 0.52 GB, free: 3.258 MB / 330.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.0002011/0.7001, allocations: 133.3 kB / 0.5201 GB, free: 3.141 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001853/0.7019, allocations: 0.8238 MB / 0.5209 GB, free: 3.086 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/0.702, allocations: 0.5 kB / 0.5209 GB, free: 3.086 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006394/0.7026, allocations: 224.5 kB / 0.5212 GB, free: 3.043 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009612/0.7036, allocations: 114.5 kB / 0.5213 GB, free: 3.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002654/0.7062, allocations: 0.9674 MB / 0.5222 GB, free: 2.301 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.7066, allocations: 0.843 MB / 0.523 GB, free: 1.535 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001009/0.7077, allocations: 86.62 kB / 0.5231 GB, free: 1.484 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004635/0.7081, allocations: 49.39 kB / 0.5232 GB, free: 1.469 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.7081, allocations: 0 / 0.5232 GB, free: 1.469 MB / 330.7 MB Notification: Performance of Templates: time 0.02029/0.7284, allocations: 7.394 MB / 0.5304 GB, free: 11.77 MB / 346.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/jenkins1/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