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.001736/0.001736, allocations: 107 kB / 21.18 MB, free: 0.6484 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.00209/0.00209, allocations: 213.3 kB / 24.48 MB, free: 3.941 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 2.218/2.218, allocations: 230.6 MB / 258.3 MB, free: 7.738 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.00204/0.00204, allocations: 47.92 kB / 379 MB, free: 2.543 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3703/0.3724, allocations: 53.36 MB / 432.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.005464/0.3778, allocations: 2.416 MB / 434.7 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002992/0.3808, allocations: 1.084 MB / 435.8 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002212/0.381, allocations: 7.938 kB / 435.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003819/0.3814, allocations: 63.42 kB / 435.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000777/0.3822, allocations: 179.1 kB / 436.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007146/0.3829, allocations: 183.6 kB / 436.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008914/0.3838, allocations: 0.5179 MB / 436.8 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002533/0.384, allocations: 65.12 kB / 436.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00056/0.3846, allocations: 247.4 kB / 437.1 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005356/0.3851, allocations: 275.1 kB / 437.3 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.3852, allocations: 40 kB / 437.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004186/0.3857, allocations: 143.9 kB / 437.5 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001938/0.3859, allocations: 119.6 kB / 437.6 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002298/0.3861, allocations: 167.3 kB / 437.8 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009376/0.387, allocations: 0.5466 MB / 438.3 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.387, allocations: 3.938 kB / 438.3 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.387, allocations: 0 / 438.3 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.387, allocations: 4 kB / 438.3 MB, free: 0.6719 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.001897/0.3889, allocations: 0.6375 MB / 439 MB, free: 4 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.571e-05/0.389, allocations: 8.078 kB / 439 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00061/0.3896, allocations: 68.62 kB / 439.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008259/0.3904, allocations: 259.2 kB / 439.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002232/0.3907, allocations: 151.9 kB / 439.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.3908, allocations: 36.33 kB / 439.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/0.392, allocations: 442.7 kB / 439.9 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.3921, allocations: 4 kB / 439.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.678e-05/0.3921, allocations: 12 kB / 439.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.3921, allocations: 12 kB / 440 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.3937, allocations: 458.3 kB / 440.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002685/0.3964, allocations: 0.8 MB / 441.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.3978, allocations: 368.2 kB / 441.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006712/0.3984, allocations: 210 kB / 441.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.762e-05/0.3985, allocations: 8.438 kB / 441.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.718e-05/0.3985, allocations: 35 kB / 441.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 3.386e-06/0.3985, allocations: 3.938 kB / 441.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.008364/0.4069, allocations: 1.913 MB / 443.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.897e-05/0.407, allocations: 85.61 kB / 443.8 MB, free: 10.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000525/0.4075, allocations: 251.7 kB / 444.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.985e-05/0.4076, allocations: 37.7 kB / 444.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.4077, allocations: 145.1 kB / 444.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002399/0.408, allocations: 198.3 kB / 444.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002684/0.4082, allocations: 94.17 kB / 444.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.4084, allocations: 334.8 kB / 444.8 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007505/0.4092, allocations: 196.9 kB / 445 MB, free: 9.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008263/0.41, allocations: 265.7 kB / 445.3 MB, free: 9.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001361/0.4114, allocations: 387.3 kB / 445.7 MB, free: 9.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.4114, allocations: 4.031 kB / 445.7 MB, free: 9.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002064/0.4134, allocations: 0.5965 MB / 446.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.4135, allocations: 4 kB / 446.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.4135, allocations: 0 / 446.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/0.4148, allocations: 306.5 kB / 446.6 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005267/0.4153, allocations: 71.89 kB / 446.7 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005858/0.4211, allocations: 2.763 MB / 449.4 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005545/0.4217, allocations: 28.02 kB / 449.4 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.346e-05/0.4218, allocations: 27.91 kB / 449.5 MB, free: 5.156 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.0003178/0.4221, allocations: 157.8 kB / 449.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.4222, allocations: 43.7 kB / 449.7 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001579/0.4224, allocations: 47.3 kB / 449.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.4224, allocations: 8 kB / 449.7 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.4224, allocations: 0 / 449.7 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.4224, allocations: 3.984 kB / 449.7 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0035/0.4259, allocations: 1.118 MB / 450.8 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.4259, allocations: 4.031 kB / 450.8 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005167/0.4265, allocations: 67.88 kB / 450.9 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/0.4276, allocations: 284.6 kB / 451.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.987e-05/0.4277, allocations: 15.98 kB / 451.2 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005787/0.4335, allocations: 2.688 MB / 453.9 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.989e-06/0.4335, allocations: 8.094 kB / 453.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002936/0.4364, allocations: 0.9407 MB / 454.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003054/0.4367, allocations: 79.75 kB / 454.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.4368, allocations: 12 kB / 454.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004933/0.4373, allocations: 31.97 kB / 455 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002732/0.4376, allocations: 76.36 kB / 455 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.401e-05/0.4376, allocations: 23.86 kB / 455.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003703/0.438, allocations: 193.4 kB / 455.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.438, allocations: 0 / 455.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001081/0.4391, allocations: 155.9 kB / 455.4 MB, free: 15.05 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.001843/0.4409, allocations: 398.1 kB / 455.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002037/0.443, allocations: 0.6596 MB / 456.4 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.443, allocations: 4 kB / 456.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.4441, allocations: 460.1 kB / 456.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006439/0.4447, allocations: 46.52 kB / 456.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/0.447, allocations: 0.8259 MB / 457.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002865/0.4473, allocations: 190.8 kB / 458 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00038/0.4476, allocations: 78.84 kB / 458 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001735/0.4478, allocations: 43.41 kB / 458.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4478, allocations: 0 / 458.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of Templates: time 0.01942/0.4672, allocations: 7.936 MB / 466 MB, free: 4.543 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 -s cvode -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: 7.043728860997362]