Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001501/0.001501, allocations: 113 kB / 21.18 MB, free: 0.5898 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.001637/0.001637, allocations: 209.7 kB / 24.47 MB, free: 3.996 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.406/1.406, allocations: 230.4 MB / 258.1 MB, free: 8.137 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [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.001916/0.001916, allocations: 71.83 kB / 378.7 MB, free: 2.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2702, allocations: 53.31 MB / 432 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004254/0.2744, allocations: 2.575 MB / 434.6 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00209/0.2765, allocations: 1.154 MB / 435.8 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.2767, allocations: 4 kB / 435.8 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002931/0.277, allocations: 67.42 kB / 435.8 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000488/0.2775, allocations: 172.4 kB / 436 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004342/0.2779, allocations: 175.6 kB / 436.2 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005976/0.2785, allocations: 0.5141 MB / 436.7 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.2787, allocations: 64.94 kB / 436.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003722/0.279, allocations: 239.4 kB / 437 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003774/0.2794, allocations: 283.1 kB / 437.3 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.22e-05/0.2795, allocations: 44 kB / 437.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002544/0.2797, allocations: 131.9 kB / 437.4 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.2799, allocations: 127.6 kB / 437.6 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002012/0.2801, allocations: 195.1 kB / 437.7 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006749/0.2808, allocations: 0.5507 MB / 438.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.2808, allocations: 4 kB / 438.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2808, allocations: 0 / 438.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.2808, allocations: 0 / 438.3 MB, free: 1.07 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001396/0.2822, allocations: 0.7127 MB / 439 MB, free: 316 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.2822, allocations: 12.03 kB / 439 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003922/0.2826, allocations: 60.67 kB / 439.1 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000595/0.2832, allocations: 324.1 kB / 439.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.2833, allocations: 92.61 kB / 439.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.504e-05/0.2834, allocations: 36.33 kB / 439.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008365/0.2843, allocations: 417 kB / 439.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.2843, allocations: 4 kB / 439.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.211e-05/0.2843, allocations: 16 kB / 440 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.2843, allocations: 8 kB / 440 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.2854, allocations: 470.2 kB / 440.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001838/0.2872, allocations: 0.9971 MB / 441.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008791/0.2881, allocations: 372.4 kB / 441.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004809/0.2886, allocations: 202.1 kB / 442 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.825e-05/0.2886, allocations: 16.42 kB / 442 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.2886, allocations: 31 kB / 442 MB, free: 13.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.154e-06/0.2886, allocations: 0 / 442 MB, free: 13.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005569/0.2942, allocations: 2.153 MB / 444.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/0.2943, allocations: 81.67 kB / 444.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000383/0.2947, allocations: 273 kB / 444.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.175e-05/0.2947, allocations: 37.7 kB / 444.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.2948, allocations: 141.2 kB / 444.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.295, allocations: 198.4 kB / 444.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001622/0.2952, allocations: 90.23 kB / 445 MB, free: 10.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.2953, allocations: 342.8 kB / 445.3 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004651/0.2958, allocations: 189 kB / 445.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005096/0.2963, allocations: 244.6 kB / 445.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008774/0.2972, allocations: 388.3 kB / 446.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2972, allocations: 3.938 kB / 446.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001331/0.2985, allocations: 0.5902 MB / 446.7 MB, free: 8.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.2985, allocations: 7.938 kB / 446.7 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.2985, allocations: 3.984 kB / 446.7 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008337/0.2994, allocations: 306.6 kB / 447 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003241/0.2997, allocations: 67.88 kB / 447.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004145/0.3038, allocations: 2.952 MB / 450 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003176/0.3042, allocations: 27.97 kB / 450.1 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.777e-05/0.3042, allocations: 23.92 kB / 450.1 MB, free: 4.77 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: 7 (gear.ideal,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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002053/0.3044, allocations: 161.8 kB / 450.2 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.3045, allocations: 35.75 kB / 450.3 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.3046, allocations: 51.61 kB / 450.3 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.3046, allocations: 4 kB / 450.3 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.3046, allocations: 0 / 450.3 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.3046, allocations: 3.984 kB / 450.3 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002357/0.307, allocations: 1.285 MB / 451.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.307, allocations: 4 kB / 451.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000333/0.3073, allocations: 63.94 kB / 451.7 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007424/0.3081, allocations: 292.6 kB / 452 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.212e-05/0.3081, allocations: 19.97 kB / 452 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003878/0.312, allocations: 2.85 MB / 454.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.312, allocations: 3.984 kB / 454.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001888/0.3139, allocations: 0.9428 MB / 455.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002065/0.3141, allocations: 156.9 kB / 455.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.666e-05/0.3142, allocations: 15.94 kB / 456 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003197/0.3145, allocations: 27.97 kB / 456 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/0.3147, allocations: 72.33 kB / 456.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.45e-05/0.3147, allocations: 23.98 kB / 456.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002576/0.315, allocations: 200.5 kB / 456.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.315, allocations: 4.062 kB / 456.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000605/0.3156, allocations: 144 kB / 456.4 MB, free: 14.18 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: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001335/0.3169, allocations: 403.7 kB / 456.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001457/0.3184, allocations: 0.6604 MB / 457.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3184, allocations: 0 / 457.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008438/0.3192, allocations: 463.7 kB / 457.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004327/0.3196, allocations: 42.48 kB / 458 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.3213, allocations: 0.8595 MB / 458.8 MB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004451/0.3217, allocations: 0.8007 MB / 459.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001545/0.3219, allocations: 43.41 kB / 459.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3219, allocations: 0 / 459.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of Templates: time 0.01098/0.3328, allocations: 6.738 MB / 466.4 MB, free: 4.238 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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: 7.681105840951204]