Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001764/0.001764, allocations: 110.4 kB / 21.17 MB, free: 0.7852 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.002051/0.002051, allocations: 217.4 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.552/1.552, allocations: 230.4 MB / 258.1 MB, free: 8.148 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-beta.om/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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 71.83 kB / 378.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.3485, allocations: 53.32 MB / 432 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.006537/0.3551, allocations: 2.481 MB / 434.5 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003035/0.3581, allocations: 1.069 MB / 435.6 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002426/0.3583, allocations: 8 kB / 435.6 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004026/0.3588, allocations: 67.48 kB / 435.7 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006713/0.3594, allocations: 144.5 kB / 435.8 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006338/0.3601, allocations: 159.7 kB / 436 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008361/0.3609, allocations: 478.7 kB / 436.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002496/0.3611, allocations: 43.53 kB / 436.5 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003522/0.3615, allocations: 207.5 kB / 436.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00056/0.3621, allocations: 251.2 kB / 436.9 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.686e-05/0.3621, allocations: 36 kB / 436.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003568/0.3625, allocations: 127.9 kB / 437.1 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001974/0.3627, allocations: 111.7 kB / 437.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000238/0.3629, allocations: 179.1 kB / 437.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009646/0.3639, allocations: 0.4919 MB / 437.8 MB, free: 1.535 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3639, allocations: 0 / 437.8 MB, free: 1.535 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3639, allocations: 0 / 437.8 MB, free: 1.535 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.3639, allocations: 0 / 437.8 MB, free: 1.535 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.001866/0.3658, allocations: 0.67 MB / 438.5 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.3658, allocations: 8.031 kB / 438.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004844/0.3663, allocations: 52.69 kB / 438.6 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008057/0.3671, allocations: 313.4 kB / 438.9 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/0.3673, allocations: 84.52 kB / 439 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.329e-05/0.3674, allocations: 28.38 kB / 439 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.3686, allocations: 397.3 kB / 439.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.543e-05/0.3686, allocations: 0 / 439.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.723e-05/0.3686, allocations: 12 kB / 439.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.3686, allocations: 4 kB / 439.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.37, allocations: 413.9 kB / 439.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003197/0.3732, allocations: 1.261 MB / 441.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.3743, allocations: 334.4 kB / 441.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005892/0.3749, allocations: 168.8 kB / 441.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.154e-05/0.375, allocations: 4 kB / 441.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.584e-05/0.375, allocations: 39.28 kB / 441.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.665e-06/0.375, allocations: 0 / 441.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.007575/0.3826, allocations: 1.89 MB / 443.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.681e-05/0.3827, allocations: 88.86 kB / 443.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005079/0.3832, allocations: 250.7 kB / 443.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.352e-05/0.3833, allocations: 37.7 kB / 443.9 MB, free: 11.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002068/0.3835, allocations: 137 kB / 444 MB, free: 11.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002071/0.3837, allocations: 166.6 kB / 444.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002208/0.3839, allocations: 86.06 kB / 444.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002508/0.3841, allocations: 334.8 kB / 444.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005912/0.3847, allocations: 164.8 kB / 444.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007184/0.3854, allocations: 229.8 kB / 444.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.3866, allocations: 343.2 kB / 445.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3866, allocations: 0 / 445.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001847/0.3885, allocations: 0.5357 MB / 445.8 MB, free: 9.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.3885, allocations: 4.125 kB / 445.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.3885, allocations: 8 kB / 445.8 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/0.3897, allocations: 300.6 kB / 446.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004134/0.3901, allocations: 51.89 kB / 446.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006019/0.3961, allocations: 2.898 MB / 449.1 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002993/0.3964, allocations: 23.92 kB / 449.1 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.668e-05/0.3964, allocations: 19.98 kB / 449.1 MB, free: 5.703 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.0002981/0.3967, allocations: 153.8 kB / 449.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.333e-05/0.3968, allocations: 39.8 kB / 449.3 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.287e-05/0.3969, allocations: 39 kB / 449.3 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.3969, allocations: 4 kB / 449.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.3969, allocations: 0 / 449.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.3969, allocations: 3.984 kB / 449.3 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00218/0.3991, allocations: 1.105 MB / 450.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3991, allocations: 0 / 450.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002421/0.3994, allocations: 47.89 kB / 450.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000748/0.4001, allocations: 284.8 kB / 450.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/0.4002, allocations: 15.98 kB / 450.8 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004199/0.4044, allocations: 2.854 MB / 453.6 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.4044, allocations: 64 / 453.6 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001658/0.406, allocations: 0.8082 MB / 454.5 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002097/0.4062, allocations: 144.9 kB / 454.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.558e-05/0.4063, allocations: 15.94 kB / 454.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002734/0.4066, allocations: 23.97 kB / 454.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.4067, allocations: 67.95 kB / 454.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-05/0.4068, allocations: 19.98 kB / 454.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002688/0.407, allocations: 180.2 kB / 454.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.407, allocations: 4 kB / 454.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006149/0.4076, allocations: 135.9 kB / 455 MB, free: 15.54 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.001359/0.409, allocations: 381 kB / 455.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.4104, allocations: 0.594 MB / 456 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4104, allocations: 0 / 456 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007954/0.4112, allocations: 409.7 kB / 456.4 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000441/0.4117, allocations: 46.34 kB / 456.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/0.4131, allocations: 0.7135 MB / 457.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004749/0.4136, allocations: 0.78 MB / 457.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002118/0.4138, allocations: 74.89 kB / 458 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.4139, allocations: 39.41 kB / 458.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.4139, allocations: 0 / 458.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of Templates: time 0.01629/0.4302, allocations: 7.972 MB / 466 MB, free: 4.609 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 5.023594251833856]