Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.001482/0.001482, allocations: 119.5 kB / 21.17 MB, free: 0.7305 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.001668/0.001668, allocations: 210.9 kB / 24.47 MB, free: 4.191 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.391/1.391, allocations: 230.4 MB / 258.1 MB, free: 8.141 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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [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.00193/0.00193, allocations: 67.83 kB / 378.7 MB, free: 2.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2524, allocations: 53.31 MB / 432 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004617/0.257, allocations: 2.891 MB / 434.9 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002392/0.2594, allocations: 1.291 MB / 436.2 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001793/0.2596, allocations: 4 kB / 436.2 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003586/0.2599, allocations: 99.2 kB / 436.3 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000628/0.2606, allocations: 216.1 kB / 436.5 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006276/0.2612, allocations: 251.5 kB / 436.8 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008272/0.262, allocations: 0.7056 MB / 437.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002137/0.2622, allocations: 95.42 kB / 437.6 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000494/0.2627, allocations: 327 kB / 437.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005251/0.2633, allocations: 390.8 kB / 438.3 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.588e-05/0.2634, allocations: 56 kB / 438.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003153/0.2637, allocations: 155.9 kB / 438.5 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000207/0.2639, allocations: 163.5 kB / 438.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002605/0.2641, allocations: 270.7 kB / 438.9 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008798/0.265, allocations: 0.7216 MB / 439.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.265, allocations: 0 / 439.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.265, allocations: 0 / 439.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.423e-05/0.265, allocations: 0 / 439.6 MB, free: 15.77 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001785/0.2668, allocations: 0.8531 MB / 440.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.2669, allocations: 12.03 kB / 440.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000438/0.2673, allocations: 76.62 kB / 440.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007305/0.268, allocations: 374.5 kB / 440.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001575/0.2682, allocations: 96.95 kB / 441 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.2683, allocations: 44.33 kB / 441.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.2694, allocations: 0.5644 MB / 441.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.2694, allocations: 4 kB / 441.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.807e-05/0.2695, allocations: 20 kB / 441.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.2695, allocations: 8 kB / 441.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.2709, allocations: 0.6089 MB / 442.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002574/0.2734, allocations: 1.311 MB / 443.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.2746, allocations: 0.4897 MB / 444.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000629/0.2753, allocations: 279.5 kB / 444.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.208e-05/0.2753, allocations: 12.5 kB / 444.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.2753, allocations: 43.12 kB / 444.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 1.973e-06/0.2753, allocations: 7.875 kB / 444.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007165/0.2825, allocations: 2.735 MB / 447.1 MB, free: 7.938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.692e-05/0.2826, allocations: 85.67 kB / 447.2 MB, free: 7.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004834/0.2831, allocations: 355.3 kB / 447.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.944e-05/0.2832, allocations: 37.7 kB / 447.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.2833, allocations: 173.7 kB / 447.8 MB, free: 7.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000214/0.2835, allocations: 238 kB / 448 MB, free: 7.031 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/0.2838, allocations: 126.2 kB / 448.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.2839, allocations: 350.8 kB / 448.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000642/0.2846, allocations: 269.2 kB / 448.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006952/0.2853, allocations: 338.4 kB / 449.1 MB, free: 5.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.2864, allocations: 487.2 kB / 449.6 MB, free: 5.461 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2864, allocations: 4.031 kB / 449.6 MB, free: 5.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001949/0.2883, allocations: 0.8258 MB / 450.4 MB, free: 4.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.2884, allocations: 8 kB / 450.4 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.138e-06/0.2884, allocations: 0 / 450.4 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.2895, allocations: 445.9 kB / 450.8 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000417/0.29, allocations: 83.88 kB / 450.9 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001406/0.2914, allocations: 1.022 MB / 451.9 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005313/0.2919, allocations: 60.03 kB / 452 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-05/0.292, allocations: 27.98 kB / 452 MB, free: 2.961 MB / 350.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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0003042/0.2923, allocations: 181.6 kB / 452.2 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.2924, allocations: 43.72 kB / 452.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000162/0.2926, allocations: 71.86 kB / 452.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.2926, allocations: 8 kB / 452.3 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.2926, allocations: 0 / 452.3 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.2926, allocations: 3.984 kB / 452.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00349/0.2961, allocations: 1.69 MB / 454 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2961, allocations: 0 / 454 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003936/0.2965, allocations: 79.88 kB / 454.1 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.2975, allocations: 428.5 kB / 454.5 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.281e-05/0.2975, allocations: 23.97 kB / 454.5 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001428/0.299, allocations: 0.9706 MB / 455.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.299, allocations: 0 / 455.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002665/0.3016, allocations: 1.209 MB / 456.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003272/0.302, allocations: 188.7 kB / 456.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001165/0.3021, allocations: 24.05 kB / 456.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004679/0.3025, allocations: 51.94 kB / 457 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002196/0.3028, allocations: 88.42 kB / 457 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.49e-05/0.3028, allocations: 27.97 kB / 457.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003594/0.3032, allocations: 261.9 kB / 457.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3032, allocations: 0 / 457.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005862/0.3038, allocations: 155.8 kB / 457.5 MB, free: 13.34 MB / 366.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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001387/0.3052, allocations: 393.9 kB / 457.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.3069, allocations: 0.6299 MB / 458.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3069, allocations: 0 / 458.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008919/0.3078, allocations: 344.1 kB / 458.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005858/0.3084, allocations: 64.64 kB / 458.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00291/0.3113, allocations: 1.186 MB / 460.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005251/0.3118, allocations: 0.8251 MB / 460.9 MB, free: 9.984 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002209/0.312, allocations: 55.39 kB / 461 MB, free: 9.93 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.312, allocations: 3.938 kB / 461 MB, free: 9.926 MB / 366.1 MB Notification: Performance of Templates: time 0.01291/0.3249, allocations: 8.115 MB / 469.1 MB, free: 1.82 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.8381401863880455]