Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000867/0.000867, allocations: 176.6 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.315/1.315, allocations: 205.4 MB / 222.6 MB, free: 9.102 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.0007256/0.0007255, allocations: 94.3 kB / 270.9 MB, free: 8.34 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.06965/0.06965, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000385/0.000385, allocations: 12 kB / 392.6 MB, free: 66.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07536/0.07576, allocations: 50.38 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.001858/0.07766, allocations: 1.953 MB / 445 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009487/0.07863, allocations: 0.8236 MB / 445.8 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.07875, allocations: 7.938 kB / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002077/0.07897, allocations: 35.77 kB / 445.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001345/0.07911, allocations: 43.69 kB / 445.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003538/0.07947, allocations: 139.8 kB / 446 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002247/0.07971, allocations: 343.5 kB / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.07986, allocations: 82.23 kB / 446.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000143/0.08001, allocations: 127.5 kB / 446.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001465/0.08016, allocations: 147.4 kB / 446.7 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.911e-05/0.08021, allocations: 20 kB / 446.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.724e-05/0.08025, allocations: 16 kB / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.941e-05/0.08032, allocations: 75.72 kB / 446.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.665e-05/0.08037, allocations: 65.58 kB / 446.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.08053, allocations: 231.7 kB / 447.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.08054, allocations: 0 / 447.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.08055, allocations: 0 / 447.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.08056, allocations: 0 / 447.1 MB, free: 11.68 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0009242/0.08149, allocations: 0.5848 MB / 447.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.08153, allocations: 12.03 kB / 447.7 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.21e-05/0.0816, allocations: 35.62 kB / 447.7 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002427/0.08185, allocations: 283.8 kB / 448 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001549/0.08201, allocations: 145.7 kB / 448.2 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.038e-05/0.08207, allocations: 28 kB / 448.2 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009464/0.08302, allocations: 0.5814 MB / 448.8 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.08305, allocations: 7.984 kB / 448.8 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.052e-05/0.08309, allocations: 12 kB / 448.8 MB, free: 9.859 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.0831, allocations: 4 kB / 448.8 MB, free: 9.855 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001183/0.08429, allocations: 0.5347 MB / 449.3 MB, free: 9.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.08544, allocations: 1.022 MB / 450.3 MB, free: 8.223 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/0.0868, allocations: 0.5147 MB / 450.9 MB, free: 7.672 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000537/0.08735, allocations: 271.8 kB / 451.1 MB, free: 7.395 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.154e-05/0.0874, allocations: 8.188 kB / 451.1 MB, free: 7.387 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.503e-05/0.08742, allocations: 42.69 kB / 451.2 MB, free: 7.336 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.472e-06/0.08743, allocations: 0 / 451.2 MB, free: 7.336 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03681/0.1242, allocations: 6.745 MB / 457.9 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.057e-05/0.1243, allocations: 145 kB / 458.1 MB, free: 416 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.1245, allocations: 203.4 kB / 458.3 MB, free: 204 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.117e-05/0.1246, allocations: 37.7 kB / 458.3 MB, free: 160 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.447e-05/0.1247, allocations: 137.5 kB / 458.4 MB, free: 20 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001998/0.1249, allocations: 193.5 kB / 458.6 MB, free: 15.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.796e-05/0.1249, allocations: 16 kB / 458.6 MB, free: 15.81 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.1251, allocations: 342.8 kB / 459 MB, free: 15.46 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00156/0.1266, allocations: 0.65 MB / 459.6 MB, free: 14.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/0.1283, allocations: 0.8354 MB / 460.5 MB, free: 13.9 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.1298, allocations: 0.6059 MB / 461.1 MB, free: 13.3 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1299, allocations: 0 / 461.1 MB, free: 13.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003429/0.1333, allocations: 1.464 MB / 462.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.1333, allocations: 7.781 kB / 462.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.1333, allocations: 12.36 kB / 462.5 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/0.1334, allocations: 8 kB / 462.6 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.1347, allocations: 235.7 kB / 462.8 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.757e-05/0.1347, allocations: 15.92 kB / 462.8 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009546/0.1357, allocations: 127.7 kB / 462.9 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.821e-05/0.1358, allocations: 35.92 kB / 463 MB, free: 11.39 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.0003121/0.1361, allocations: 181.5 kB / 463.1 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002828/0.1364, allocations: 157.1 kB / 463.3 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001338/0.1365, allocations: 63.27 kB / 463.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.1366, allocations: 12 kB / 463.4 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.1366, allocations: 3.938 kB / 463.4 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.1366, allocations: 7.984 kB / 463.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004651/0.1412, allocations: 2.281 MB / 465.7 MB, free: 8.496 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.1413, allocations: 8 kB / 465.7 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007437/0.142, allocations: 204.5 kB / 465.9 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.591e-05/0.1421, allocations: 16 kB / 465.9 MB, free: 8.273 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.134e-05/0.1421, allocations: 31.95 kB / 465.9 MB, free: 8.242 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-05/0.1421, allocations: 15.94 kB / 465.9 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.059e-05/0.1421, allocations: 19.94 kB / 465.9 MB, free: 8.207 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003132/0.1453, allocations: 1.654 MB / 467.6 MB, free: 6.402 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000192/0.1455, allocations: 168.6 kB / 467.8 MB, free: 6.219 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.156e-05/0.1456, allocations: 20 kB / 467.8 MB, free: 6.199 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005799/0.1461, allocations: 103.9 kB / 467.9 MB, free: 6.098 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.1463, allocations: 103.7 kB / 468 MB, free: 5.996 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.1464, allocations: 28 kB / 468 MB, free: 5.969 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001229/0.1465, allocations: 145.2 kB / 468.2 MB, free: 5.828 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1465, allocations: 0 / 468.2 MB, free: 5.828 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006/0.1471, allocations: 116 kB / 468.3 MB, free: 5.715 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.0001776/0.1473, allocations: 138.9 kB / 468.4 MB, free: 5.57 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002771/0.1501, allocations: 1.186 MB / 469.6 MB, free: 4.387 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.1501, allocations: 7.938 kB / 469.6 MB, free: 4.379 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000981/0.1511, allocations: 379.2 kB / 470 MB, free: 4.012 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008075/0.1519, allocations: 137.6 kB / 470.1 MB, free: 3.879 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002274/0.1542, allocations: 1.375 MB / 471.5 MB, free: 2.332 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003748/0.1546, allocations: 0.8129 MB / 472.3 MB, free: 1.492 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003207/0.1549, allocations: 43.42 kB / 472.3 MB, free: 1.449 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.1549, allocations: 0 / 472.3 MB, free: 1.449 MB / 314.7 MB Notification: Performance of Templates: time 0.009507/0.1645, allocations: 7.131 MB / 479.5 MB, free: 10.29 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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),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,periodicRealClock.period,periodicRealClock.useSolver,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,speed.flange.phi,speed.flange.tau,speed.w,subSample1.factor,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau