Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001225/0.001225, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001538/0.001538, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 247.1 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 59.81 kB / 307.1 MB, free: 0.9414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09691/0.09836, allocations: 50.55 MB / 357.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004607/0.103, allocations: 2.887 MB / 360.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002557/0.1056, allocations: 1.275 MB / 361.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003599/0.106, allocations: 4 kB / 361.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004682/0.1065, allocations: 75.53 kB / 361.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008504/0.1074, allocations: 186.5 kB / 362.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000682/0.1081, allocations: 223.7 kB / 362.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008926/0.109, allocations: 0.7017 MB / 363 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002791/0.1093, allocations: 131.4 kB / 363.1 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006179/0.1099, allocations: 334.9 kB / 363.4 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005781/0.1105, allocations: 374.8 kB / 363.8 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001531/0.1107, allocations: 56 kB / 363.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003645/0.1111, allocations: 147.9 kB / 364 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.1113, allocations: 167.6 kB / 364.2 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002872/0.1116, allocations: 278.7 kB / 364.4 MB, free: 7.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000615/0.1122, allocations: 0.5342 MB / 365 MB, free: 7.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1122, allocations: 0 / 365 MB, free: 7.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1122, allocations: 7.938 kB / 365 MB, free: 7.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.1122, allocations: 0 / 365 MB, free: 7.012 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001693/0.1139, allocations: 0.8344 MB / 365.8 MB, free: 6.125 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.114, allocations: 12.03 kB / 365.8 MB, free: 6.113 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004583/0.1145, allocations: 76.25 kB / 365.9 MB, free: 6.039 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005025/0.115, allocations: 366.4 kB / 366.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.1151, allocations: 100.9 kB / 366.4 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.269e-05/0.1152, allocations: 48.28 kB / 366.4 MB, free: 5.488 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.1163, allocations: 0.5528 MB / 367 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.1164, allocations: 7.984 kB / 367 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.749e-05/0.1164, allocations: 12 kB / 367 MB, free: 4.906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.1164, allocations: 12 kB / 367 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001339/0.1178, allocations: 0.6089 MB / 367.6 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002479/0.1203, allocations: 1.306 MB / 368.9 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/0.1215, allocations: 0.5133 MB / 369.4 MB, free: 2.395 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006163/0.1221, allocations: 310.4 kB / 369.7 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.925e-05/0.1222, allocations: 16.48 kB / 369.7 MB, free: 2.074 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.372e-05/0.1222, allocations: 43.11 kB / 369.8 MB, free: 2.023 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.474e-06/0.1222, allocations: 0 / 369.8 MB, free: 2.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.1816/0.3038, allocations: 2.731 MB / 372.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.3039, allocations: 85.53 kB / 372.6 MB, free: 20.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005141/0.3044, allocations: 350 kB / 372.9 MB, free: 19.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.31e-05/0.3045, allocations: 41.69 kB / 373 MB, free: 19.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.3046, allocations: 171 kB / 373.1 MB, free: 19.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000175/0.3048, allocations: 230.1 kB / 373.4 MB, free: 19.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000253/0.3051, allocations: 126.4 kB / 373.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.547e-05/0.3051, allocations: 347.9 kB / 373.8 MB, free: 19.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006187/0.3058, allocations: 269.9 kB / 374.1 MB, free: 19.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006747/0.3065, allocations: 337.7 kB / 374.4 MB, free: 19.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.3076, allocations: 0.4917 MB / 374.9 MB, free: 18.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3076, allocations: 0 / 374.9 MB, free: 18.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001928/0.3095, allocations: 0.8285 MB / 375.8 MB, free: 18.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.3096, allocations: 11.75 kB / 375.8 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3096, allocations: 3 kB / 375.8 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001177/0.3108, allocations: 444.9 kB / 376.2 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003791/0.3111, allocations: 83.02 kB / 376.3 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.3123, allocations: 1.025 MB / 377.3 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005225/0.3129, allocations: 57.78 kB / 377.4 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.488e-05/0.3129, allocations: 30.33 kB / 377.4 MB, free: 17.72 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002596/0.3132, allocations: 184.9 kB / 377.6 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.3133, allocations: 49.34 kB / 377.6 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001498/0.3135, allocations: 71.5 kB / 377.7 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.3135, allocations: 7.719 kB / 377.7 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.3135, allocations: 1.75 kB / 377.7 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.3135, allocations: 3.938 kB / 377.7 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00312/0.3166, allocations: 1.699 MB / 379.4 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.3167, allocations: 1.219 kB / 379.4 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003891/0.3171, allocations: 90.39 kB / 379.5 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009768/0.318, allocations: 412 kB / 379.9 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.949e-05/0.3181, allocations: 20.78 kB / 379.9 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.3192, allocations: 0.9787 MB / 380.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3192, allocations: 5.141 kB / 380.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002395/0.3216, allocations: 1.229 MB / 382.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002579/0.3218, allocations: 189.7 kB / 382.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.322, allocations: 22.77 kB / 382.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004612/0.3224, allocations: 59.14 kB / 382.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002428/0.3227, allocations: 88.14 kB / 382.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.234e-05/0.3228, allocations: 25.73 kB / 382.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003496/0.3231, allocations: 255.3 kB / 382.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3231, allocations: 0 / 382.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006069/0.3237, allocations: 144.2 kB / 382.9 MB, free: 14.86 MB / 302.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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008999/0.3246, allocations: 395.5 kB / 383.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.3265, allocations: 0.7158 MB / 384 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3265, allocations: 0 / 384 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008617/0.3274, allocations: 376.3 kB / 384.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005616/0.328, allocations: 62.44 kB / 384.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002548/0.3305, allocations: 1.343 MB / 385.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.3308, allocations: 0.8225 MB / 386.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002134/0.3311, allocations: 59.41 kB / 386.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3311, allocations: 1.125 kB / 386.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01098/0.3421, allocations: 8.05 MB / 394.7 MB, free: 9.586 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time