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.001898/0.001898, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.00262/0.00262, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.502/1.502, allocations: 230.6 MB / 257.5 MB, free: 8.059 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.001685/0.001685, allocations: 43.94 kB / 378.3 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2664, allocations: 53.37 MB / 431.6 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00465/0.2711, allocations: 2.568 MB / 434.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00229/0.2734, allocations: 1.15 MB / 435.3 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001558/0.2735, allocations: 7.938 kB / 435.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000312/0.2738, allocations: 71.42 kB / 435.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004822/0.2743, allocations: 179 kB / 435.6 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000438/0.2747, allocations: 183.6 kB / 435.8 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006172/0.2754, allocations: 0.5102 MB / 436.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000184/0.2755, allocations: 65.12 kB / 436.3 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003821/0.2759, allocations: 243.3 kB / 436.6 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004244/0.2763, allocations: 283.1 kB / 436.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.024e-05/0.2764, allocations: 44 kB / 436.9 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000286/0.2767, allocations: 132 kB / 437 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.2769, allocations: 123.6 kB / 437.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002339/0.2771, allocations: 203.1 kB / 437.3 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007613/0.2779, allocations: 0.5423 MB / 437.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2779, allocations: 0 / 437.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2779, allocations: 0 / 437.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.2779, allocations: 3.938 kB / 437.9 MB, free: 0.6641 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.001499/0.2794, allocations: 0.6414 MB / 438.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.2794, allocations: 8.031 kB / 438.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004478/0.2799, allocations: 68.62 kB / 438.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005744/0.2804, allocations: 251.2 kB / 438.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000189/0.2806, allocations: 155.9 kB / 439 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.323e-05/0.2807, allocations: 36.33 kB / 439 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008701/0.2816, allocations: 413 kB / 439.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.2816, allocations: 4 kB / 439.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.141e-05/0.2817, allocations: 12 kB / 439.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.2817, allocations: 8 kB / 439.5 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001082/0.2827, allocations: 478.2 kB / 439.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.2846, allocations: 0.9359 MB / 440.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009228/0.2855, allocations: 374 kB / 441.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004848/0.286, allocations: 198.1 kB / 441.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.57e-05/0.2861, allocations: 12.44 kB / 441.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.2861, allocations: 39 kB / 441.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.693e-06/0.2861, allocations: 0 / 441.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005495/0.2916, allocations: 1.917 MB / 443.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.818e-05/0.2917, allocations: 85.61 kB / 443.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000361/0.292, allocations: 276.8 kB / 443.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.95e-05/0.2921, allocations: 37.7 kB / 443.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.2922, allocations: 137.2 kB / 443.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00017/0.2923, allocations: 190.4 kB / 444.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.2925, allocations: 90.17 kB / 444.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.2927, allocations: 350.8 kB / 444.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004603/0.2931, allocations: 188.9 kB / 444.7 MB, free: 9.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005007/0.2936, allocations: 243.9 kB / 445 MB, free: 9.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008678/0.2945, allocations: 383.4 kB / 445.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.2945, allocations: 0 / 445.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001337/0.2958, allocations: 0.5965 MB / 445.9 MB, free: 8.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.2958, allocations: 11.94 kB / 445.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.2958, allocations: 0 / 445.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008405/0.2967, allocations: 310.5 kB / 446.2 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000327/0.297, allocations: 75.88 kB / 446.3 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004246/0.3013, allocations: 2.841 MB / 449.2 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003178/0.3016, allocations: 27.97 kB / 449.2 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.924e-05/0.3016, allocations: 20 kB / 449.2 MB, free: 4.945 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.0002114/0.3018, allocations: 157.8 kB / 449.4 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.554e-05/0.3019, allocations: 43.69 kB / 449.4 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.3021, allocations: 51.61 kB / 449.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.3021, allocations: 4 kB / 449.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.3021, allocations: 4 kB / 449.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.3021, allocations: 3.984 kB / 449.5 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00247/0.3045, allocations: 1.249 MB / 450.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3045, allocations: 0 / 450.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003482/0.3049, allocations: 67.89 kB / 450.8 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007601/0.3057, allocations: 288.6 kB / 451.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.38e-05/0.3057, allocations: 15.98 kB / 451.1 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004061/0.3098, allocations: 2.747 MB / 453.8 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3098, allocations: 4.062 kB / 453.8 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001978/0.3117, allocations: 0.941 MB / 454.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000193/0.3119, allocations: 87.73 kB / 454.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.497e-05/0.312, allocations: 20 kB / 454.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000321/0.3123, allocations: 27.97 kB / 454.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/0.3125, allocations: 72.3 kB / 455 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.983e-05/0.3125, allocations: 19.98 kB / 455 MB, free: 14.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002666/0.3128, allocations: 204.5 kB / 455.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3128, allocations: 3.938 kB / 455.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006275/0.3134, allocations: 151.9 kB / 455.3 MB, free: 14.6 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.001398/0.3148, allocations: 375.2 kB / 455.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001519/0.3164, allocations: 0.6674 MB / 456.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3164, allocations: 4 kB / 456.4 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009464/0.3173, allocations: 464.1 kB / 456.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004558/0.3178, allocations: 53.89 kB / 456.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.3194, allocations: 0.8243 MB / 457.7 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004799/0.3199, allocations: 0.7968 MB / 458.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002461/0.3202, allocations: 74.91 kB / 458.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.3203, allocations: 35.41 kB / 458.6 MB, free: 11.37 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3203, allocations: 3.938 kB / 458.6 MB, free: 11.37 MB / 366.1 MB Notification: Performance of Templates: time 0.01715/0.3375, allocations: 8.796 MB / 467.4 MB, free: 2.59 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/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_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: 4.811061338055879]