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.001367/0.001367, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001968/0.001968, allocations: 217.3 kB / 24.49 MB, free: 3.949 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.495/1.495, allocations: 230.6 MB / 258.2 MB, free: 7.797 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.001579/0.001579, allocations: 47.92 kB / 378.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2912, allocations: 53.37 MB / 432.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004111/0.2953, allocations: 2.304 MB / 434.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.2972, allocations: 0.826 MB / 435.4 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001793/0.2974, allocations: 11.88 kB / 435.5 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003067/0.2977, allocations: 59.55 kB / 435.5 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002421/0.2979, allocations: 67.48 kB / 435.6 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005922/0.2985, allocations: 199.6 kB / 435.8 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004549/0.299, allocations: 387.5 kB / 436.2 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.2991, allocations: 78.8 kB / 436.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003085/0.2995, allocations: 179.4 kB / 436.4 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00029/0.2997, allocations: 183.2 kB / 436.6 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.998e-05/0.2998, allocations: 36 kB / 436.6 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.856e-05/0.2999, allocations: 36 kB / 436.7 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.3, allocations: 115.6 kB / 436.8 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.3002, allocations: 139.3 kB / 436.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004686/0.3006, allocations: 382.1 kB / 437.3 MB, free: 1.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3006, allocations: 0 / 437.3 MB, free: 1.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3007, allocations: 0 / 437.3 MB, free: 1.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.3007, allocations: 0 / 437.3 MB, free: 1.77 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.001386/0.302, allocations: 0.6103 MB / 437.9 MB, free: 1.125 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3021, allocations: 8.031 kB / 437.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.626e-05/0.3022, allocations: 44.7 kB / 437.9 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005279/0.3027, allocations: 245.5 kB / 438.2 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003495/0.3031, allocations: 359.9 kB / 438.5 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.768e-05/0.3031, allocations: 28.38 kB / 438.6 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.3044, allocations: 0.57 MB / 439.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.3045, allocations: 4 kB / 439.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.645e-05/0.3045, allocations: 11.94 kB / 439.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.3045, allocations: 8 kB / 439.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.306, allocations: 0.5081 MB / 439.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001559/0.3075, allocations: 0.8678 MB / 440.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/0.3091, allocations: 478.4 kB / 441 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006573/0.3097, allocations: 243.7 kB / 441.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.648e-05/0.3098, allocations: 8 kB / 441.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.3098, allocations: 42.42 kB / 441.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.914e-06/0.3098, allocations: 0 / 441.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.0434/0.3532, allocations: 5.787 MB / 447.1 MB, free: 7.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/0.3534, allocations: 148.9 kB / 447.2 MB, free: 7.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003557/0.3537, allocations: 277.7 kB / 447.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.04e-05/0.3538, allocations: 37.7 kB / 447.5 MB, free: 7.207 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.3539, allocations: 153.7 kB / 447.7 MB, free: 7.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002285/0.3542, allocations: 202.3 kB / 447.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003276/0.3545, allocations: 118.6 kB / 448 MB, free: 6.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.3547, allocations: 346.7 kB / 448.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001666/0.3563, allocations: 0.6227 MB / 448.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001773/0.3581, allocations: 0.8004 MB / 449.7 MB, free: 4.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003182/0.3613, allocations: 1.26 MB / 451 MB, free: 3.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.3613, allocations: 0 / 451 MB, free: 3.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003758/0.365, allocations: 1.411 MB / 452.4 MB, free: 2.125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.3651, allocations: 12.03 kB / 452.4 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.3651, allocations: 4 kB / 452.4 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.517e-05/0.3651, allocations: 8 kB / 452.4 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001445/0.3666, allocations: 211.6 kB / 452.6 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.788e-05/0.3666, allocations: 12.3 kB / 452.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.3676, allocations: 103.8 kB / 452.8 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.343e-05/0.3677, allocations: 35.92 kB / 452.8 MB, free: 1.746 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.0003654/0.3681, allocations: 185.6 kB / 453 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003409/0.3684, allocations: 161.3 kB / 453.1 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001749/0.3686, allocations: 71.61 kB / 453.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.3686, allocations: 8 kB / 453.2 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.3686, allocations: 480 / 453.2 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.3686, allocations: 7.922 kB / 453.2 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004901/0.3735, allocations: 1.938 MB / 455.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.3736, allocations: 12 kB / 455.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007886/0.3743, allocations: 183.7 kB / 455.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.545e-05/0.3744, allocations: 12.23 kB / 455.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-05/0.3744, allocations: 32 kB / 455.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.861e-05/0.3744, allocations: 27.86 kB / 455.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.146e-05/0.3745, allocations: 12.12 kB / 455.4 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003413/0.3779, allocations: 1.581 MB / 457 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/0.3781, allocations: 107.6 kB / 457.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.646e-05/0.3782, allocations: 27.98 kB / 457.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006243/0.3789, allocations: 83.92 kB / 457.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002383/0.3791, allocations: 99.64 kB / 457.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.683e-05/0.3792, allocations: 35.92 kB / 457.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002106/0.3794, allocations: 189.2 kB / 457.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3794, allocations: 0 / 457.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007471/0.3801, allocations: 124 kB / 457.7 MB, free: 12.54 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.0002518/0.3804, allocations: 134.9 kB / 457.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002894/0.3833, allocations: 1.046 MB / 458.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.3833, allocations: 0 / 458.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.3843, allocations: 346.1 kB / 459.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009537/0.3852, allocations: 154.4 kB / 459.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002694/0.3879, allocations: 1.277 MB / 460.6 MB, free: 9.422 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.3882, allocations: 232.7 kB / 460.8 MB, free: 9.176 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003494/0.3885, allocations: 39.44 kB / 460.9 MB, free: 9.137 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3885, allocations: 0 / 460.9 MB, free: 9.137 MB / 366.1 MB Notification: Performance of Templates: time 0.01203/0.4006, allocations: 7.56 MB / 468.4 MB, free: 1.594 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: 7.665952806011774]