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.001439/0.001439, allocations: 119.6 kB / 20.44 MB, free: 1.301 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.001565/0.001565, allocations: 214.5 kB / 23.74 MB, free: 4.527 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.477/1.477, allocations: 230.6 MB / 257.5 MB, free: 8.039 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.001571/0.001571, allocations: 55.91 kB / 378.3 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.28, allocations: 53.35 MB / 431.6 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004478/0.2845, allocations: 2.488 MB / 434.1 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002259/0.2867, allocations: 1.073 MB / 435.2 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.2869, allocations: 8 kB / 435.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003199/0.2872, allocations: 59.52 kB / 435.2 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004423/0.2876, allocations: 159.7 kB / 435.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003853/0.288, allocations: 163.7 kB / 435.5 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000565/0.2886, allocations: 478.7 kB / 436 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.2887, allocations: 47.88 kB / 436.1 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002592/0.289, allocations: 207.5 kB / 436.3 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003943/0.2894, allocations: 247.2 kB / 436.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.97e-05/0.2895, allocations: 36 kB / 436.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000261/0.2897, allocations: 135.9 kB / 436.7 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.2899, allocations: 107.7 kB / 436.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.2901, allocations: 175.2 kB / 437 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006669/0.2907, allocations: 0.4917 MB / 437.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.942e-06/0.2907, allocations: 0 / 437.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2907, allocations: 0 / 437.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.2907, allocations: 0 / 437.4 MB, free: 1.133 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.001276/0.292, allocations: 0.5984 MB / 438 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.591e-05/0.2921, allocations: 12.03 kB / 438.1 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003053/0.2924, allocations: 52.67 kB / 438.1 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000466/0.2928, allocations: 239.7 kB / 438.3 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001837/0.293, allocations: 144 kB / 438.5 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.147e-05/0.2931, allocations: 32.3 kB / 438.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007464/0.2938, allocations: 390.8 kB / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.2938, allocations: 0 / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.648e-05/0.2939, allocations: 16 kB / 438.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.2939, allocations: 4 kB / 438.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008841/0.2948, allocations: 418.2 kB / 439.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002149/0.2969, allocations: 1.208 MB / 440.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007241/0.2976, allocations: 332.1 kB / 440.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003956/0.298, allocations: 168.7 kB / 441 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.517e-05/0.2981, allocations: 4 kB / 441 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.808e-05/0.2981, allocations: 39.22 kB / 441.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.483e-06/0.2981, allocations: 0 / 441.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005012/0.3031, allocations: 1.671 MB / 442.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.401e-05/0.3032, allocations: 88.86 kB / 442.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003341/0.3035, allocations: 247.4 kB / 443.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.724e-05/0.3036, allocations: 37.7 kB / 443.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.974e-05/0.3037, allocations: 136.8 kB / 443.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.3038, allocations: 154.9 kB / 443.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.304, allocations: 86.06 kB / 443.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.3042, allocations: 338.8 kB / 443.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004111/0.3046, allocations: 168.8 kB / 444 MB, free: 10.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004831/0.3051, allocations: 225.9 kB / 444.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007637/0.3058, allocations: 335.2 kB / 444.5 MB, free: 9.746 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3058, allocations: 0 / 444.5 MB, free: 9.746 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001261/0.3071, allocations: 0.5396 MB / 445 MB, free: 9.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.3071, allocations: 8.125 kB / 445.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.3071, allocations: 4 kB / 445.1 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008716/0.308, allocations: 300.5 kB / 445.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.3082, allocations: 51.91 kB / 445.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004351/0.3126, allocations: 2.792 MB / 448.2 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002932/0.3129, allocations: 27.97 kB / 448.2 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.757e-05/0.3129, allocations: 16.06 kB / 448.2 MB, free: 5.887 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.0002078/0.3131, allocations: 158.1 kB / 448.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.667e-05/0.3132, allocations: 31.81 kB / 448.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.3133, allocations: 50.92 kB / 448.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3133, allocations: 4 kB / 448.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.3133, allocations: 0 / 448.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3133, allocations: 3.984 kB / 448.5 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002151/0.3155, allocations: 1.077 MB / 449.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3155, allocations: 4 kB / 449.6 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002384/0.3157, allocations: 39.97 kB / 449.6 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007976/0.3165, allocations: 284.6 kB / 449.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.713e-05/0.3166, allocations: 19.92 kB / 449.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004175/0.3207, allocations: 2.742 MB / 452.6 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.3207, allocations: 4.062 kB / 452.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/0.3224, allocations: 0.7884 MB / 453.4 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001744/0.3226, allocations: 79.73 kB / 453.5 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.351e-05/0.3227, allocations: 15.94 kB / 453.5 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002879/0.323, allocations: 24.03 kB / 453.6 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/0.3231, allocations: 71.81 kB / 453.6 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.688e-05/0.3232, allocations: 19.98 kB / 453.6 MB, free: 296 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002523/0.3234, allocations: 176.5 kB / 453.8 MB, free: 120 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3234, allocations: 0 / 453.8 MB, free: 120 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.00068/0.3241, allocations: 144 kB / 454 MB, free: 15.97 MB / 366.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.001491/0.3256, allocations: 375.8 kB / 454.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001397/0.327, allocations: 0.5907 MB / 454.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.327, allocations: 0 / 454.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007941/0.3278, allocations: 417.5 kB / 455.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004321/0.3282, allocations: 43.77 kB / 455.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.3298, allocations: 0.7221 MB / 456.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004725/0.3303, allocations: 0.7801 MB / 456.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002235/0.3305, allocations: 78.92 kB / 456.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.3306, allocations: 35.41 kB / 457 MB, free: 13 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3306, allocations: 0 / 457 MB, free: 13 MB / 366.1 MB Notification: Performance of Templates: time 0.0155/0.3461, allocations: 8.072 MB / 465 MB, free: 4.941 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/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: 4.836371168028563]