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.001395/0.001395, allocations: 112.5 kB / 21.19 MB, free: 0.7617 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.001589/0.001589, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.535/1.535, allocations: 230.6 MB / 258.3 MB, free: 7.988 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.001747/0.001747, allocations: 47.94 kB / 379 MB, free: 2.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3049, allocations: 53.35 MB / 432.4 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004657/0.3095, allocations: 2.421 MB / 434.8 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.3116, allocations: 0.8844 MB / 435.7 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002465/0.3118, allocations: 15.88 kB / 435.7 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003494/0.3122, allocations: 47.56 kB / 435.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002564/0.3124, allocations: 71.42 kB / 435.8 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006695/0.3131, allocations: 203.6 kB / 436 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005148/0.3136, allocations: 399.4 kB / 436.4 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002326/0.3138, allocations: 71.86 kB / 436.5 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003728/0.3142, allocations: 183.4 kB / 436.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003014/0.3145, allocations: 187.2 kB / 436.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.488e-05/0.3146, allocations: 32 kB / 436.9 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.053e-05/0.3147, allocations: 36 kB / 436.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.3148, allocations: 103.7 kB / 437 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001817/0.315, allocations: 167.1 kB / 437.2 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005349/0.3155, allocations: 371.6 kB / 437.5 MB, free: 1.754 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3155, allocations: 4 kB / 437.5 MB, free: 1.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3155, allocations: 0 / 437.5 MB, free: 1.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.3155, allocations: 0 / 437.5 MB, free: 1.75 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.001424/0.317, allocations: 0.5986 MB / 438.1 MB, free: 1.117 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.317, allocations: 12.03 kB / 438.1 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.3171, allocations: 48.69 kB / 438.2 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005357/0.3177, allocations: 249.3 kB / 438.4 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004012/0.3181, allocations: 351.9 kB / 438.8 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.325e-05/0.3181, allocations: 32.38 kB / 438.8 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.3195, allocations: 0.5777 MB / 439.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.3195, allocations: 0 / 439.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.147e-05/0.3195, allocations: 12 kB / 439.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.3195, allocations: 8 kB / 439.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.3209, allocations: 0.512 MB / 439.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001818/0.3228, allocations: 0.9569 MB / 440.9 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001655/0.3244, allocations: 482.5 kB / 441.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006206/0.325, allocations: 231.4 kB / 441.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.91e-05/0.3251, allocations: 20.08 kB / 441.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.196e-05/0.3251, allocations: 46.48 kB / 441.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.615e-06/0.3251, allocations: 0 / 441.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.0389/0.364, allocations: 5.764 MB / 447.4 MB, free: 7.594 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001599/0.3642, allocations: 156.9 kB / 447.6 MB, free: 7.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003678/0.3646, allocations: 261.8 kB / 447.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.709e-05/0.3647, allocations: 37.7 kB / 447.8 MB, free: 7.105 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.3648, allocations: 145.8 kB / 448 MB, free: 6.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002428/0.365, allocations: 202.3 kB / 448.2 MB, free: 6.758 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003063/0.3653, allocations: 114.6 kB / 448.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.3655, allocations: 346.8 kB / 448.6 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001658/0.3672, allocations: 0.6188 MB / 449.3 MB, free: 5.672 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001823/0.369, allocations: 0.7963 MB / 450.1 MB, free: 4.801 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003165/0.3722, allocations: 1.252 MB / 451.3 MB, free: 3.469 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/0.3722, allocations: 0 / 451.3 MB, free: 3.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003758/0.3759, allocations: 1.406 MB / 452.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/0.376, allocations: 8 kB / 452.7 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.376, allocations: 4 kB / 452.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.176e-05/0.376, allocations: 12 kB / 452.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.3774, allocations: 207.8 kB / 452.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.348e-05/0.3774, allocations: 15.92 kB / 453 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.3784, allocations: 99.78 kB / 453 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.561e-05/0.3785, allocations: 31.98 kB / 453.1 MB, free: 1.688 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.000414/0.3789, allocations: 193.6 kB / 453.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003715/0.3793, allocations: 161.3 kB / 453.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002051/0.3795, allocations: 71.61 kB / 453.5 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.3795, allocations: 8 kB / 453.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/0.3795, allocations: 0 / 453.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.3796, allocations: 3.984 kB / 453.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005246/0.3848, allocations: 2.163 MB / 455.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.3848, allocations: 8.188 kB / 455.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007845/0.3856, allocations: 179.8 kB / 455.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.895e-05/0.3856, allocations: 16 kB / 455.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.688e-05/0.3857, allocations: 27.98 kB / 455.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.356e-05/0.3857, allocations: 24.06 kB / 455.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-05/0.3857, allocations: 15.94 kB / 455.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003434/0.3891, allocations: 1.565 MB / 457.5 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003341/0.3895, allocations: 107.6 kB / 457.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.196e-05/0.3896, allocations: 24 kB / 457.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006104/0.3902, allocations: 83.97 kB / 457.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002331/0.3904, allocations: 91.64 kB / 457.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.294e-05/0.3905, allocations: 32 kB / 457.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002612/0.3907, allocations: 185.2 kB / 458 MB, free: 12.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3907, allocations: 3.938 kB / 458 MB, free: 12.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007076/0.3914, allocations: 124 kB / 458.1 MB, free: 12.28 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.0002152/0.3916, allocations: 138.9 kB / 458.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002867/0.3945, allocations: 1.03 MB / 459.3 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.3945, allocations: 384 / 459.3 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.3955, allocations: 333.9 kB / 459.6 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.3966, allocations: 150.5 kB / 459.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002849/0.3994, allocations: 1.269 MB / 461 MB, free: 9.195 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005283/0.4, allocations: 0.8289 MB / 461.9 MB, free: 8.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003665/0.4003, allocations: 51.42 kB / 461.9 MB, free: 8.289 MB / 366.1 MB Notification: Performance of SimCode: time 1.753e-06/0.4003, allocations: 0 / 461.9 MB, free: 8.289 MB / 366.1 MB Notification: Performance of Templates: time 0.01288/0.4132, allocations: 7.435 MB / 469.4 MB, free: 0.8711 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.420687020057812]