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.001142/0.001142, allocations: 178.9 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.536/1.536, 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.0007758/0.0007759, allocations: 99.86 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.07276/0.07276, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003436/0.0003437, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07641/0.07677, allocations: 50.37 MB / 442.4 MB, free: 16.47 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.0018/0.0786, allocations: 1.961 MB / 444.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.07964, allocations: 0.8158 MB / 445.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.07976, allocations: 7.938 kB / 445.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.0799, allocations: 39.75 kB / 445.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.08003, allocations: 47.69 kB / 445.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.08037, allocations: 139.8 kB / 445.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002104/0.08059, allocations: 335.6 kB / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.08071, allocations: 86.23 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.08085, allocations: 127.5 kB / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.08099, allocations: 147.4 kB / 446 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.594e-05/0.08104, allocations: 20 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.381e-05/0.08108, allocations: 19.94 kB / 446.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.271e-05/0.08114, allocations: 79.7 kB / 446.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.376e-05/0.08119, allocations: 65.58 kB / 446.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001399/0.08133, allocations: 223.7 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.08134, allocations: 0 / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.113e-06/0.08135, allocations: 0 / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.08136, allocations: 0 / 446.4 MB, free: 12.34 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.000855/0.08222, allocations: 0.5887 MB / 447 MB, free: 11.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.191e-05/0.08225, allocations: 12.03 kB / 447 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.416e-05/0.08231, allocations: 35.62 kB / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002102/0.08253, allocations: 279.8 kB / 447.4 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/0.08272, allocations: 145.7 kB / 447.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.664e-05/0.08278, allocations: 28 kB / 447.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009577/0.08375, allocations: 0.5775 MB / 448.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.08377, allocations: 3.938 kB / 448.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.08381, allocations: 20 kB / 448.1 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.08382, allocations: 4 kB / 448.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.08501, allocations: 0.5308 MB / 448.7 MB, free: 9.992 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.08611, allocations: 1.026 MB / 449.7 MB, free: 8.891 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/0.08749, allocations: 0.5108 MB / 450.2 MB, free: 8.344 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005286/0.08803, allocations: 275.8 kB / 450.5 MB, free: 8.062 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.744e-05/0.08808, allocations: 8.188 kB / 450.5 MB, free: 8.055 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.518e-05/0.0881, allocations: 38.75 kB / 450.5 MB, free: 8.008 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.844e-06/0.08811, allocations: 0 / 450.5 MB, free: 8.008 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03669/0.1248, allocations: 6.752 MB / 457.3 MB, free: 1.242 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.086e-05/0.1249, allocations: 144.9 kB / 457.4 MB, free: 1.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.1251, allocations: 203.4 kB / 457.6 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.343e-05/0.1252, allocations: 37.7 kB / 457.6 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.871e-05/0.1252, allocations: 141.9 kB / 457.8 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001393/0.1254, allocations: 197.3 kB / 458 MB, free: 496 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.437e-05/0.1255, allocations: 16 kB / 458 MB, free: 480 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.063e-05/0.1255, allocations: 338.8 kB / 458.3 MB, free: 132 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002141/0.1277, allocations: 0.6578 MB / 459 MB, free: 15.47 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003031/0.1307, allocations: 0.8277 MB / 459.8 MB, free: 14.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002745/0.1335, allocations: 0.6098 MB / 460.4 MB, free: 13.96 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.1335, allocations: 0 / 460.4 MB, free: 13.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.005918/0.1395, allocations: 1.468 MB / 461.9 MB, free: 12.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.1395, allocations: 7.953 kB / 461.9 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/0.1396, allocations: 8 kB / 461.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.093e-05/0.1396, allocations: 8 kB / 461.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00225/0.1419, allocations: 235.7 kB / 462.1 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.835e-05/0.1419, allocations: 8 kB / 462.1 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001829/0.1438, allocations: 119.8 kB / 462.3 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001552/0.144, allocations: 28 kB / 462.3 MB, free: 12.07 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.0005516/0.1445, allocations: 189.6 kB / 462.5 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005892/0.1451, allocations: 161.1 kB / 462.6 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002241/0.1454, allocations: 67.25 kB / 462.7 MB, free: 11.65 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.646e-05/0.1454, allocations: 8 kB / 462.7 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.1454, allocations: 0 / 462.7 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/0.1455, allocations: 7.984 kB / 462.7 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008191/0.1537, allocations: 2.285 MB / 465 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.809e-05/0.1537, allocations: 8 kB / 465 MB, free: 9.156 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/0.1551, allocations: 204.4 kB / 465.2 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.421e-05/0.1552, allocations: 16 kB / 465.2 MB, free: 8.941 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.476e-05/0.1553, allocations: 27.95 kB / 465.2 MB, free: 8.914 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-05/0.1553, allocations: 19.92 kB / 465.3 MB, free: 8.895 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.949e-05/0.1554, allocations: 15.94 kB / 465.3 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006244/0.1616, allocations: 1.662 MB / 466.9 MB, free: 7.066 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004116/0.1621, allocations: 156.8 kB / 467.1 MB, free: 6.895 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.1622, allocations: 31.98 kB / 467.1 MB, free: 6.863 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.1635, allocations: 103.9 kB / 467.2 MB, free: 6.762 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003286/0.1638, allocations: 99.7 kB / 467.3 MB, free: 6.664 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.729e-05/0.1639, allocations: 35.94 kB / 467.4 MB, free: 6.629 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000224/0.1642, allocations: 137.2 kB / 467.5 MB, free: 6.496 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1642, allocations: 4 kB / 467.5 MB, free: 6.492 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001188/0.1654, allocations: 120 kB / 467.6 MB, free: 6.375 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.0002603/0.1657, allocations: 138.9 kB / 467.8 MB, free: 6.23 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005203/0.1709, allocations: 1.182 MB / 468.9 MB, free: 5.051 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/0.1709, allocations: 7.938 kB / 468.9 MB, free: 5.043 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001931/0.1729, allocations: 371.2 kB / 469.3 MB, free: 4.684 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/0.1745, allocations: 140.2 kB / 469.4 MB, free: 4.547 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004696/0.1792, allocations: 1.387 MB / 470.8 MB, free: 2.988 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006424/0.1799, allocations: 0.8129 MB / 471.6 MB, free: 2.148 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005714/0.1805, allocations: 39.44 kB / 471.7 MB, free: 2.109 MB / 314.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1805, allocations: 0 / 471.7 MB, free: 2.109 MB / 314.7 MB Notification: Performance of Templates: time 0.01959/0.2001, allocations: 7.131 MB / 478.8 MB, free: 10.95 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/jenkins/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,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