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.001222/0.001222, allocations: 181.9 kB / 13.23 MB, free: 2.086 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.774/1.774, allocations: 205.2 MB / 219 MB, free: 9.207 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.0007966/0.0007966, allocations: 92.45 kB / 267.1 MB, free: 9.273 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.07373/0.07373, allocations: 12.6 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.59e-05/2.591e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07185/0.07189, allocations: 50.37 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3034/0.3754, allocations: 82.16 MB / 0.5064 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001829/0.3756, allocations: 81.73 kB / 0.5064 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0181/0.3937, allocations: 7.123 MB / 0.5134 GB, free: 9.199 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.609e-06/0.3938, allocations: 4 kB / 0.5134 GB, free: 9.195 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.643e-05/0.3938, allocations: 11.62 kB / 0.5134 GB, free: 9.191 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.001466/0.3953, allocations: 0.5982 MB / 0.514 GB, free: 8.711 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.241e-05/0.3954, allocations: 7.688 kB / 0.514 GB, free: 8.711 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001901/0.3956, allocations: 50.25 kB / 0.514 GB, free: 8.688 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000534/0.3961, allocations: 287.8 kB / 0.5143 GB, free: 8.434 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.3964, allocations: 148.8 kB / 0.5145 GB, free: 8.324 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.3965, allocations: 29.5 kB / 0.5145 GB, free: 8.324 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/0.3976, allocations: 0.5069 MB / 0.515 GB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.762e-05/0.3977, allocations: 3.938 kB / 0.515 GB, free: 8.141 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.854e-05/0.3977, allocations: 10.44 kB / 0.515 GB, free: 8.141 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.3978, allocations: 11.81 kB / 0.515 GB, free: 8.137 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007383/0.3985, allocations: 417.5 kB / 0.5154 GB, free: 8.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001818/0.4003, allocations: 1.034 MB / 0.5164 GB, free: 7.383 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008887/0.4012, allocations: 426 kB / 0.5168 GB, free: 7.242 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002821/0.4015, allocations: 212.6 kB / 0.517 GB, free: 7.195 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.587e-05/0.4016, allocations: 15.5 kB / 0.517 GB, free: 7.191 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.4016, allocations: 33.69 kB / 0.5171 GB, free: 7.152 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 1.884e-06/0.4016, allocations: 0 / 0.5171 GB, free: 7.152 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.007272/0.4089, allocations: 2.125 MB / 0.5192 GB, free: 6.035 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.118e-05/0.409, allocations: 143.7 kB / 0.5193 GB, free: 5.871 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.4092, allocations: 238.3 kB / 0.5195 GB, free: 5.672 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.099e-05/0.4093, allocations: 35.86 kB / 0.5195 GB, free: 5.641 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.393e-05/0.4094, allocations: 154.8 kB / 0.5197 GB, free: 5.5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.4095, allocations: 189.7 kB / 0.5199 GB, free: 5.344 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-05/0.4096, allocations: 14.62 kB / 0.5199 GB, free: 5.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.469e-05/0.4097, allocations: 349.2 kB / 0.5202 GB, free: 5.004 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006127/0.4103, allocations: 478.8 kB / 0.5207 GB, free: 4.777 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006714/0.411, allocations: 0.6452 MB / 0.5213 GB, free: 4.312 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005801/0.4115, allocations: 432.4 kB / 0.5217 GB, free: 4.074 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.4116, allocations: 4 kB / 0.5217 GB, free: 4.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001561/0.4131, allocations: 1.107 MB / 0.5228 GB, free: 3.395 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.4132, allocations: 12.12 kB / 0.5228 GB, free: 3.383 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.4132, allocations: 8 kB / 0.5228 GB, free: 3.375 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.4132, allocations: 8 kB / 0.5228 GB, free: 3.367 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001241/0.4144, allocations: 231.3 kB / 0.5231 GB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.975e-05/0.4145, allocations: 15.89 kB / 0.5231 GB, free: 3.133 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000916/0.4154, allocations: 123.3 kB / 0.5232 GB, free: 3.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.557e-05/0.4155, allocations: 23.88 kB / 0.5232 GB, free: 3.004 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.000197/0.4157, allocations: 155.2 kB / 0.5234 GB, free: 2.867 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002644/0.416, allocations: 155.9 kB / 0.5235 GB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001836/0.4162, allocations: 68.58 kB / 0.5236 GB, free: 2.719 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.4162, allocations: 8 kB / 0.5236 GB, free: 2.711 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.4162, allocations: 4 kB / 0.5236 GB, free: 2.707 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.4162, allocations: 7.938 kB / 0.5236 GB, free: 2.699 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003185/0.4194, allocations: 2.029 MB / 0.5256 GB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/0.4194, allocations: 16 kB / 0.5256 GB, free: 0.8945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007277/0.4202, allocations: 207.5 kB / 0.5258 GB, free: 0.6992 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.491e-05/0.4202, allocations: 16 kB / 0.5258 GB, free: 0.6836 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.464e-05/0.4202, allocations: 27.88 kB / 0.5258 GB, free: 0.6641 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.296e-05/0.4203, allocations: 19.92 kB / 0.5258 GB, free: 0.6445 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.047e-05/0.4203, allocations: 19.88 kB / 0.5259 GB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001911/0.4222, allocations: 1.755 MB / 0.5276 GB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002467/0.4225, allocations: 178.8 kB / 0.5278 GB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.325e-05/0.4225, allocations: 30.17 kB / 0.5278 GB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006331/0.4232, allocations: 98.73 kB / 0.5279 GB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.4234, allocations: 110.7 kB / 0.528 GB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.288e-05/0.4235, allocations: 27.69 kB / 0.528 GB, free: 14.39 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001758/0.4236, allocations: 192.2 kB / 0.5282 GB, free: 14.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4236, allocations: 0 / 0.5282 GB, free: 14.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006419/0.4243, allocations: 125.5 kB / 0.5283 GB, free: 14.13 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 () * 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.0001993/0.4245, allocations: 141.7 kB / 0.5284 GB, free: 13.99 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001319/0.4258, allocations: 0.8702 MB / 0.5293 GB, free: 13.49 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4258, allocations: 0 / 0.5293 GB, free: 13.49 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004386/0.4263, allocations: 235.9 kB / 0.5295 GB, free: 13.32 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006494/0.4269, allocations: 130.8 kB / 0.5296 GB, free: 13.22 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.429, allocations: 1.019 MB / 0.5306 GB, free: 12.19 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004715/0.4295, allocations: 0.8396 MB / 0.5315 GB, free: 11.33 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006075/0.4302, allocations: 96.14 kB / 0.5316 GB, free: 11.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002881/0.4304, allocations: 35.44 kB / 0.5316 GB, free: 11.2 MB / 346.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4305, allocations: 0 / 0.5316 GB, free: 11.2 MB / 346.7 MB Notification: Performance of Templates: time 0.01334/0.4438, allocations: 7.548 MB / 0.539 GB, free: 3.672 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/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