Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001358/0.001358, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 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.001474/0.001474, allocations: 213.2 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.503/1.503, allocations: 230.6 MB / 258.2 MB, free: 7.805 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+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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 51.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2662, allocations: 53.36 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004138/0.2703, allocations: 2.334 MB / 434.7 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00204/0.2724, allocations: 1.01 MB / 435.7 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.2725, allocations: 7.938 kB / 435.7 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002912/0.2728, allocations: 63.48 kB / 435.7 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004603/0.2733, allocations: 152.7 kB / 435.9 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004122/0.2737, allocations: 163.7 kB / 436 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005551/0.2742, allocations: 474.7 kB / 436.5 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.2744, allocations: 44.56 kB / 436.6 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002532/0.2746, allocations: 215.5 kB / 436.8 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.275, allocations: 231.2 kB / 437 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.127e-05/0.2751, allocations: 36 kB / 437 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000255/0.2753, allocations: 120 kB / 437.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.2755, allocations: 107.7 kB / 437.2 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.2757, allocations: 151.4 kB / 437.4 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006507/0.2763, allocations: 0.4933 MB / 437.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2763, allocations: 0 / 437.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.107e-06/0.2763, allocations: 3.984 kB / 437.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.2763, allocations: 0 / 437.9 MB, free: 1.117 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001263/0.2776, allocations: 0.5945 MB / 438.5 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.2776, allocations: 12.03 kB / 438.5 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003235/0.2779, allocations: 52.72 kB / 438.6 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005958/0.2785, allocations: 251.6 kB / 438.8 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001992/0.2787, allocations: 140.1 kB / 438.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.499e-05/0.2788, allocations: 32.38 kB / 439 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007872/0.2796, allocations: 416.3 kB / 439.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.2796, allocations: 3.953 kB / 439.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.04e-05/0.2797, allocations: 12 kB / 439.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.2797, allocations: 8 kB / 439.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009138/0.2806, allocations: 406.3 kB / 439.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.2828, allocations: 1.088 MB / 440.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000734/0.2835, allocations: 318.5 kB / 441.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004072/0.2839, allocations: 180.7 kB / 441.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.319e-05/0.2839, allocations: 4.719 kB / 441.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.859e-05/0.284, allocations: 38.56 kB / 441.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.984e-06/0.284, allocations: 0 / 441.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004979/0.289, allocations: 1.66 MB / 443.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.668e-05/0.289, allocations: 92.86 kB / 443.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003608/0.2894, allocations: 247.4 kB / 443.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.758e-05/0.2894, allocations: 37.7 kB / 443.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.2896, allocations: 140.8 kB / 443.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/0.2897, allocations: 154.9 kB / 443.7 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.2899, allocations: 86.06 kB / 443.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.29, allocations: 338.8 kB / 444.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003909/0.2904, allocations: 160.8 kB / 444.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004759/0.2909, allocations: 255.5 kB / 444.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000737/0.2916, allocations: 339.2 kB / 444.9 MB, free: 9.809 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.2916, allocations: 0 / 444.9 MB, free: 9.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001384/0.293, allocations: 0.5435 MB / 445.4 MB, free: 9.254 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.2931, allocations: 8 kB / 445.4 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.2931, allocations: 0 / 445.4 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008414/0.2939, allocations: 292.7 kB / 445.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002598/0.2942, allocations: 55.91 kB / 445.8 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004326/0.2985, allocations: 2.719 MB / 448.5 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003005/0.2988, allocations: 27.97 kB / 448.5 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-05/0.2988, allocations: 23.92 kB / 448.5 MB, free: 6.031 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002253/0.2991, allocations: 153.7 kB / 448.7 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.727e-05/0.2991, allocations: 27.81 kB / 448.7 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.2992, allocations: 42.98 kB / 448.8 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.2993, allocations: 8 kB / 448.8 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2993, allocations: 4.062 kB / 448.8 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.2993, allocations: 3.984 kB / 448.8 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002098/0.3014, allocations: 0.9724 MB / 449.7 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3014, allocations: 0 / 449.7 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003026/0.3017, allocations: 51.89 kB / 449.8 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009874/0.3027, allocations: 280.7 kB / 450.1 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.086e-05/0.3027, allocations: 15.98 kB / 450.1 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005396/0.3081, allocations: 2.666 MB / 452.8 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3081, allocations: 0 / 452.8 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002405/0.3105, allocations: 0.8038 MB / 453.6 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002683/0.3108, allocations: 67.78 kB / 453.6 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.997e-05/0.3109, allocations: 8.125 kB / 453.6 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003894/0.3113, allocations: 27.97 kB / 453.7 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002589/0.3115, allocations: 63.88 kB / 453.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.374e-05/0.3116, allocations: 27.86 kB / 453.8 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003656/0.3119, allocations: 180.5 kB / 453.9 MB, free: 484 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3119, allocations: 0 / 453.9 MB, free: 484 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009429/0.3129, allocations: 135.9 kB / 454.1 MB, free: 348 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.001863/0.3147, allocations: 412.9 kB / 454.5 MB, free: 88 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002004/0.3168, allocations: 0.5947 MB / 455.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.3168, allocations: 4 kB / 455.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.3179, allocations: 413.5 kB / 455.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006235/0.3185, allocations: 43.02 kB / 455.5 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002171/0.3207, allocations: 0.7473 MB / 456.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.3209, allocations: 171.8 kB / 456.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002059/0.3211, allocations: 47.33 kB / 456.5 MB, free: 14 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3211, allocations: 0 / 456.5 MB, free: 14 MB / 366.1 MB Notification: Performance of Templates: time 0.01444/0.3356, allocations: 6.039 MB / 462.5 MB, free: 7.961 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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: 8.225562860257924]