Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.00155/0.00155, allocations: 120.2 kB / 21.94 MB, free: 8 kB / 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.001728/0.001728, allocations: 202.7 kB / 25.23 MB, free: 3.551 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.569/1.569, allocations: 207.6 MB / 236 MB, free: 9.984 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.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.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 59.91 kB / 348.4 MB, free: 9.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.325, allocations: 49.16 MB / 397.6 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003859/0.3289, allocations: 2.752 MB / 400.4 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002098/0.331, allocations: 1.148 MB / 401.5 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002116/0.3312, allocations: 8.188 kB / 401.5 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002671/0.3314, allocations: 70.33 kB / 401.6 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006077/0.332, allocations: 203.4 kB / 401.8 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005349/0.3326, allocations: 246.3 kB / 402 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000667/0.3332, allocations: 0.6398 MB / 402.7 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002031/0.3334, allocations: 92.23 kB / 402.7 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00042/0.3339, allocations: 298.7 kB / 403 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00045/0.3343, allocations: 356.1 kB / 403.4 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.866e-05/0.3344, allocations: 55.44 kB / 403.4 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002672/0.3347, allocations: 145.6 kB / 403.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001532/0.3348, allocations: 152.2 kB / 403.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002098/0.335, allocations: 248.4 kB / 404 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008828/0.3359, allocations: 0.6484 MB / 404.6 MB, free: 5.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3359, allocations: 0.75 kB / 404.6 MB, free: 5.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3359, allocations: 0 / 404.6 MB, free: 5.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.427e-06/0.3359, allocations: 0 / 404.6 MB, free: 5.191 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.001546/0.3375, allocations: 0.7349 MB / 405.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.3375, allocations: 9.562 kB / 405.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003485/0.3379, allocations: 68.86 kB / 405.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006162/0.3385, allocations: 307.8 kB / 405.7 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/0.3386, allocations: 151.1 kB / 405.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.875e-05/0.3387, allocations: 41.45 kB / 405.9 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.3398, allocations: 0.5619 MB / 406.5 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/0.3398, allocations: 1.828 kB / 406.5 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.174e-05/0.3399, allocations: 15.12 kB / 406.5 MB, free: 4.062 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.907e-05/0.3399, allocations: 13.34 kB / 406.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001361/0.3413, allocations: 0.6375 MB / 407.2 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002473/0.3437, allocations: 1.231 MB / 408.4 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.3448, allocations: 0.5107 MB / 408.9 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005582/0.3454, allocations: 289.7 kB / 409.2 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.295e-05/0.3454, allocations: 18.14 kB / 409.2 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.3455, allocations: 37.72 kB / 409.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.635e-06/0.3455, allocations: 0 / 409.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.00644/0.3519, allocations: 2.555 MB / 411.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.3519, allocations: 88.42 kB / 411.9 MB, free: 1.418 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003982/0.3523, allocations: 329.6 kB / 412.2 MB, free: 1.215 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.466e-05/0.3524, allocations: 43.64 kB / 412.2 MB, free: 1.172 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.074e-05/0.3525, allocations: 171.1 kB / 412.4 MB, free: 1.012 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000142/0.3526, allocations: 240.5 kB / 412.6 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.3528, allocations: 124 kB / 412.8 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.002e-05/0.3529, allocations: 348 kB / 413.1 MB, free: 392 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005618/0.3534, allocations: 286.1 kB / 413.4 MB, free: 260 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006079/0.3541, allocations: 359.6 kB / 413.7 MB, free: 68 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.3552, allocations: 0.523 MB / 414.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3552, allocations: 1.125 kB / 414.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001887/0.357, allocations: 0.8632 MB / 415.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.3571, allocations: 9.969 kB / 415.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3571, allocations: 3.938 kB / 415.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001166/0.3582, allocations: 482 kB / 415.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003823/0.3586, allocations: 83.62 kB / 415.7 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.3601, allocations: 1.076 MB / 416.8 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005079/0.3606, allocations: 60.83 kB / 416.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.397e-05/0.3607, allocations: 24.48 kB / 416.8 MB, free: 14.32 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0003258/0.361, allocations: 181.3 kB / 417 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.3611, allocations: 44.34 kB / 417.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001648/0.3613, allocations: 62.64 kB / 417.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.3613, allocations: 6.875 kB / 417.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.3613, allocations: 5.359 kB / 417.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3613, allocations: 3.938 kB / 417.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00342/0.3647, allocations: 1.712 MB / 418.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.3647, allocations: 3.938 kB / 418.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003722/0.3651, allocations: 81.06 kB / 418.9 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001032/0.3661, allocations: 443.6 kB / 419.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.391e-05/0.3662, allocations: 21.92 kB / 419.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001384/0.3676, allocations: 1.043 MB / 420.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3676, allocations: 1.219 kB / 420.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00299/0.3706, allocations: 1.297 MB / 421.7 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003346/0.3709, allocations: 107.6 kB / 421.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.371, allocations: 12 kB / 421.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004478/0.3715, allocations: 60 kB / 421.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002344/0.3717, allocations: 88.47 kB / 422 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.366e-05/0.3717, allocations: 23.98 kB / 422 MB, free: 10.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003979/0.3721, allocations: 243 kB / 422.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3721, allocations: 0 / 422.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007943/0.3729, allocations: 147.9 kB / 422.4 MB, free: 10 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003613/0.3733, allocations: 151 kB / 422.5 MB, free: 9.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002131/0.3754, allocations: 0.6702 MB / 423.2 MB, free: 9.176 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.3754, allocations: 0 / 423.2 MB, free: 9.176 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008503/0.3763, allocations: 364.6 kB / 423.6 MB, free: 8.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000503/0.3768, allocations: 53.03 kB / 423.6 MB, free: 8.766 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.3796, allocations: 1.156 MB / 424.8 MB, free: 7.574 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005016/0.3801, allocations: 0.8251 MB / 425.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.3803, allocations: 43.41 kB / 425.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3803, allocations: 0 / 425.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of Templates: time 0.01272/0.393, allocations: 7.288 MB / 432.9 MB, free: 15.38 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time [Calling sys.exit(0), Time elapsed: 9.20401115808636]