Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 215.6 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.701/1.701, allocations: 230.6 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 59.91 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2612, allocations: 53.36 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004452/0.2656, allocations: 2.292 MB / 434.6 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001899/0.2675, allocations: 0.8261 MB / 435.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003008/0.2678, allocations: 11.94 kB / 435.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003461/0.2682, allocations: 55.5 kB / 435.5 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003198/0.2685, allocations: 71.48 kB / 435.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000776/0.2693, allocations: 195.6 kB / 435.8 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000483/0.2697, allocations: 387.5 kB / 436.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001862/0.2699, allocations: 74.8 kB / 436.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003475/0.2703, allocations: 183.3 kB / 436.4 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002515/0.2705, allocations: 179.2 kB / 436.6 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.912e-05/0.2706, allocations: 32 kB / 436.6 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.522e-05/0.2707, allocations: 36 kB / 436.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.2708, allocations: 107.7 kB / 436.7 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.2709, allocations: 139.2 kB / 436.9 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005204/0.2715, allocations: 374.1 kB / 437.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2715, allocations: 0 / 437.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2715, allocations: 0 / 437.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.2715, allocations: 3.938 kB / 437.2 MB, free: 1.785 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.001335/0.2728, allocations: 0.6103 MB / 437.9 MB, free: 1.141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.2728, allocations: 12.03 kB / 437.9 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.888e-05/0.2729, allocations: 44.7 kB / 437.9 MB, free: 1.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005038/0.2734, allocations: 249.4 kB / 438.2 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003385/0.2738, allocations: 347.9 kB / 438.5 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.834e-05/0.2738, allocations: 36.36 kB / 438.5 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.2752, allocations: 0.5661 MB / 439.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.2752, allocations: 4 kB / 439.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.582e-05/0.2752, allocations: 12 kB / 439.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.2753, allocations: 12 kB / 439.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.2767, allocations: 0.5119 MB / 439.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00161/0.2784, allocations: 0.8679 MB / 440.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00156/0.2799, allocations: 474.4 kB / 441 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007132/0.2806, allocations: 239.7 kB / 441.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.572e-05/0.2807, allocations: 8 kB / 441.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.2807, allocations: 42.42 kB / 441.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.554e-06/0.2807, allocations: 4 kB / 441.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.039/0.3197, allocations: 5.789 MB / 447 MB, free: 7.715 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.3198, allocations: 149 kB / 447.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003339/0.3202, allocations: 270.2 kB / 447.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.802e-05/0.3203, allocations: 37.7 kB / 447.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.3204, allocations: 149.7 kB / 447.6 MB, free: 7.074 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002229/0.3206, allocations: 202.3 kB / 447.8 MB, free: 6.875 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003089/0.3209, allocations: 118.6 kB / 448 MB, free: 6.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.3211, allocations: 354.7 kB / 448.3 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001828/0.3229, allocations: 0.6227 MB / 448.9 MB, free: 5.773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001865/0.3248, allocations: 0.8004 MB / 449.7 MB, free: 4.895 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003339/0.3281, allocations: 1.26 MB / 451 MB, free: 3.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.3281, allocations: 4 kB / 451 MB, free: 3.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003875/0.332, allocations: 1.407 MB / 452.4 MB, free: 2.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/0.332, allocations: 8 kB / 452.4 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.3321, allocations: 4 kB / 452.4 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.68e-05/0.3321, allocations: 8.234 kB / 452.4 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001367/0.3334, allocations: 219.7 kB / 452.6 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.387e-05/0.3335, allocations: 11.98 kB / 452.6 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009891/0.3345, allocations: 95.78 kB / 452.7 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.87e-05/0.3346, allocations: 35.98 kB / 452.8 MB, free: 1.762 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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (84): * Single equations (assignments): 84 * 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.0003713/0.3349, allocations: 197.6 kB / 453 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003694/0.3353, allocations: 169.2 kB / 453.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001952/0.3355, allocations: 67.61 kB / 453.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.3355, allocations: 8 kB / 453.2 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.3355, allocations: 0 / 453.2 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.3355, allocations: 7.922 kB / 453.2 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005142/0.3407, allocations: 1.925 MB / 455.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.109e-05/0.3407, allocations: 13 kB / 455.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008135/0.3415, allocations: 187.7 kB / 455.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.167e-05/0.3415, allocations: 12 kB / 455.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.913e-05/0.3416, allocations: 24 kB / 455.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.256e-05/0.3416, allocations: 27.86 kB / 455.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.648e-05/0.3416, allocations: 16.12 kB / 455.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003663/0.3453, allocations: 1.581 MB / 457 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003389/0.3456, allocations: 111.6 kB / 457.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.885e-05/0.3457, allocations: 31.98 kB / 457.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006339/0.3464, allocations: 75.86 kB / 457.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002134/0.3466, allocations: 95.64 kB / 457.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.935e-05/0.3466, allocations: 35.98 kB / 457.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002215/0.3469, allocations: 189.3 kB / 457.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3469, allocations: 4 kB / 457.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006973/0.3476, allocations: 124 kB / 457.6 MB, free: 12.55 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0002125/0.3478, allocations: 134.9 kB / 457.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003046/0.3508, allocations: 1.045 MB / 458.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.176e-06/0.3508, allocations: 4 kB / 458.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.3519, allocations: 335.3 kB / 459.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009778/0.3529, allocations: 154.4 kB / 459.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002765/0.3557, allocations: 1.277 MB / 460.6 MB, free: 9.438 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000284/0.3559, allocations: 228.7 kB / 460.8 MB, free: 9.195 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003503/0.3563, allocations: 47.42 kB / 460.8 MB, free: 9.148 MB / 366.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3563, allocations: 3.938 kB / 460.8 MB, free: 9.145 MB / 366.1 MB Notification: Performance of Templates: time 0.01269/0.369, allocations: 7.567 MB / 468.4 MB, free: 1.605 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 8.008764368016273]