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.0009721/0.000972, allocations: 171.8 kB / 16.8 MB, free: 5.004 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.501/1.501, allocations: 205.4 MB / 223 MB, free: 9.02 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.0012/0.0012, allocations: 83.39 kB / 271.3 MB, free: 8.254 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.07786/0.07786, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004284/0.0004285, allocations: 15.98 kB / 393.2 MB, free: 65.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0954/0.09584, allocations: 50.37 MB / 443.6 MB, free: 15.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3215/0.4174, allocations: 82.29 MB / 0.5136 GB, free: 12.51 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002048/0.4177, allocations: 74.97 kB / 0.5136 GB, free: 12.5 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0181/0.4358, allocations: 7.145 MB / 0.5206 GB, free: 7.648 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.4358, allocations: 0 / 0.5206 GB, free: 7.648 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.668e-05/0.4359, allocations: 11.36 kB / 0.5206 GB, free: 7.641 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.0012/0.4371, allocations: 0.6326 MB / 0.5212 GB, free: 6.984 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.4372, allocations: 11.97 kB / 0.5212 GB, free: 6.973 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.4373, allocations: 48.45 kB / 0.5213 GB, free: 6.926 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003858/0.4377, allocations: 292.4 kB / 0.5216 GB, free: 6.625 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001827/0.4379, allocations: 152 kB / 0.5217 GB, free: 6.473 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.062e-05/0.438, allocations: 31.19 kB / 0.5217 GB, free: 6.453 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.4393, allocations: 0.5841 MB / 0.5223 GB, free: 5.988 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.529e-05/0.4393, allocations: 3.906 kB / 0.5223 GB, free: 5.984 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.075e-05/0.4394, allocations: 10.56 kB / 0.5223 GB, free: 5.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.4394, allocations: 8 kB / 0.5223 GB, free: 5.973 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/0.4407, allocations: 0.5436 MB / 0.5229 GB, free: 5.555 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.4421, allocations: 1.051 MB / 0.5239 GB, free: 4.621 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.4434, allocations: 0.502 MB / 0.5244 GB, free: 4.191 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00061/0.444, allocations: 277.5 kB / 0.5247 GB, free: 3.988 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.971e-05/0.4441, allocations: 8 kB / 0.5247 GB, free: 3.98 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.4441, allocations: 42.31 kB / 0.5247 GB, free: 3.934 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 2.445e-06/0.4442, allocations: 0 / 0.5247 GB, free: 3.934 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.03454/0.4787, allocations: 6.793 MB / 0.5313 GB, free: 13.85 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/0.4789, allocations: 154.8 kB / 0.5315 GB, free: 13.67 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003405/0.4792, allocations: 267.3 kB / 0.5317 GB, free: 13.45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001028/0.4793, allocations: 39.2 kB / 0.5318 GB, free: 13.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.4795, allocations: 154.1 kB / 0.5319 GB, free: 13.28 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002008/0.4797, allocations: 190.3 kB / 0.5321 GB, free: 13.12 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/0.4797, allocations: 11 kB / 0.5321 GB, free: 13.12 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.4799, allocations: 345.1 kB / 0.5324 GB, free: 12.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001526/0.4814, allocations: 0.6578 MB / 0.5331 GB, free: 12.37 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/0.4831, allocations: 0.8397 MB / 0.5339 GB, free: 11.71 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003006/0.4862, allocations: 1.336 MB / 0.5352 GB, free: 10.74 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.4862, allocations: 0 / 0.5352 GB, free: 10.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003696/0.4899, allocations: 1.481 MB / 0.5367 GB, free: 9.727 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.4899, allocations: 8 kB / 0.5367 GB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.4899, allocations: 12.12 kB / 0.5367 GB, free: 9.707 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.475e-05/0.49, allocations: 12 kB / 0.5367 GB, free: 9.695 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/0.4913, allocations: 230.2 kB / 0.5369 GB, free: 9.477 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.642e-05/0.4913, allocations: 19.86 kB / 0.5369 GB, free: 9.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009224/0.4922, allocations: 118.4 kB / 0.537 GB, free: 9.352 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.931e-05/0.4923, allocations: 27.55 kB / 0.5371 GB, free: 9.328 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.0003204/0.4927, allocations: 194.2 kB / 0.5372 GB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003018/0.493, allocations: 158.8 kB / 0.5374 GB, free: 9.031 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001572/0.4931, allocations: 67.3 kB / 0.5375 GB, free: 9.012 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.4931, allocations: 8.234 kB / 0.5375 GB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.4932, allocations: 3.938 kB / 0.5375 GB, free: 9 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.4932, allocations: 11.97 kB / 0.5375 GB, free: 8.988 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004932/0.4981, allocations: 2.323 MB / 0.5398 GB, free: 6.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.312e-05/0.4982, allocations: 12.09 kB / 0.5398 GB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007881/0.499, allocations: 207.5 kB / 0.54 GB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.862e-05/0.499, allocations: 15.94 kB / 0.54 GB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.218e-05/0.4991, allocations: 23.69 kB / 0.54 GB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.83e-05/0.4991, allocations: 23.92 kB / 0.54 GB, free: 6.656 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.159e-05/0.4991, allocations: 15.94 kB / 0.54 GB, free: 6.641 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003282/0.5024, allocations: 1.68 MB / 0.5417 GB, free: 5.125 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002392/0.5027, allocations: 182.1 kB / 0.5419 GB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.449e-05/0.5027, allocations: 31.11 kB / 0.5419 GB, free: 4.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005941/0.5033, allocations: 102.6 kB / 0.542 GB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002135/0.5036, allocations: 102.2 kB / 0.5421 GB, free: 4.754 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.366e-05/0.5036, allocations: 31.75 kB / 0.5421 GB, free: 4.727 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002174/0.5038, allocations: 193.7 kB / 0.5423 GB, free: 4.57 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5039, allocations: 3.938 kB / 0.5423 GB, free: 4.566 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007243/0.5046, allocations: 126 kB / 0.5424 GB, free: 4.461 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.0002132/0.5048, allocations: 137 kB / 0.5426 GB, free: 4.332 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002733/0.5075, allocations: 1.199 MB / 0.5437 GB, free: 3.504 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.249e-06/0.5076, allocations: 4 kB / 0.5437 GB, free: 3.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009861/0.5086, allocations: 383.7 kB / 0.5441 GB, free: 3.184 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.5098, allocations: 147.9 kB / 0.5442 GB, free: 3.078 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002663/0.5124, allocations: 1.432 MB / 0.5456 GB, free: 1.629 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004587/0.5129, allocations: 0.8281 MB / 0.5464 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006411/0.5136, allocations: 100.1 kB / 0.5465 GB, free: 0.6797 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002813/0.5139, allocations: 38.56 kB / 0.5466 GB, free: 0.6445 MB / 346.7 MB Notification: Performance of SimCode: time 8.02e-07/0.5139, allocations: 0 / 0.5466 GB, free: 0.6445 MB / 346.7 MB Notification: Performance of Templates: time 0.0141/0.528, allocations: 7.573 MB / 0.554 GB, free: 9.082 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/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