Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001857/0.001857, allocations: 106 kB / 21.18 MB, free: 0.707 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002124/0.002124, allocations: 185.2 kB / 24.47 MB, free: 4.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 66.98 kB / 347.7 MB, free: 9.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2383, allocations: 49.15 MB / 396.8 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003566/0.2419, allocations: 3.049 MB / 399.9 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001476/0.2433, allocations: 0.9915 MB / 400.9 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.2435, allocations: 13.06 kB / 400.9 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002213/0.2437, allocations: 63.84 kB / 400.9 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002131/0.2439, allocations: 136.4 kB / 401.1 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004744/0.2444, allocations: 222.8 kB / 401.3 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005514/0.245, allocations: 0.6391 MB / 401.9 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001817/0.2451, allocations: 96.48 kB / 402 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003212/0.2455, allocations: 284.8 kB / 402.3 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003674/0.2458, allocations: 310.1 kB / 402.6 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.477e-05/0.2459, allocations: 47.12 kB / 402.6 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.2461, allocations: 101.7 kB / 402.7 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.2462, allocations: 127.1 kB / 402.9 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001922/0.2464, allocations: 250.5 kB / 403.1 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006058/0.247, allocations: 0.5947 MB / 403.7 MB, free: 5.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.247, allocations: 1.156 kB / 403.7 MB, free: 5.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.247, allocations: 7.938 kB / 403.7 MB, free: 5.512 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.247, allocations: 0 / 403.7 MB, free: 5.512 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001233/0.2482, allocations: 0.7259 MB / 404.4 MB, free: 5.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.2483, allocations: 13.02 kB / 404.4 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.2484, allocations: 49.53 kB / 404.5 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003939/0.2488, allocations: 265.7 kB / 404.8 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/0.2488, allocations: 33.91 kB / 404.8 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.755e-05/0.2489, allocations: 39.38 kB / 404.8 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008462/0.2497, allocations: 474.1 kB / 405.3 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.2497, allocations: 15.05 kB / 405.3 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.369e-05/0.2498, allocations: 22.36 kB / 405.3 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.2498, allocations: 10.53 kB / 405.3 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008821/0.2507, allocations: 481 kB / 405.8 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0018/0.2525, allocations: 1.075 MB / 406.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000732/0.2532, allocations: 362.9 kB / 407.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004712/0.2537, allocations: 258.8 kB / 407.5 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.982e-05/0.2537, allocations: 9.312 kB / 407.5 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.528e-05/0.2537, allocations: 33.75 kB / 407.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.644e-06/0.2538, allocations: 0 / 407.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.004403/0.2582, allocations: 2.042 MB / 409.6 MB, free: 2.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.45e-05/0.2582, allocations: 57.5 kB / 409.6 MB, free: 2.453 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002469/0.2584, allocations: 284.5 kB / 409.9 MB, free: 2.262 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.402e-05/0.2585, allocations: 47.03 kB / 410 MB, free: 2.215 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.174e-05/0.2586, allocations: 189.1 kB / 410.1 MB, free: 2.039 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.2587, allocations: 197.5 kB / 410.3 MB, free: 1.867 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.2588, allocations: 113.7 kB / 410.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.856e-05/0.2589, allocations: 347.8 kB / 410.8 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004148/0.2593, allocations: 239.1 kB / 411 MB, free: 1.344 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004339/0.2597, allocations: 292.2 kB / 411.3 MB, free: 1.191 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006772/0.2604, allocations: 412.8 kB / 411.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2604, allocations: 1.188 kB / 411.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001451/0.2618, allocations: 0.7798 MB / 412.5 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.2619, allocations: 9.391 kB / 412.5 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.2619, allocations: 0 / 412.5 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008123/0.2627, allocations: 0.4956 MB / 413 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003545/0.263, allocations: 91.95 kB / 413.1 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001392/0.2644, allocations: 1.413 MB / 414.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005126/0.2649, allocations: 78.22 kB / 414.6 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.706e-05/0.265, allocations: 17.62 kB / 414.6 MB, free: 15.06 MB / 334.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 (57): * Single equations (assignments): 55 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003013/0.2653, allocations: 176.2 kB / 414.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.2654, allocations: 39.27 kB / 414.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001409/0.2655, allocations: 58.86 kB / 414.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.2655, allocations: 9.719 kB / 414.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.2656, allocations: 0 / 414.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.2656, allocations: 9.016 kB / 414.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00288/0.2684, allocations: 1.408 MB / 416.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.2684, allocations: 9.344 kB / 416.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003627/0.2688, allocations: 84.2 kB / 416.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007905/0.2696, allocations: 474.5 kB / 416.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.174e-05/0.2697, allocations: 22.34 kB / 416.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001363/0.271, allocations: 1.374 MB / 418.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.271, allocations: 1.438 kB / 418.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002108/0.2731, allocations: 1.096 MB / 419.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002532/0.2734, allocations: 84.69 kB / 419.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.489e-05/0.2735, allocations: 32.02 kB / 419.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003933/0.2739, allocations: 55.41 kB / 419.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002466/0.2741, allocations: 102.4 kB / 419.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.092e-05/0.2742, allocations: 23.97 kB / 419.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002154/0.2744, allocations: 205.7 kB / 419.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2744, allocations: 0 / 419.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004982/0.2749, allocations: 130.9 kB / 419.9 MB, free: 11.4 MB / 334.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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002507/0.2751, allocations: 139.4 kB / 420.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.2764, allocations: 0.5602 MB / 420.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2764, allocations: 0 / 420.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007054/0.2771, allocations: 322.2 kB / 421 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005927/0.2777, allocations: 86.92 kB / 421 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003687/0.2814, allocations: 1.435 MB / 422.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004814/0.2818, allocations: 0.8202 MB / 423.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001723/0.282, allocations: 39.27 kB / 423.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.2821, allocations: 39.42 kB / 423.4 MB, free: 8.457 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2821, allocations: 4 kB / 423.4 MB, free: 8.453 MB / 334.1 MB Notification: Performance of Templates: time 0.01852/0.3006, allocations: 10.53 MB / 433.9 MB, free: 13.91 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 4.91483704932034]