Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001504/0.001504, allocations: 118.2 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002286/0.002286, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 63.89 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2977, allocations: 50.54 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003975/0.3017, allocations: 2.396 MB / 411.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001713/0.3034, allocations: 0.8572 MB / 412.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.3036, allocations: 12 kB / 412.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003224/0.304, allocations: 55.5 kB / 412.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002294/0.3042, allocations: 67.48 kB / 412.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005364/0.3047, allocations: 195.3 kB / 412.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004006/0.3052, allocations: 395.5 kB / 413.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000198/0.3054, allocations: 99.5 kB / 413.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002847/0.3057, allocations: 175.4 kB / 413.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002449/0.3059, allocations: 179.2 kB / 413.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.941e-05/0.306, allocations: 36 kB / 413.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.365e-05/0.306, allocations: 32 kB / 413.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.3062, allocations: 107.7 kB / 413.8 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.3063, allocations: 171 kB / 414 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00036/0.3067, allocations: 362.6 kB / 414.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3067, allocations: 0 / 414.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.3067, allocations: 4 kB / 414.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.3067, allocations: 0 / 414.3 MB, free: 12.48 MB / 334.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.001219/0.3079, allocations: 0.6754 MB / 415 MB, free: 11.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.308, allocations: 8.031 kB / 415 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.456e-05/0.3081, allocations: 44.56 kB / 415.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004401/0.3085, allocations: 315 kB / 415.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002018/0.3087, allocations: 142.3 kB / 415.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.815e-05/0.3088, allocations: 32.38 kB / 415.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.31, allocations: 0.5661 MB / 416.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.31, allocations: 4 kB / 416.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.553e-05/0.3101, allocations: 8 kB / 416.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.3101, allocations: 11.98 kB / 416.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.3114, allocations: 0.5112 MB / 416.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/0.3128, allocations: 1.022 MB / 417.7 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.3144, allocations: 0.5024 MB / 418.2 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005989/0.315, allocations: 266.6 kB / 418.4 MB, free: 8.145 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.309e-05/0.315, allocations: 11.98 kB / 418.4 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.3151, allocations: 38.56 kB / 418.5 MB, free: 8.086 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.884e-06/0.3151, allocations: 0 / 418.5 MB, free: 8.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03784/0.3529, allocations: 5.759 MB / 424.2 MB, free: 2.316 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.3531, allocations: 141 kB / 424.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003349/0.3534, allocations: 266.5 kB / 424.6 MB, free: 1.879 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.742e-05/0.3535, allocations: 37.7 kB / 424.7 MB, free: 1.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.3536, allocations: 145.5 kB / 424.8 MB, free: 1.688 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.3538, allocations: 189.3 kB / 425 MB, free: 1.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002754/0.3541, allocations: 122.5 kB / 425.1 MB, free: 1.375 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.3543, allocations: 346.8 kB / 425.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001512/0.3558, allocations: 0.6149 MB / 426.1 MB, free: 420 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001686/0.3575, allocations: 0.7925 MB / 426.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002982/0.3605, allocations: 1.247 MB / 428.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.3605, allocations: 0 / 428.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003466/0.364, allocations: 1.405 MB / 429.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.364, allocations: 8 kB / 429.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.364, allocations: 8 kB / 429.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.562e-05/0.364, allocations: 8 kB / 429.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.3654, allocations: 215.7 kB / 429.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.663e-05/0.3654, allocations: 8 kB / 429.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000963/0.3664, allocations: 103.7 kB / 429.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.897e-05/0.3665, allocations: 27.98 kB / 429.9 MB, free: 12.43 MB / 350.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.noWphase,kinematicPTP.moving[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003532/0.3668, allocations: 197.5 kB / 430.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003114/0.3671, allocations: 165.7 kB / 430.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002285/0.3674, allocations: 67.61 kB / 430.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.3674, allocations: 11.98 kB / 430.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/0.3674, allocations: 96 / 430.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.3674, allocations: 7.922 kB / 430.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004747/0.3722, allocations: 2.183 MB / 432.5 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.301e-05/0.3722, allocations: 8 kB / 432.5 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007503/0.373, allocations: 191.8 kB / 432.7 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.662e-05/0.373, allocations: 16 kB / 432.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.304e-05/0.3731, allocations: 27.98 kB / 432.7 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.537e-05/0.3731, allocations: 15.94 kB / 432.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.227e-05/0.3731, allocations: 15.94 kB / 432.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003358/0.3765, allocations: 1.564 MB / 434.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002123/0.3767, allocations: 172.6 kB / 434.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.973e-05/0.3768, allocations: 27.98 kB / 434.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005987/0.3774, allocations: 75.98 kB / 434.6 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002168/0.3776, allocations: 99.66 kB / 434.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.914e-05/0.3777, allocations: 32 kB / 434.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002737/0.3779, allocations: 182 kB / 434.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3779, allocations: 0 / 434.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006775/0.3786, allocations: 124 kB / 435 MB, free: 6.898 MB / 350.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001848/0.3788, allocations: 146.9 kB / 435.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002886/0.3817, allocations: 1.136 MB / 436.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.3817, allocations: 0 / 436.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.3828, allocations: 346.1 kB / 436.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00101/0.3838, allocations: 153.8 kB / 436.8 MB, free: 5.125 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002573/0.3864, allocations: 1.22 MB / 438 MB, free: 3.742 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005222/0.3869, allocations: 0.8362 MB / 438.9 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005104/0.3874, allocations: 96.11 kB / 439 MB, free: 2.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003179/0.3878, allocations: 43.42 kB / 439 MB, free: 2.738 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3878, allocations: 4 kB / 439 MB, free: 2.734 MB / 350.1 MB Notification: Performance of Templates: time 0.01566/0.4034, allocations: 8.514 MB / 447.5 MB, free: 10.23 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches