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.0009352/0.0009352, allocations: 175.4 kB / 16.45 MB, free: 5.684 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.261/1.261, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0006924/0.0006925, allocations: 97.27 kB / 270.9 MB, free: 8.352 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.06349/0.06349, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003964, allocations: 16 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07382/0.07423, allocations: 50.37 MB / 443 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.001844/0.07612, allocations: 1.988 MB / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.07714, allocations: 0.8469 MB / 445.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.07728, allocations: 7.938 kB / 445.9 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002018/0.07749, allocations: 43.7 kB / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.07765, allocations: 51.67 kB / 446 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00039/0.07805, allocations: 163.6 kB / 446.1 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002288/0.07829, allocations: 351.5 kB / 446.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.07843, allocations: 82.11 kB / 446.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.07858, allocations: 135.5 kB / 446.7 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.07873, allocations: 159.3 kB / 446.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.821e-05/0.07878, allocations: 16 kB / 446.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.813e-05/0.07882, allocations: 16 kB / 446.9 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.648e-05/0.0789, allocations: 83.7 kB / 446.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.977e-05/0.07895, allocations: 77.52 kB / 447 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001619/0.07912, allocations: 251.6 kB / 447.3 MB, free: 11.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.07913, allocations: 0 / 447.3 MB, free: 11.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.07914, allocations: 0 / 447.3 MB, free: 11.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.07915, allocations: 0 / 447.3 MB, free: 11.53 MB / 298.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.000934/0.08009, allocations: 0.6274 MB / 447.9 MB, free: 10.85 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.833e-05/0.08013, allocations: 12.03 kB / 447.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.798e-05/0.0802, allocations: 43.53 kB / 447.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002737/0.08048, allocations: 294 kB / 448.2 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001584/0.08065, allocations: 149.7 kB / 448.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.708e-05/0.0807, allocations: 28 kB / 448.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.08174, allocations: 0.5853 MB / 449 MB, free: 9.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.08177, allocations: 4 kB / 449 MB, free: 9.656 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.08181, allocations: 12 kB / 449 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.08182, allocations: 11.94 kB / 449 MB, free: 9.633 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00117/0.08299, allocations: 0.5347 MB / 449.6 MB, free: 9.098 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.08415, allocations: 1.041 MB / 450.6 MB, free: 7.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001376/0.08554, allocations: 0.5147 MB / 451.1 MB, free: 7.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005323/0.08609, allocations: 275.8 kB / 451.4 MB, free: 7.148 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.786e-05/0.08613, allocations: 8.188 kB / 451.4 MB, free: 7.141 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.08616, allocations: 46.67 kB / 451.4 MB, free: 7.086 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.673e-06/0.08617, allocations: 0 / 451.4 MB, free: 7.086 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03788/0.1241, allocations: 6.781 MB / 458.2 MB, free: 296 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.499e-05/0.1242, allocations: 152.9 kB / 458.4 MB, free: 112 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002849/0.1245, allocations: 262.5 kB / 458.6 MB, free: 15.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.085e-05/0.1245, allocations: 37.7 kB / 458.7 MB, free: 15.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.996e-05/0.1247, allocations: 157.4 kB / 458.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001749/0.1248, allocations: 189.3 kB / 459 MB, free: 15.46 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.436e-05/0.1249, allocations: 8 kB / 459 MB, free: 15.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1251, allocations: 342.8 kB / 459.3 MB, free: 15.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.1266, allocations: 0.6578 MB / 460 MB, free: 14.45 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/0.1283, allocations: 0.8315 MB / 460.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.1298, allocations: 0.5981 MB / 461.4 MB, free: 12.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.1299, allocations: 8 kB / 461.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003435/0.1333, allocations: 1.46 MB / 462.9 MB, free: 11.47 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.1333, allocations: 11.95 kB / 462.9 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.1333, allocations: 8 kB / 462.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.1334, allocations: 8 kB / 462.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.1347, allocations: 231.7 kB / 463.1 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/0.1347, allocations: 12.31 kB / 463.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009593/0.1357, allocations: 127.7 kB / 463.3 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-05/0.1358, allocations: 24 kB / 463.3 MB, free: 11.06 MB / 314.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003023/0.1361, allocations: 197.7 kB / 463.5 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002893/0.1364, allocations: 161.1 kB / 463.7 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001361/0.1365, allocations: 71.56 kB / 463.7 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.1365, allocations: 8 kB / 463.7 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.1365, allocations: 4 kB / 463.7 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.1366, allocations: 3.984 kB / 463.7 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004673/0.1412, allocations: 2.3 MB / 466 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.1413, allocations: 12 kB / 466.1 MB, free: 8.105 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007465/0.142, allocations: 204.6 kB / 466.3 MB, free: 7.906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-05/0.142, allocations: 16 kB / 466.3 MB, free: 7.891 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.867e-05/0.1421, allocations: 31.95 kB / 466.3 MB, free: 7.859 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-05/0.1421, allocations: 19.92 kB / 466.3 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-05/0.1421, allocations: 19.94 kB / 466.3 MB, free: 7.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003066/0.1452, allocations: 1.662 MB / 468 MB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002055/0.1454, allocations: 176.7 kB / 468.2 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.741e-05/0.1455, allocations: 31.98 kB / 468.2 MB, free: 5.785 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006118/0.1461, allocations: 99.94 kB / 468.3 MB, free: 5.688 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.1463, allocations: 99.69 kB / 468.4 MB, free: 5.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.554e-05/0.1464, allocations: 39.89 kB / 468.4 MB, free: 5.551 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001695/0.1465, allocations: 185.9 kB / 468.6 MB, free: 5.371 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1465, allocations: 0 / 468.6 MB, free: 5.371 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006123/0.1472, allocations: 124 kB / 468.7 MB, free: 5.25 MB / 314.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0001428/0.1473, allocations: 135 kB / 468.9 MB, free: 5.109 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002775/0.1501, allocations: 1.19 MB / 470.1 MB, free: 3.918 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1501, allocations: 0 / 470.1 MB, free: 3.918 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009737/0.1511, allocations: 379.3 kB / 470.4 MB, free: 3.551 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008608/0.152, allocations: 164.5 kB / 470.6 MB, free: 3.391 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00245/0.1544, allocations: 1.439 MB / 472 MB, free: 1.777 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.1548, allocations: 0.8327 MB / 472.9 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003125/0.1552, allocations: 43.44 kB / 472.9 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of SimCode: time 4.31e-07/0.1552, allocations: 0 / 472.9 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of Templates: time 0.01027/0.1654, allocations: 7.311 MB / 480.2 MB, free: 9.551 MB / 330.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.u,PI.x,PI.y,angle.flange.phi,angle.flange.tau,angle.phi,der(load.w),der(speed.flange.phi),fastClock.factor,fastClock.resolution,fastClock.useSolver,feedback1.u1,feedback1.u2,feedback1.y,feedback2.u1,feedback2.u2,feedback2.y,gain.k,gain.u,gain.y,hold1.u,hold1.y,hold1.y_start,kinematicPTP.endTime,kinematicPTP.moving[1],kinematicPTP.nout,kinematicPTP.q[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd[1],kinematicPTP.qd_max[1],kinematicPTP.qdd[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.a,load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.w,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,slowClock.factor,slowClock.resolution,slowClock.useSolver,speed.flange.phi,speed.flange.tau,speed.w,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau