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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001776/0.001776, allocations: 104.5 kB / 19.8 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001844/0.001844, allocations: 214.1 kB / 23 MB, free: 5.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.56/1.56, allocations: 230.2 MB / 256.2 MB, free: 8.535 MB / 206.1 MB " [Timeout remaining time 178] 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=8007,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=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 55.91 kB / 376.4 MB, free: 3.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2818, allocations: 53.33 MB / 429.8 MB, free: 7.594 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004115/0.2859, allocations: 2.428 MB / 432.2 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001699/0.2876, allocations: 0.8767 MB / 433.1 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001685/0.2877, allocations: 11.94 kB / 433.1 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003194/0.2881, allocations: 51.58 kB / 433.1 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002311/0.2883, allocations: 67.48 kB / 433.2 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006024/0.2889, allocations: 202.8 kB / 433.4 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000464/0.2894, allocations: 395.4 kB / 433.8 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001933/0.2896, allocations: 71.53 kB / 433.9 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002941/0.2898, allocations: 175.4 kB / 434 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002705/0.2901, allocations: 187.2 kB / 434.2 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.788e-05/0.2902, allocations: 36 kB / 434.3 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.222e-05/0.2902, allocations: 32 kB / 434.3 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001378/0.2904, allocations: 115.6 kB / 434.4 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001469/0.2905, allocations: 159.1 kB / 434.6 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004468/0.291, allocations: 371.6 kB / 434.9 MB, free: 2.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.291, allocations: 4 kB / 434.9 MB, free: 2.426 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.291, allocations: 0 / 434.9 MB, free: 2.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.665e-06/0.291, allocations: 0 / 434.9 MB, free: 2.426 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.001301/0.2923, allocations: 0.6779 MB / 435.6 MB, free: 1.699 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.2923, allocations: 8.031 kB / 435.6 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.757e-05/0.2924, allocations: 48.7 kB / 435.7 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004392/0.2929, allocations: 311.3 kB / 436 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002076/0.2931, allocations: 142.3 kB / 436.1 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.04e-05/0.2931, allocations: 32.31 kB / 436.1 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.2943, allocations: 0.5739 MB / 436.7 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.2943, allocations: 0 / 436.7 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.853e-05/0.2944, allocations: 12 kB / 436.7 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.2944, allocations: 8 kB / 436.7 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001329/0.2957, allocations: 0.5035 MB / 437.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.2973, allocations: 1.034 MB / 438.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/0.2988, allocations: 482.5 kB / 438.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005964/0.2994, allocations: 235.4 kB / 439 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.171e-05/0.2995, allocations: 4 kB / 439 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.958e-05/0.2995, allocations: 54.44 kB / 439 MB, free: 14.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.114e-06/0.2995, allocations: 3.938 kB / 439 MB, free: 14.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03707/0.3366, allocations: 5.767 MB / 444.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001505/0.3367, allocations: 149 kB / 444.9 MB, free: 8.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003967/0.3371, allocations: 254.6 kB / 445.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.112e-05/0.3372, allocations: 37.7 kB / 445.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.3373, allocations: 153.7 kB / 445.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/0.3375, allocations: 206.3 kB / 445.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003033/0.3378, allocations: 118.6 kB / 445.7 MB, free: 7.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002037/0.3381, allocations: 338.8 kB / 446 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.3396, allocations: 0.6188 MB / 446.6 MB, free: 6.371 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001725/0.3414, allocations: 0.7963 MB / 447.4 MB, free: 5.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003116/0.3445, allocations: 1.251 MB / 448.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.3445, allocations: 4 kB / 448.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003575/0.3481, allocations: 1.402 MB / 450.1 MB, free: 2.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.926e-05/0.3481, allocations: 8 kB / 450.1 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.3481, allocations: 4 kB / 450.1 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.132e-05/0.3482, allocations: 8 kB / 450.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/0.3495, allocations: 211.9 kB / 450.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.936e-05/0.3495, allocations: 11.94 kB / 450.3 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009291/0.3504, allocations: 103.8 kB / 450.4 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-05/0.3505, allocations: 24 kB / 450.4 MB, free: 2.391 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.0003309/0.3508, allocations: 193.6 kB / 450.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003213/0.3511, allocations: 169.2 kB / 450.8 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001581/0.3513, allocations: 71.61 kB / 450.9 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.387e-06/0.3513, allocations: 12 kB / 450.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.958e-06/0.3513, allocations: 4.469 kB / 450.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.3513, allocations: 3.984 kB / 450.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004919/0.3563, allocations: 2.179 MB / 453.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-05/0.3563, allocations: 15.94 kB / 453.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007242/0.357, allocations: 184.2 kB / 453.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.662e-05/0.357, allocations: 12 kB / 453.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.601e-05/0.3571, allocations: 32 kB / 453.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.745e-05/0.3571, allocations: 23.92 kB / 453.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.828e-06/0.3571, allocations: 11.94 kB / 453.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003271/0.3604, allocations: 1.557 MB / 454.9 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/0.3606, allocations: 184.7 kB / 455.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.155e-05/0.3607, allocations: 31.98 kB / 455.1 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005453/0.3613, allocations: 71.92 kB / 455.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002078/0.3615, allocations: 95.67 kB / 455.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.146e-05/0.3615, allocations: 35.98 kB / 455.3 MB, free: 13.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002061/0.3617, allocations: 186 kB / 455.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3617, allocations: 4 kB / 455.5 MB, free: 12.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006566/0.3624, allocations: 124 kB / 455.6 MB, free: 12.84 MB / 366.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.0001868/0.3626, allocations: 131 kB / 455.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002721/0.3653, allocations: 1.033 MB / 456.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.3653, allocations: 4 kB / 456.8 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009703/0.3663, allocations: 331.2 kB / 457.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009136/0.3672, allocations: 145.6 kB / 457.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.3697, allocations: 1.239 MB / 458.5 MB, free: 9.812 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006466/0.3704, allocations: 0.8285 MB / 459.3 MB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004934/0.3709, allocations: 96.09 kB / 459.4 MB, free: 8.859 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002764/0.3712, allocations: 39.44 kB / 459.5 MB, free: 8.82 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3712, allocations: 4 kB / 459.5 MB, free: 8.816 MB / 366.1 MB Notification: Performance of Templates: time 0.01733/0.3885, allocations: 8.902 MB / 468.4 MB, free: 15.92 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.120804370380938]