Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.002661/0.002666, allocations: 181.6 kB / 16.44 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.368/4.368, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.00254/0.00254, allocations: 81.73 kB / 270.9 MB, free: 8.375 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.2056/0.2056, allocations: 12.61 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009772/0.0009775, allocations: 12 kB / 392 MB, free: 66.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1634, allocations: 50.38 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.006557/0.1701, allocations: 1.926 MB / 444.3 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003417/0.1736, allocations: 0.8197 MB / 445.1 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004825/0.1742, allocations: 7.938 kB / 445.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004492/0.1747, allocations: 35.77 kB / 445.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005013/0.1752, allocations: 51.84 kB / 445.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001183/0.1764, allocations: 143.6 kB / 445.3 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008442/0.1773, allocations: 232 kB / 445.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003954/0.1777, allocations: 74.25 kB / 445.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005805/0.1784, allocations: 131.6 kB / 445.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004703/0.1789, allocations: 151.4 kB / 445.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001097/0.179, allocations: 16 kB / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.956e-05/0.1791, allocations: 16 kB / 445.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001675/0.1793, allocations: 79.66 kB / 446 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001513/0.1795, allocations: 69.58 kB / 446.1 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005542/0.1801, allocations: 227.7 kB / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1801, allocations: 0 / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.837e-06/0.1802, allocations: 0 / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.1802, allocations: 0 / 446.3 MB, free: 12.5 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.002654/0.1829, allocations: 0.5887 MB / 446.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.288e-05/0.183, allocations: 8.031 kB / 446.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002307/0.1832, allocations: 39.62 kB / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007346/0.184, allocations: 271.9 kB / 447.2 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004597/0.1845, allocations: 141.7 kB / 447.3 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001623/0.1847, allocations: 32 kB / 447.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002926/0.1876, allocations: 0.5814 MB / 447.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.61e-05/0.1878, allocations: 3.938 kB / 448 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001154/0.1879, allocations: 12 kB / 448 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.777e-05/0.188, allocations: 4 kB / 448 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003783/0.1918, allocations: 0.5425 MB / 448.5 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004339/0.1962, allocations: 1.022 MB / 449.5 MB, free: 9.051 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004412/0.2007, allocations: 0.5069 MB / 450 MB, free: 8.508 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001315/0.2009, allocations: 12.41 kB / 450 MB, free: 8.496 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.088e-05/0.201, allocations: 42.75 kB / 450.1 MB, free: 8.445 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 6.252e-06/0.201, allocations: 0 / 450.1 MB, free: 8.445 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.1295/0.3305, allocations: 6.747 MB / 456.8 MB, free: 1.684 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000151/0.3307, allocations: 145 kB / 457 MB, free: 1.512 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004667/0.3312, allocations: 203.4 kB / 457.2 MB, free: 1.305 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002716/0.3315, allocations: 37.7 kB / 457.2 MB, free: 1.262 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.3317, allocations: 207.9 kB / 457.4 MB, free: 1.059 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003848/0.3321, allocations: 189.3 kB / 457.6 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.3323, allocations: 16 kB / 457.6 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.3324, allocations: 339.2 kB / 457.9 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004734/0.3372, allocations: 0.65 MB / 458.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005483/0.3428, allocations: 0.8276 MB / 459.4 MB, free: 14.96 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004783/0.3476, allocations: 0.602 MB / 460 MB, free: 14.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-05/0.3477, allocations: 7.938 kB / 460 MB, free: 14.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.01099/0.3587, allocations: 1.456 MB / 461.5 MB, free: 12.89 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.194e-05/0.3589, allocations: 11.98 kB / 461.5 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.027e-05/0.3589, allocations: 7.953 kB / 461.5 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.079e-05/0.359, allocations: 8 kB / 461.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004154/0.3632, allocations: 231.7 kB / 461.7 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-05/0.3633, allocations: 12.25 kB / 461.8 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002946/0.3662, allocations: 123.8 kB / 461.9 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003145/0.3666, allocations: 24 kB / 461.9 MB, free: 12.48 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.0008374/0.3675, allocations: 193.3 kB / 462.1 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008463/0.3684, allocations: 157.1 kB / 462.2 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003766/0.3688, allocations: 63.3 kB / 462.3 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.063e-05/0.3689, allocations: 11.95 kB / 462.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.948e-05/0.3689, allocations: 4 kB / 462.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.28e-05/0.369, allocations: 3.984 kB / 462.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01491/0.3839, allocations: 2.285 MB / 464.6 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.354e-05/0.384, allocations: 11.98 kB / 464.6 MB, free: 9.555 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002331/0.3864, allocations: 212.6 kB / 464.8 MB, free: 9.348 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.195e-05/0.3865, allocations: 12 kB / 464.8 MB, free: 9.336 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002084/0.3867, allocations: 28 kB / 464.9 MB, free: 9.309 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.749e-05/0.3868, allocations: 27.88 kB / 464.9 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.778e-05/0.3869, allocations: 15.94 kB / 464.9 MB, free: 9.266 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/0.3976, allocations: 2.173 MB / 467.1 MB, free: 6.672 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006801/0.3984, allocations: 160.6 kB / 467.2 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002156/0.3986, allocations: 31.98 kB / 467.3 MB, free: 6.465 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001828/0.4005, allocations: 95.98 kB / 467.4 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000598/0.4011, allocations: 99.84 kB / 467.5 MB, free: 6.273 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001726/0.4014, allocations: 32 kB / 467.5 MB, free: 6.242 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003836/0.4018, allocations: 145.1 kB / 467.6 MB, free: 6.102 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.333e-06/0.4018, allocations: 0 / 467.6 MB, free: 6.102 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001939/0.4038, allocations: 128 kB / 467.8 MB, free: 5.977 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.0004506/0.4043, allocations: 130.9 kB / 467.9 MB, free: 5.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.009394/0.4137, allocations: 1.182 MB / 469.1 MB, free: 4.66 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.118e-05/0.4138, allocations: 0 / 469.1 MB, free: 4.66 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003371/0.4172, allocations: 383.2 kB / 469.4 MB, free: 4.289 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/0.4192, allocations: 132.1 kB / 469.6 MB, free: 4.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006884/0.4262, allocations: 1.371 MB / 470.9 MB, free: 2.617 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009259/0.4272, allocations: 0.8168 MB / 471.8 MB, free: 1.773 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009543/0.4282, allocations: 47.42 kB / 471.8 MB, free: 1.727 MB / 314.7 MB Notification: Performance of SimCode: time 2.295e-06/0.4283, allocations: 0 / 471.8 MB, free: 1.727 MB / 314.7 MB Notification: Performance of Templates: time 0.03098/0.4593, allocations: 6.936 MB / 478.7 MB, free: 10.76 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_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,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,der(load.w),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,der(speed.flange.phi),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