Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.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.001843/0.001843, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.002148/0.002148, allocations: 206.8 kB / 24.47 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.532/1.532, allocations: 230.4 MB / 258.1 MB, free: 8.133 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-beta.om/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.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 67.83 kB / 378.7 MB, free: 2.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3051, allocations: 53.31 MB / 432 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005521/0.3106, allocations: 3.202 MB / 435.2 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002574/0.3132, allocations: 1.142 MB / 436.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002058/0.3134, allocations: 7.938 kB / 436.4 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004425/0.3138, allocations: 87.22 kB / 436.5 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006192/0.3144, allocations: 178.7 kB / 436.7 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006838/0.3151, allocations: 211.6 kB / 436.9 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000913/0.316, allocations: 0.6591 MB / 437.5 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000295/0.3163, allocations: 100.8 kB / 437.6 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006391/0.317, allocations: 307 kB / 437.9 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006339/0.3176, allocations: 314.8 kB / 438.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000125/0.3177, allocations: 52 kB / 438.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002846/0.318, allocations: 112 kB / 438.4 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000229/0.3182, allocations: 143.5 kB / 438.5 MB, free: 0.832 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003531/0.3186, allocations: 262.8 kB / 438.8 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001077/0.3197, allocations: 0.6517 MB / 439.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3197, allocations: 0 / 439.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3197, allocations: 0 / 439.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.716e-06/0.3197, allocations: 0 / 439.4 MB, free: 15.92 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.00216/0.3218, allocations: 0.8452 MB / 440.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3219, allocations: 11.97 kB / 440.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003352/0.3222, allocations: 68.55 kB / 440.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007545/0.323, allocations: 347.4 kB / 440.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.071e-05/0.323, allocations: 41.36 kB / 440.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.3232, allocations: 48.33 kB / 440.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.3242, allocations: 470.6 kB / 441.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.244e-05/0.3243, allocations: 4 kB / 441.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.779e-05/0.3243, allocations: 16 kB / 441.3 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.3244, allocations: 8 kB / 441.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.326, allocations: 475.6 kB / 441.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002562/0.3285, allocations: 1.133 MB / 442.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009261/0.3295, allocations: 400.8 kB / 443.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005488/0.33, allocations: 254.4 kB / 443.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.069e-05/0.33, allocations: 4.562 kB / 443.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.3301, allocations: 43.06 kB / 443.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 3.767e-06/0.3301, allocations: 7.984 kB / 443.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005736/0.3358, allocations: 2.321 MB / 445.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.055e-05/0.3359, allocations: 63.97 kB / 445.9 MB, free: 9.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003946/0.3363, allocations: 308.5 kB / 446.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.553e-05/0.3364, allocations: 41.7 kB / 446.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.3365, allocations: 181.6 kB / 446.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002084/0.3367, allocations: 218.2 kB / 446.7 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000195/0.3369, allocations: 110.3 kB / 446.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001896/0.3371, allocations: 350.8 kB / 447.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000518/0.3376, allocations: 229.2 kB / 447.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005435/0.3382, allocations: 280.8 kB / 447.6 MB, free: 7.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008616/0.339, allocations: 390.3 kB / 448 MB, free: 6.992 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.339, allocations: 0 / 448 MB, free: 6.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.00172/0.3408, allocations: 0.7445 MB / 448.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.3408, allocations: 8 kB / 448.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.3408, allocations: 0 / 448.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009822/0.3418, allocations: 373.5 kB / 449.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/0.3421, allocations: 91.83 kB / 449.2 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001584/0.3437, allocations: 1.401 MB / 450.6 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005592/0.3443, allocations: 71.94 kB / 450.7 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.489e-05/0.3443, allocations: 16 kB / 450.7 MB, free: 4.227 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003082/0.3446, allocations: 182.5 kB / 450.9 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.3447, allocations: 51.66 kB / 450.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001335/0.3449, allocations: 64.52 kB / 451 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.3449, allocations: 4 kB / 451 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.3449, allocations: 0 / 451 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.3449, allocations: 7.969 kB / 451 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00296/0.3478, allocations: 1.44 MB / 452.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3479, allocations: 0 / 452.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003689/0.3482, allocations: 83.89 kB / 452.5 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008407/0.3491, allocations: 345.8 kB / 452.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.706e-05/0.3491, allocations: 27.91 kB / 452.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001503/0.3506, allocations: 1.362 MB / 454.3 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.3506, allocations: 11.95 kB / 454.3 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002242/0.3529, allocations: 1.043 MB / 455.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003083/0.3532, allocations: 172.8 kB / 455.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.3533, allocations: 23.94 kB / 455.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004663/0.3538, allocations: 60.05 kB / 455.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/0.354, allocations: 96.41 kB / 455.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.784e-05/0.354, allocations: 31.98 kB / 455.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002805/0.3543, allocations: 219 kB / 455.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3543, allocations: 0 / 455.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005602/0.3549, allocations: 131.9 kB / 456 MB, free: 14.7 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001418/0.3563, allocations: 391.7 kB / 456.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.3578, allocations: 0.5391 MB / 457 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3578, allocations: 4 kB / 457 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008022/0.3586, allocations: 327 kB / 457.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007381/0.3593, allocations: 89.28 kB / 457.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004242/0.3636, allocations: 1.486 MB / 458.8 MB, free: 11.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004911/0.3641, allocations: 0.8361 MB / 459.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001948/0.3642, allocations: 43.39 kB / 459.7 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001242/0.3644, allocations: 39.42 kB / 459.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3644, allocations: 4 kB / 459.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of Templates: time 0.01965/0.384, allocations: 10.48 MB / 470.2 MB, free: 0.6016 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.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.013638237025589]