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.001332/0.001332, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001477/0.001477, allocations: 204.5 kB / 23.73 MB, free: 4.379 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.501/1.501, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001575/0.001575, allocations: 39.94 kB / 378.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2701, allocations: 53.37 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004172/0.2743, allocations: 2.334 MB / 433.9 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002298/0.2765, allocations: 1.014 MB / 434.9 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.2767, allocations: 7.938 kB / 434.9 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003052/0.277, allocations: 63.5 kB / 435 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004684/0.2775, allocations: 155.3 kB / 435.1 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004157/0.2779, allocations: 159.7 kB / 435.3 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005489/0.2784, allocations: 474.7 kB / 435.8 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.2786, allocations: 44.91 kB / 435.8 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002511/0.2789, allocations: 211.5 kB / 436 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003873/0.2792, allocations: 255.2 kB / 436.3 MB, free: 2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.536e-05/0.2793, allocations: 36 kB / 436.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000233/0.2795, allocations: 127.9 kB / 436.4 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.2797, allocations: 103.7 kB / 436.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.2799, allocations: 159.3 kB / 436.7 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006392/0.2805, allocations: 0.4965 MB / 437.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2805, allocations: 0 / 437.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2805, allocations: 0 / 437.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.2805, allocations: 0 / 437.2 MB, free: 1.09 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.001413/0.282, allocations: 0.5945 MB / 437.8 MB, free: 476 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.282, allocations: 12.03 kB / 437.8 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003523/0.2823, allocations: 44.73 kB / 437.8 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005775/0.2829, allocations: 251.6 kB / 438.1 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/0.2831, allocations: 140 kB / 438.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.088e-05/0.2832, allocations: 28.38 kB / 438.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008076/0.284, allocations: 416.4 kB / 438.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.532e-05/0.284, allocations: 3.953 kB / 438.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.975e-05/0.2841, allocations: 12 kB / 438.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.2841, allocations: 8 kB / 438.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009026/0.285, allocations: 406.3 kB / 439.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002301/0.2873, allocations: 1.088 MB / 440.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007463/0.288, allocations: 320.1 kB / 440.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003996/0.2884, allocations: 176.7 kB / 440.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.656e-05/0.2885, allocations: 8.719 kB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/0.2885, allocations: 38.55 kB / 440.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.094e-06/0.2885, allocations: 4 kB / 440.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005126/0.2937, allocations: 1.656 MB / 442.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.535e-05/0.2937, allocations: 88.86 kB / 442.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003543/0.2941, allocations: 251.4 kB / 442.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.573e-05/0.2941, allocations: 33.7 kB / 442.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.2943, allocations: 148.8 kB / 442.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.2944, allocations: 154.7 kB / 443 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.2946, allocations: 90.06 kB / 443.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.2947, allocations: 342.8 kB / 443.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003992/0.2951, allocations: 156.8 kB / 443.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000466/0.2956, allocations: 259.5 kB / 443.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007421/0.2964, allocations: 343.2 kB / 444.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2964, allocations: 0 / 444.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001305/0.2977, allocations: 0.5397 MB / 444.7 MB, free: 9.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.2977, allocations: 8 kB / 444.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.2977, allocations: 0 / 444.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008798/0.2986, allocations: 288.7 kB / 445 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002768/0.2988, allocations: 59.89 kB / 445.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004435/0.3033, allocations: 2.717 MB / 447.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003346/0.3036, allocations: 23.98 kB / 447.8 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.211e-05/0.3037, allocations: 19.98 kB / 447.8 MB, free: 6.012 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.0002526/0.3039, allocations: 157.7 kB / 448 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.749e-05/0.304, allocations: 31.75 kB / 448 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.659e-05/0.3041, allocations: 43 kB / 448 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.3041, allocations: 4 kB / 448 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3041, allocations: 4.062 kB / 448 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.3041, allocations: 7.984 kB / 448.1 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002027/0.3062, allocations: 0.9685 MB / 449 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.3062, allocations: 0 / 449 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002519/0.3064, allocations: 47.89 kB / 449.1 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007933/0.3072, allocations: 276.7 kB / 449.3 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.084e-05/0.3072, allocations: 19.98 kB / 449.4 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004106/0.3114, allocations: 2.67 MB / 452 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3114, allocations: 3.984 kB / 452 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001644/0.313, allocations: 0.796 MB / 452.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000181/0.3132, allocations: 67.81 kB / 452.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.402e-05/0.3132, allocations: 12 kB / 452.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002855/0.3135, allocations: 28.09 kB / 452.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.3137, allocations: 63.88 kB / 453 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-05/0.3137, allocations: 23.92 kB / 453 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002439/0.314, allocations: 180.5 kB / 453.2 MB, free: 464 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.314, allocations: 3.938 kB / 453.2 MB, free: 460 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006618/0.3147, allocations: 139.9 kB / 453.3 MB, free: 320 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.001518/0.3162, allocations: 403.4 kB / 453.7 MB, free: 68 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.3176, allocations: 0.5986 MB / 454.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3176, allocations: 0 / 454.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007748/0.3184, allocations: 413.6 kB / 454.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000453/0.3189, allocations: 38.52 kB / 454.8 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/0.3204, allocations: 0.726 MB / 455.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001954/0.3206, allocations: 171.8 kB / 455.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002307/0.3208, allocations: 74.89 kB / 455.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.321, allocations: 43.41 kB / 455.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.321, allocations: 3.938 kB / 455.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of Templates: time 0.01437/0.3354, allocations: 7.34 MB / 463.1 MB, free: 6.641 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.834381060209125]