Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.001098/0.001098, allocations: 180 kB / 16.45 MB, free: 5.551 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.502/1.502, allocations: 205.4 MB / 222.6 MB, free: 9.121 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.0007846/0.0007847, allocations: 105.8 kB / 270.9 MB, free: 8.359 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.06789/0.06789, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004365/0.0004366, allocations: 12 kB / 392 MB, free: 66.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07687/0.07732, allocations: 50.37 MB / 442.4 MB, free: 16.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.001876/0.07923, allocations: 1.988 MB / 444.4 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.08034, allocations: 0.8469 MB / 445.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.08053, allocations: 7.938 kB / 445.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000266/0.08081, allocations: 43.69 kB / 445.2 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002143/0.08103, allocations: 55.67 kB / 445.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005386/0.08158, allocations: 163.7 kB / 445.5 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000256/0.08185, allocations: 347.5 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.08201, allocations: 82.11 kB / 445.9 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.08217, allocations: 135.5 kB / 446 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/0.08234, allocations: 147.3 kB / 446.2 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.42e-05/0.08239, allocations: 16 kB / 446.2 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.908e-05/0.08244, allocations: 20 kB / 446.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.3e-05/0.08252, allocations: 91.69 kB / 446.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.25e-05/0.08258, allocations: 73.58 kB / 446.4 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001705/0.08275, allocations: 247.6 kB / 446.6 MB, free: 12.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.08276, allocations: 0 / 446.6 MB, free: 12.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.08277, allocations: 0 / 446.6 MB, free: 12.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.08278, allocations: 0 / 446.6 MB, free: 12.22 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.000953/0.08374, allocations: 0.6352 MB / 447.2 MB, free: 11.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.958e-05/0.08378, allocations: 12.03 kB / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.471e-05/0.08385, allocations: 43.53 kB / 447.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.08412, allocations: 294 kB / 447.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001601/0.08429, allocations: 149.7 kB / 447.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.95e-05/0.08434, allocations: 28 kB / 447.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.08536, allocations: 0.5776 MB / 448.3 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.08539, allocations: 0 / 448.3 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.08542, allocations: 23.92 kB / 448.3 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.08544, allocations: 8 kB / 448.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001153/0.08659, allocations: 0.5308 MB / 448.9 MB, free: 9.789 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.08776, allocations: 1.045 MB / 449.9 MB, free: 8.668 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.08911, allocations: 0.5146 MB / 450.4 MB, free: 8.117 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000517/0.08964, allocations: 275.9 kB / 450.7 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.731e-05/0.08969, allocations: 12.17 kB / 450.7 MB, free: 7.824 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.481e-05/0.08971, allocations: 42.75 kB / 450.8 MB, free: 7.773 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.543e-06/0.08972, allocations: 0 / 450.8 MB, free: 7.773 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03699/0.1267, allocations: 6.785 MB / 457.6 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/0.1268, allocations: 144.9 kB / 457.7 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.127, allocations: 262.5 kB / 458 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.066e-05/0.1271, allocations: 37.7 kB / 458 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.579e-05/0.1272, allocations: 153.4 kB / 458.1 MB, free: 348 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.1273, allocations: 193.3 kB / 458.3 MB, free: 152 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.333e-05/0.1274, allocations: 12 kB / 458.3 MB, free: 140 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.1275, allocations: 342.8 kB / 458.7 MB, free: 15.79 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001548/0.129, allocations: 0.6539 MB / 459.3 MB, free: 15.14 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001651/0.1307, allocations: 0.8277 MB / 460.2 MB, free: 14.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001502/0.1322, allocations: 0.602 MB / 460.8 MB, free: 13.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.1322, allocations: 4 kB / 460.8 MB, free: 13.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003459/0.1357, allocations: 1.464 MB / 462.2 MB, free: 12.16 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.1357, allocations: 11.95 kB / 462.2 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.1358, allocations: 8 kB / 462.2 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.1358, allocations: 12 kB / 462.3 MB, free: 12.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001366/0.1372, allocations: 231.7 kB / 462.5 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.971e-05/0.1372, allocations: 11.98 kB / 462.5 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009725/0.1382, allocations: 123.7 kB / 462.6 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.706e-05/0.1383, allocations: 28.3 kB / 462.6 MB, free: 11.75 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.0003065/0.1386, allocations: 193.4 kB / 462.8 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002846/0.1389, allocations: 165.5 kB / 463 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000142/0.139, allocations: 75.56 kB / 463.1 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.139, allocations: 8.094 kB / 463.1 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.139, allocations: 3.938 kB / 463.1 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.1391, allocations: 4.219 kB / 463.1 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004746/0.1438, allocations: 2.304 MB / 465.4 MB, free: 8.797 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.531e-05/0.1438, allocations: 15.98 kB / 465.4 MB, free: 8.781 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007616/0.1446, allocations: 200.4 kB / 465.6 MB, free: 8.586 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.646e-05/0.1446, allocations: 16 kB / 465.6 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.031e-05/0.1447, allocations: 27.95 kB / 465.6 MB, free: 8.543 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-05/0.1447, allocations: 19.92 kB / 465.7 MB, free: 8.523 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.154e-05/0.1447, allocations: 15.94 kB / 465.7 MB, free: 8.508 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003133/0.1479, allocations: 1.67 MB / 467.3 MB, free: 6.688 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/0.1481, allocations: 176.5 kB / 467.5 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.055e-05/0.1482, allocations: 31.98 kB / 467.5 MB, free: 6.465 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006184/0.1488, allocations: 99.94 kB / 467.6 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.149, allocations: 95.7 kB / 467.7 MB, free: 6.273 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.126e-05/0.149, allocations: 39.94 kB / 467.8 MB, free: 6.234 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001687/0.1492, allocations: 182 kB / 468 MB, free: 6.059 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1492, allocations: 3.938 kB / 468 MB, free: 6.055 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006035/0.1498, allocations: 124 kB / 468.1 MB, free: 5.934 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.0001533/0.15, allocations: 138.9 kB / 468.2 MB, free: 5.789 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002756/0.1527, allocations: 1.182 MB / 469.4 MB, free: 4.605 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.1528, allocations: 0 / 469.4 MB, free: 4.605 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000983/0.1537, allocations: 379.2 kB / 469.8 MB, free: 4.238 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008563/0.1546, allocations: 157.1 kB / 469.9 MB, free: 4.086 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002405/0.157, allocations: 1.447 MB / 471.4 MB, free: 2.465 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/0.1575, allocations: 0.8327 MB / 472.2 MB, free: 1.609 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003231/0.1578, allocations: 39.44 kB / 472.2 MB, free: 1.57 MB / 314.7 MB Notification: Performance of SimCode: time 3.5e-07/0.1578, allocations: 0 / 472.2 MB, free: 1.57 MB / 314.7 MB Notification: Performance of Templates: time 0.01031/0.1681, allocations: 7.308 MB / 479.5 MB, free: 10.25 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.mat","../files/Modelica_Synchronous_cpp_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