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.001175/0.001175, allocations: 118.2 kB / 17.77 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00114/0.00114, allocations: 202 kB / 18.72 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3023, allocations: 50.54 MB / 409.2 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003419/0.3057, allocations: 2.385 MB / 411.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.3072, allocations: 0.8611 MB / 412.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001739/0.3073, allocations: 7.938 kB / 412.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002685/0.3076, allocations: 51.56 kB / 412.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002455/0.3079, allocations: 71.48 kB / 412.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005974/0.3085, allocations: 195.3 kB / 412.8 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004393/0.3089, allocations: 399.4 kB / 413.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002092/0.3092, allocations: 103.5 kB / 413.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003282/0.3095, allocations: 171.5 kB / 413.4 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002715/0.3098, allocations: 183.2 kB / 413.6 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.775e-05/0.3098, allocations: 35.98 kB / 413.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.376e-05/0.3099, allocations: 36 kB / 413.7 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.3101, allocations: 103.7 kB / 413.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.3102, allocations: 167 kB / 414 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000386/0.3106, allocations: 370.5 kB / 414.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3106, allocations: 0 / 414.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3106, allocations: 0 / 414.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.3106, allocations: 4 kB / 414.3 MB, free: 12.45 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.001283/0.3119, allocations: 0.6716 MB / 415 MB, free: 11.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.312, allocations: 12.03 kB / 415 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.3121, allocations: 40.56 kB / 415 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004304/0.3125, allocations: 315 kB / 415.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.3127, allocations: 134.2 kB / 415.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.338e-05/0.3128, allocations: 36.38 kB / 415.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.3139, allocations: 0.5739 MB / 416.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.314, allocations: 4 kB / 416.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.224e-05/0.314, allocations: 12 kB / 416.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.314, allocations: 4 kB / 416.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/0.3153, allocations: 0.5113 MB / 416.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001484/0.3168, allocations: 1.033 MB / 417.7 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.3182, allocations: 0.4985 MB / 418.2 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005527/0.3188, allocations: 262.8 kB / 418.4 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.261e-05/0.3188, allocations: 8 kB / 418.4 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.3189, allocations: 42.5 kB / 418.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.963e-06/0.3189, allocations: 0 / 418.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.0352/0.3541, allocations: 5.755 MB / 424.2 MB, free: 2.289 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/0.3542, allocations: 148.9 kB / 424.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003153/0.3546, allocations: 258.5 kB / 424.6 MB, free: 1.852 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.644e-05/0.3547, allocations: 37.7 kB / 424.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.3548, allocations: 153.5 kB / 424.8 MB, free: 1.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002014/0.355, allocations: 189.3 kB / 425 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003192/0.3553, allocations: 114.6 kB / 425.1 MB, free: 1.348 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.3555, allocations: 346.8 kB / 425.4 MB, free: 1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001442/0.3569, allocations: 0.6149 MB / 426.1 MB, free: 392 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001593/0.3585, allocations: 0.8042 MB / 426.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002742/0.3613, allocations: 1.24 MB / 428.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.3613, allocations: 7.938 kB / 428.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003263/0.3646, allocations: 1.394 MB / 429.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.3646, allocations: 7.984 kB / 429.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.3646, allocations: 8 kB / 429.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.327e-05/0.3647, allocations: 8.375 kB / 429.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.366, allocations: 215.7 kB / 429.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.747e-05/0.366, allocations: 15.94 kB / 429.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008457/0.3668, allocations: 99.72 kB / 429.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.029e-05/0.3669, allocations: 31.94 kB / 429.9 MB, free: 12.39 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.0003018/0.3673, allocations: 189.6 kB / 430.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003173/0.3676, allocations: 169 kB / 430.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001652/0.3678, allocations: 67.61 kB / 430.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/0.3678, allocations: 11.94 kB / 430.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.3678, allocations: 0 / 430.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.686e-05/0.3678, allocations: 7.984 kB / 430.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004583/0.3724, allocations: 2.175 MB / 432.5 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.396e-05/0.3724, allocations: 12 kB / 432.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006996/0.3731, allocations: 188.6 kB / 432.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.308e-05/0.3732, allocations: 12 kB / 432.7 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.468e-05/0.3732, allocations: 35.97 kB / 432.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.348e-05/0.3732, allocations: 15.94 kB / 432.7 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/0.3732, allocations: 15.94 kB / 432.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002823/0.3761, allocations: 1.564 MB / 434.3 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002038/0.3763, allocations: 180.5 kB / 434.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.706e-05/0.3764, allocations: 24 kB / 434.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005159/0.3769, allocations: 75.91 kB / 434.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.3771, allocations: 95.73 kB / 434.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-05/0.3771, allocations: 32 kB / 434.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001627/0.3773, allocations: 189.9 kB / 434.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3773, allocations: 0 / 434.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006538/0.378, allocations: 124 kB / 435 MB, free: 6.863 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.0001491/0.3781, allocations: 138.9 kB / 435.2 MB, free: 6.719 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002472/0.3806, allocations: 1.139 MB / 436.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.3806, allocations: 5.375 kB / 436.3 MB, free: 5.578 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008988/0.3815, allocations: 345.8 kB / 436.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000897/0.3824, allocations: 149.3 kB / 436.8 MB, free: 5.094 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002148/0.3846, allocations: 1.22 MB / 438 MB, free: 3.711 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.385, allocations: 0.8324 MB / 438.9 MB, free: 2.852 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004329/0.3855, allocations: 104.1 kB / 439 MB, free: 2.746 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002683/0.3857, allocations: 39.44 kB / 439 MB, free: 2.707 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3857, allocations: 0 / 439 MB, free: 2.707 MB / 350.1 MB Notification: Performance of Templates: time 0.01589/0.4016, allocations: 8.525 MB / 447.5 MB, free: 10.2 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