Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,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.SuperSampled") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,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.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002853/0.002861, allocations: 189.3 kB / 16.45 MB, free: 5.582 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.411/4.411, allocations: 205.4 MB / 222.6 MB, free: 13.84 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.002085/0.002085, allocations: 98.78 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1947/0.1947, allocations: 12.59 MB / 331.8 MB, free: 10.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 14.95 kB / 392 MB, free: 54.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1806, allocations: 50.38 MB / 442.3 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.005599/0.1863, allocations: 1.914 MB / 444.3 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002649/0.189, allocations: 0.773 MB / 445 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003845/0.1895, allocations: 7.938 kB / 445 MB, free: 8.91 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000374/0.1899, allocations: 35.77 kB / 445.1 MB, free: 8.875 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003981/0.1903, allocations: 59.77 kB / 445.1 MB, free: 8.816 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.1914, allocations: 129.5 kB / 445.3 MB, free: 8.691 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006956/0.1921, allocations: 224 kB / 445.5 MB, free: 8.469 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003328/0.1925, allocations: 77.75 kB / 445.5 MB, free: 8.402 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005461/0.1931, allocations: 127.6 kB / 445.7 MB, free: 8.277 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000416/0.1935, allocations: 143.4 kB / 445.8 MB, free: 8.137 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.061e-05/0.1937, allocations: 16 kB / 445.8 MB, free: 8.121 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.248e-05/0.1938, allocations: 16 kB / 445.8 MB, free: 8.105 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001567/0.1939, allocations: 75.77 kB / 445.9 MB, free: 8.031 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.1941, allocations: 73.52 kB / 446 MB, free: 7.953 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00045/0.1946, allocations: 216.3 kB / 446.2 MB, free: 7.742 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1946, allocations: 3.938 kB / 446.2 MB, free: 7.738 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.065e-06/0.1946, allocations: 0 / 446.2 MB, free: 7.738 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.1946, allocations: 8 kB / 446.2 MB, free: 7.73 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.002456/0.1971, allocations: 0.577 MB / 446.8 MB, free: 7.102 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.566e-05/0.1972, allocations: 8.031 kB / 446.8 MB, free: 7.094 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002353/0.1975, allocations: 39.61 kB / 446.8 MB, free: 7.055 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006615/0.1982, allocations: 275 kB / 447.1 MB, free: 6.746 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004284/0.1986, allocations: 141.6 kB / 447.2 MB, free: 6.59 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.1988, allocations: 28 kB / 447.3 MB, free: 6.562 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002801/0.2016, allocations: 0.561 MB / 447.8 MB, free: 5.973 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.362e-05/0.2017, allocations: 0 / 447.8 MB, free: 5.973 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.061e-05/0.2019, allocations: 12 kB / 447.8 MB, free: 5.961 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.024e-05/0.2019, allocations: 8 kB / 447.9 MB, free: 5.953 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003966/0.2059, allocations: 0.5347 MB / 448.4 MB, free: 5.418 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004802/0.2108, allocations: 1.022 MB / 449.4 MB, free: 4.32 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004195/0.215, allocations: 0.5147 MB / 449.9 MB, free: 3.77 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001666/0.2153, allocations: 8.328 kB / 449.9 MB, free: 3.762 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.543e-05/0.2154, allocations: 46.77 kB / 450 MB, free: 3.707 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 6.873e-06/0.2154, allocations: 0 / 450 MB, free: 3.707 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.1197/0.3351, allocations: 6.744 MB / 456.7 MB, free: 12.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002241/0.3354, allocations: 148.9 kB / 456.9 MB, free: 12.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004983/0.3359, allocations: 198.5 kB / 457.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002761/0.3362, allocations: 33.7 kB / 457.1 MB, free: 12.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002197/0.3364, allocations: 200 kB / 457.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005059/0.337, allocations: 193.3 kB / 457.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001998/0.3372, allocations: 20 kB / 457.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002802/0.3375, allocations: 330.8 kB / 457.8 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00492/0.3425, allocations: 0.65 MB / 458.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005072/0.3476, allocations: 0.8315 MB / 459.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00457/0.3523, allocations: 0.6063 MB / 459.9 MB, free: 9.629 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.133e-05/0.3524, allocations: 4 kB / 459.9 MB, free: 9.625 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.01086/0.3632, allocations: 1.449 MB / 461.4 MB, free: 8.168 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.952e-05/0.3633, allocations: 8 kB / 461.4 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.546e-05/0.3634, allocations: 19.92 kB / 461.4 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.354e-05/0.3635, allocations: 8 kB / 461.4 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004404/0.3679, allocations: 235.6 kB / 461.6 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.135e-05/0.368, allocations: 11.98 kB / 461.6 MB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00289/0.3709, allocations: 123.7 kB / 461.8 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002948/0.3713, allocations: 35.92 kB / 461.8 MB, free: 7.734 MB / 298.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.000811/0.3721, allocations: 181.4 kB / 462 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008065/0.373, allocations: 149.1 kB / 462.1 MB, free: 7.395 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003917/0.3735, allocations: 63.31 kB / 462.2 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.409e-05/0.3735, allocations: 11.95 kB / 462.2 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/0.3736, allocations: 0 / 462.2 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.965e-05/0.3736, allocations: 7.984 kB / 462.2 MB, free: 7.312 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01483/0.3884, allocations: 2.289 MB / 464.5 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.872e-05/0.3886, allocations: 12 kB / 464.5 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002583/0.3912, allocations: 199.9 kB / 464.7 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.323e-05/0.3913, allocations: 16 kB / 464.7 MB, free: 4.617 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000195/0.3916, allocations: 27.98 kB / 464.7 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.132e-05/0.3916, allocations: 19.89 kB / 464.8 MB, free: 4.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.704e-05/0.3917, allocations: 15.94 kB / 464.8 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01051/0.4022, allocations: 2.173 MB / 466.9 MB, free: 1.961 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006272/0.4029, allocations: 156.6 kB / 467.1 MB, free: 1.789 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001953/0.4031, allocations: 36.05 kB / 467.1 MB, free: 1.754 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001756/0.4049, allocations: 99.92 kB / 467.2 MB, free: 1.656 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005934/0.4056, allocations: 107.6 kB / 467.3 MB, free: 1.551 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001584/0.4058, allocations: 28 kB / 467.4 MB, free: 1.523 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003195/0.4061, allocations: 140.3 kB / 467.5 MB, free: 1.387 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.4061, allocations: 192 / 467.5 MB, free: 1.387 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001894/0.408, allocations: 124 kB / 467.6 MB, free: 1.266 MB / 298.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.0004205/0.4086, allocations: 135.2 kB / 467.8 MB, free: 1.125 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.008246/0.4168, allocations: 1.195 MB / 468.9 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.384e-05/0.417, allocations: 4 kB / 469 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003196/0.4202, allocations: 370 kB / 469.3 MB, free: 15.57 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001855/0.4221, allocations: 136.2 kB / 469.4 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006619/0.4288, allocations: 1.36 MB / 470.8 MB, free: 13.9 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001086/0.43, allocations: 0.8209 MB / 471.6 MB, free: 13.06 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001164/0.4312, allocations: 43.42 kB / 471.7 MB, free: 13.02 MB / 314.7 MB Notification: Performance of SimCode: time 2.194e-06/0.4313, allocations: 0 / 471.7 MB, free: 13.02 MB / 314.7 MB Notification: Performance of Templates: time 0.03057/0.4619, allocations: 6.891 MB / 478.6 MB, free: 6.105 MB / 314.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.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,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau