Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.002188/0.002188, allocations: 105.4 kB / 19.8 MB, free: 2.516 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.002494/0.002494, allocations: 213.4 kB / 23 MB, free: 5.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 230.2 MB / 256.2 MB, free: 8.535 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 71.88 kB / 376.5 MB, free: 3.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.275, allocations: 53.31 MB / 429.8 MB, free: 7.562 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004361/0.2794, allocations: 2.571 MB / 432.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.2814, allocations: 1.166 MB / 433.5 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001299/0.2815, allocations: 4 kB / 433.5 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003319/0.2818, allocations: 63.44 kB / 433.6 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000461/0.2823, allocations: 163.9 kB / 433.7 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004136/0.2827, allocations: 183.6 kB / 433.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005682/0.2833, allocations: 0.5141 MB / 434.4 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.2835, allocations: 64.95 kB / 434.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003444/0.2838, allocations: 235.3 kB / 434.7 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003453/0.2841, allocations: 279.1 kB / 435 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.664e-05/0.2842, allocations: 48 kB / 435 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002389/0.2845, allocations: 135.9 kB / 435.2 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001505/0.2846, allocations: 119.6 kB / 435.3 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001926/0.2848, allocations: 199 kB / 435.5 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006669/0.2855, allocations: 0.5539 MB / 436 MB, free: 1.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.2855, allocations: 0 / 436 MB, free: 1.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2855, allocations: 0 / 436 MB, free: 1.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.2855, allocations: 0 / 436 MB, free: 1.266 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.001379/0.2869, allocations: 0.7127 MB / 436.8 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.2869, allocations: 12.03 kB / 436.8 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004048/0.2873, allocations: 60.67 kB / 436.8 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005722/0.2879, allocations: 323.8 kB / 437.1 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.288, allocations: 92.55 kB / 437.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.037e-05/0.2881, allocations: 36.33 kB / 437.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008453/0.2889, allocations: 425 kB / 437.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.289, allocations: 4 kB / 437.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.862e-05/0.289, allocations: 8 kB / 437.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.289, allocations: 12 kB / 437.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.29, allocations: 466.3 kB / 438.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.2918, allocations: 0.9971 MB / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008745/0.2927, allocations: 372.5 kB / 439.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004726/0.2932, allocations: 206.1 kB / 439.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.286e-05/0.2932, allocations: 12.42 kB / 439.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.2933, allocations: 35 kB / 439.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.462e-06/0.2933, allocations: 0 / 439.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005325/0.2986, allocations: 2.145 MB / 441.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.2987, allocations: 81.67 kB / 442 MB, free: 11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003544/0.299, allocations: 276.9 kB / 442.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.315e-05/0.2991, allocations: 37.7 kB / 442.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.999e-05/0.2992, allocations: 141.2 kB / 442.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000159/0.2993, allocations: 190.4 kB / 442.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.2995, allocations: 94.23 kB / 442.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.2996, allocations: 342.8 kB / 443.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000449/0.3001, allocations: 193 kB / 443.2 MB, free: 9.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004913/0.3006, allocations: 240.6 kB / 443.5 MB, free: 9.477 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008484/0.3014, allocations: 384.4 kB / 443.9 MB, free: 9.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3014, allocations: 0 / 443.9 MB, free: 9.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001275/0.3027, allocations: 0.6057 MB / 444.5 MB, free: 8.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.3027, allocations: 7.938 kB / 444.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3027, allocations: 0 / 444.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008333/0.3036, allocations: 302.5 kB / 444.8 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003158/0.3039, allocations: 67.88 kB / 444.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004171/0.308, allocations: 2.958 MB / 447.8 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000293/0.3083, allocations: 27.91 kB / 447.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.792e-05/0.3084, allocations: 19.94 kB / 447.8 MB, free: 4.965 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.0002248/0.3086, allocations: 173.2 kB / 448 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.18e-05/0.3087, allocations: 35.75 kB / 448 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.3088, allocations: 51.61 kB / 448.1 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3088, allocations: 4 kB / 448.1 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.3088, allocations: 0 / 448.1 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.3088, allocations: 3.984 kB / 448.1 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002282/0.3111, allocations: 1.282 MB / 449.4 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.3111, allocations: 0 / 449.4 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003217/0.3114, allocations: 71.88 kB / 449.4 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007198/0.3122, allocations: 280.6 kB / 449.7 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.17e-05/0.3122, allocations: 19.98 kB / 449.7 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003873/0.3161, allocations: 2.862 MB / 452.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3161, allocations: 0 / 452.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00188/0.318, allocations: 0.9428 MB / 453.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002041/0.3182, allocations: 160.9 kB / 453.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.82e-05/0.3182, allocations: 15.94 kB / 453.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003001/0.3185, allocations: 27.97 kB / 453.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000178/0.3187, allocations: 72.27 kB / 453.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.267e-05/0.3188, allocations: 19.98 kB / 453.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002544/0.319, allocations: 200.5 kB / 454 MB, free: 14.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.319, allocations: 0 / 454 MB, free: 14.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006385/0.3196, allocations: 156 kB / 454.2 MB, free: 14.37 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.001315/0.321, allocations: 367.5 kB / 454.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.3225, allocations: 0.6721 MB / 455.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3225, allocations: 0 / 455.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000859/0.3234, allocations: 459.7 kB / 455.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/0.3239, allocations: 49.66 kB / 455.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.3255, allocations: 0.8276 MB / 456.5 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/0.326, allocations: 0.7967 MB / 457.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002449/0.3263, allocations: 78.89 kB / 457.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.3264, allocations: 39.41 kB / 457.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3264, allocations: 8 kB / 457.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of Templates: time 0.01516/0.3415, allocations: 8.651 MB / 466.1 MB, free: 2.477 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.726790146902204]