Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001659/0.001659, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002025/0.002025, allocations: 211.5 kB / 24.48 MB, free: 3.938 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.531/1.531, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_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_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 43.94 kB / 378.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2711, allocations: 53.37 MB / 432.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004042/0.2752, allocations: 2.416 MB / 434.7 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002044/0.2772, allocations: 1.08 MB / 435.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.2773, allocations: 7.938 kB / 435.8 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003178/0.2777, allocations: 71.41 kB / 435.9 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005165/0.2782, allocations: 175.1 kB / 436.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000433/0.2786, allocations: 187.6 kB / 436.2 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005681/0.2792, allocations: 0.5141 MB / 436.8 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.2793, allocations: 60.78 kB / 436.8 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003535/0.2797, allocations: 235.4 kB / 437 MB, free: 2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003478/0.28, allocations: 259.1 kB / 437.3 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.884e-05/0.2801, allocations: 40 kB / 437.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002679/0.2804, allocations: 132 kB / 437.5 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001531/0.2805, allocations: 123.6 kB / 437.6 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.2807, allocations: 175.3 kB / 437.8 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006372/0.2814, allocations: 0.544 MB / 438.3 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2814, allocations: 3.938 kB / 438.3 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2814, allocations: 0 / 438.3 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.2814, allocations: 4 kB / 438.3 MB, free: 0.7344 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.001305/0.2827, allocations: 0.6375 MB / 439 MB, free: 68 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.2827, allocations: 11.97 kB / 439 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004109/0.2831, allocations: 64.72 kB / 439 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005346/0.2837, allocations: 255.1 kB / 439.3 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/0.2838, allocations: 152 kB / 439.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.039e-05/0.2839, allocations: 36.31 kB / 439.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008441/0.2848, allocations: 450.8 kB / 439.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.2848, allocations: 3.984 kB / 439.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.005e-05/0.2848, allocations: 12 kB / 439.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.2848, allocations: 4 kB / 439.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.2858, allocations: 462.3 kB / 440.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.2875, allocations: 0.7961 MB / 441.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008616/0.2884, allocations: 376.9 kB / 441.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004756/0.2889, allocations: 206.1 kB / 441.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.817e-05/0.2889, allocations: 8.438 kB / 441.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.2889, allocations: 39 kB / 441.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.934e-06/0.2889, allocations: 0 / 441.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005388/0.2943, allocations: 1.91 MB / 443.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/0.2944, allocations: 81.61 kB / 443.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003549/0.2948, allocations: 247.8 kB / 444 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.903e-05/0.2948, allocations: 41.64 kB / 444.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.2949, allocations: 141.1 kB / 444.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.2951, allocations: 202.3 kB / 444.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/0.2953, allocations: 94.16 kB / 444.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.2954, allocations: 338.8 kB / 444.8 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004615/0.2959, allocations: 188.9 kB / 445 MB, free: 9.793 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005115/0.2964, allocations: 269.7 kB / 445.3 MB, free: 9.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008627/0.2973, allocations: 383.4 kB / 445.6 MB, free: 9.141 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.2973, allocations: 0 / 445.6 MB, free: 9.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001313/0.2986, allocations: 0.6004 MB / 446.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.2986, allocations: 7.984 kB / 446.2 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.2986, allocations: 0 / 446.2 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008366/0.2994, allocations: 306.5 kB / 446.5 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003216/0.2998, allocations: 71.88 kB / 446.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00417/0.3039, allocations: 2.759 MB / 449.4 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003133/0.3042, allocations: 32.03 kB / 449.4 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.911e-05/0.3043, allocations: 23.94 kB / 449.4 MB, free: 5.227 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.0002242/0.3045, allocations: 161.8 kB / 449.6 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.388e-05/0.3046, allocations: 35.7 kB / 449.6 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001156/0.3047, allocations: 55.3 kB / 449.7 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.3047, allocations: 4 kB / 449.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-06/0.3047, allocations: 0 / 449.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3047, allocations: 3.984 kB / 449.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002343/0.3071, allocations: 1.121 MB / 450.8 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.3071, allocations: 0 / 450.8 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003355/0.3074, allocations: 75.88 kB / 450.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007491/0.3082, allocations: 276.7 kB / 451.1 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.414e-05/0.3082, allocations: 19.98 kB / 451.2 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003977/0.3122, allocations: 2.692 MB / 453.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.3122, allocations: 0 / 453.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.3141, allocations: 0.9408 MB / 454.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002005/0.3143, allocations: 87.88 kB / 454.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.582e-05/0.3144, allocations: 12 kB / 454.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003026/0.3147, allocations: 27.91 kB / 454.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/0.3149, allocations: 76.3 kB / 455 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-05/0.3149, allocations: 27.86 kB / 455 MB, free: 15.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002492/0.3152, allocations: 185.5 kB / 455.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3152, allocations: 0 / 455.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006553/0.3158, allocations: 151.9 kB / 455.4 MB, free: 15.12 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.001456/0.3173, allocations: 413.5 kB / 455.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001516/0.3188, allocations: 0.6635 MB / 456.4 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3188, allocations: 0 / 456.4 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008759/0.3197, allocations: 456.2 kB / 456.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004942/0.3202, allocations: 54.5 kB / 456.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.322, allocations: 0.8509 MB / 457.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000233/0.3222, allocations: 190.8 kB / 458 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001783/0.3224, allocations: 47.34 kB / 458 MB, free: 12.54 MB / 366.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3224, allocations: 4 kB / 458 MB, free: 12.53 MB / 366.1 MB Notification: Performance of Templates: time 0.01117/0.3336, allocations: 6.781 MB / 464.8 MB, free: 5.758 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 8.067047665826976]