Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009519/0.000952, allocations: 96.77 kB / 16.31 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001081/0.00108, allocations: 174.2 kB / 17.19 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002772/0.0002774, allocations: 5.531 kB / 300.7 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1035, allocations: 50.43 MB / 351.1 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002667/0.1062, allocations: 1.963 MB / 353.1 MB, free: 9.895 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.1078, allocations: 0.7915 MB / 353.9 MB, free: 9.098 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001981/0.108, allocations: 7.938 kB / 353.9 MB, free: 9.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002768/0.1083, allocations: 39.75 kB / 353.9 MB, free: 9.051 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002412/0.1086, allocations: 63.83 kB / 354 MB, free: 8.988 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005553/0.1091, allocations: 159.6 kB / 354.2 MB, free: 8.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000326/0.1095, allocations: 240 kB / 354.4 MB, free: 8.598 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001916/0.1097, allocations: 81.92 kB / 354.5 MB, free: 8.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002018/0.1099, allocations: 139.5 kB / 354.6 MB, free: 8.383 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.1101, allocations: 151.4 kB / 354.7 MB, free: 8.234 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.107e-05/0.1102, allocations: 20 kB / 354.8 MB, free: 8.215 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.055e-05/0.1102, allocations: 16 kB / 354.8 MB, free: 8.199 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.1103, allocations: 87.7 kB / 354.9 MB, free: 8.113 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.577e-05/0.1104, allocations: 77.52 kB / 354.9 MB, free: 8.031 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002631/0.1107, allocations: 247.4 kB / 355.2 MB, free: 7.789 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.1107, allocations: 0 / 355.2 MB, free: 7.789 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1107, allocations: 0 / 355.2 MB, free: 7.789 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1107, allocations: 0 / 355.2 MB, free: 7.789 MB / 286.1 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.001154/0.1119, allocations: 0.6313 MB / 355.8 MB, free: 7.109 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.1119, allocations: 12.03 kB / 355.8 MB, free: 7.098 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.478e-05/0.112, allocations: 47.48 kB / 355.9 MB, free: 7.051 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003942/0.1124, allocations: 294 kB / 356.2 MB, free: 6.727 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001929/0.1126, allocations: 145.7 kB / 356.3 MB, free: 6.562 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.548e-05/0.1127, allocations: 32 kB / 356.3 MB, free: 6.531 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.1138, allocations: 0.5698 MB / 356.9 MB, free: 5.938 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.1138, allocations: 4 kB / 356.9 MB, free: 5.934 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.535e-05/0.1138, allocations: 8 kB / 356.9 MB, free: 5.926 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.1138, allocations: 15.94 kB / 356.9 MB, free: 5.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001348/0.1152, allocations: 0.5347 MB / 357.5 MB, free: 5.375 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.1167, allocations: 1.034 MB / 358.5 MB, free: 4.262 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.1182, allocations: 0.5146 MB / 359 MB, free: 3.711 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.282e-05/0.1182, allocations: 8.188 kB / 359 MB, free: 3.703 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.1183, allocations: 42.69 kB / 359.1 MB, free: 3.652 MB / 286.1 MB Notification: Performance of pre-optimization done (n=44): time 1.553e-06/0.1183, allocations: 0 / 359.1 MB, free: 3.652 MB / 286.1 MB Notification: Performance of matching and sorting (n=72): time 0.03656/0.1548, allocations: 6.789 MB / 365.9 MB, free: 12.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.353e-05/0.155, allocations: 152.9 kB / 366 MB, free: 12.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00026/0.1552, allocations: 258.6 kB / 366.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.481e-05/0.1553, allocations: 37.64 kB / 366.3 MB, free: 12.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.094e-05/0.1554, allocations: 157.4 kB / 366.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.1556, allocations: 193.3 kB / 366.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.242e-05/0.1556, allocations: 12 kB / 366.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.1558, allocations: 342.8 kB / 367 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001503/0.1573, allocations: 0.6578 MB / 367.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001621/0.1589, allocations: 0.8237 MB / 368.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.1604, allocations: 0.6059 MB / 369.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.1604, allocations: 7.953 kB / 369.1 MB, free: 9.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003361/0.1638, allocations: 1.464 MB / 370.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.1638, allocations: 8 kB / 370.6 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.1638, allocations: 4 kB / 370.6 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.605e-05/0.1639, allocations: 8 kB / 370.6 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/0.1651, allocations: 235.7 kB / 370.8 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.984e-05/0.1652, allocations: 11.94 kB / 370.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009305/0.1661, allocations: 119.7 kB / 370.9 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.862e-05/0.1662, allocations: 35.98 kB / 371 MB, free: 7.609 MB / 302.1 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.0003185/0.1665, allocations: 185.7 kB / 371.1 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002812/0.1668, allocations: 165.4 kB / 371.3 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001762/0.167, allocations: 67.61 kB / 371.4 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/0.167, allocations: 8 kB / 371.4 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.167, allocations: 3.938 kB / 371.4 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.167, allocations: 3.984 kB / 371.4 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004868/0.1719, allocations: 2.3 MB / 373.7 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/0.172, allocations: 12.97 kB / 373.7 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007287/0.1727, allocations: 203.7 kB / 373.9 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.047e-05/0.1727, allocations: 19.98 kB / 373.9 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.67e-05/0.1728, allocations: 24 kB / 373.9 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-05/0.1728, allocations: 19.94 kB / 374 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-05/0.1728, allocations: 15.94 kB / 374 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003379/0.1762, allocations: 2.189 MB / 376.2 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002162/0.1764, allocations: 180.5 kB / 376.3 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.036e-05/0.1765, allocations: 28 kB / 376.4 MB, free: 1.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005743/0.1771, allocations: 99.95 kB / 376.5 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/0.1773, allocations: 103.7 kB / 376.6 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.683e-05/0.1773, allocations: 32 kB / 376.6 MB, free: 1.324 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001701/0.1775, allocations: 185.9 kB / 376.8 MB, free: 1.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1775, allocations: 4 kB / 376.8 MB, free: 1.137 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000681/0.1782, allocations: 128 kB / 376.9 MB, free: 1.012 MB / 302.1 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.0001868/0.1784, allocations: 136.9 kB / 377 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00272/0.1811, allocations: 1.19 MB / 378.2 MB, free: 15.68 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.1811, allocations: 5.375 kB / 378.2 MB, free: 15.68 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009633/0.1821, allocations: 377.8 kB / 378.6 MB, free: 15.31 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006464/0.1828, allocations: 149.2 kB / 378.7 MB, free: 15.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0022/0.185, allocations: 1.402 MB / 380.1 MB, free: 13.6 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.1854, allocations: 0.8405 MB / 381 MB, free: 12.73 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005648/0.1859, allocations: 92.17 kB / 381.1 MB, free: 12.64 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002724/0.1862, allocations: 39.42 kB / 381.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1862, allocations: 0 / 381.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of Templates: time 0.01155/0.1978, allocations: 7.466 MB / 388.6 MB, free: 5.156 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,PI.y,fastClock.factor,fastClock.resolution,fastClock.resolutionFactor,fastClock.useSolver,gain.k,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.phi,load.w,slowClock.factor,slowClock.resolution,slowClock.resolutionFactor,slowClock.useSolver,speed.flange.phi,super.factor,super.inferFactor,time