Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) 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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001307/0.001308, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001378/0.001378, allocations: 208 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.442/1.442, allocations: 227.7 MB / 247.7 MB, free: 10.31 MB / 206.1 MB 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.001931/0.001931, allocations: 66.11 kB / 307.9 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1117, allocations: 50.55 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004589/0.1164, allocations: 2.845 MB / 361.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002431/0.1188, allocations: 1.275 MB / 362.6 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002213/0.1191, allocations: 7.938 kB / 362.6 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003614/0.1195, allocations: 95.28 kB / 362.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006025/0.1201, allocations: 210.3 kB / 362.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005774/0.1207, allocations: 251.5 kB / 363.1 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007363/0.1214, allocations: 0.7094 MB / 363.8 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002462/0.1217, allocations: 127.4 kB / 363.9 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005008/0.1222, allocations: 327.1 kB / 364.3 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004767/0.1227, allocations: 374.8 kB / 364.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.1228, allocations: 60 kB / 364.7 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003173/0.1231, allocations: 143.9 kB / 364.8 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002167/0.1234, allocations: 167.5 kB / 365 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002779/0.1237, allocations: 270.7 kB / 365.3 MB, free: 7.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008076/0.1245, allocations: 0.7091 MB / 366 MB, free: 6.359 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1245, allocations: 0 / 366 MB, free: 6.359 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1245, allocations: 0 / 366 MB, free: 6.359 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.1245, allocations: 0 / 366 MB, free: 6.359 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.001767/0.1263, allocations: 0.8421 MB / 366.8 MB, free: 5.465 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1263, allocations: 8.031 kB / 366.8 MB, free: 5.457 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004529/0.1268, allocations: 80.25 kB / 366.9 MB, free: 5.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005679/0.1274, allocations: 362.4 kB / 367.3 MB, free: 4.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001695/0.1276, allocations: 101 kB / 367.4 MB, free: 4.879 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.813e-05/0.1277, allocations: 48.28 kB / 367.4 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/0.1288, allocations: 0.5644 MB / 368 MB, free: 4.254 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.1288, allocations: 0 / 368 MB, free: 4.254 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.088e-05/0.1289, allocations: 16 kB / 368 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.1289, allocations: 8 kB / 368 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001369/0.1303, allocations: 0.6089 MB / 368.6 MB, free: 3.621 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002669/0.133, allocations: 1.306 MB / 369.9 MB, free: 2.258 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.1342, allocations: 0.5225 MB / 370.4 MB, free: 1.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006766/0.1349, allocations: 306.4 kB / 370.7 MB, free: 1.426 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.994e-05/0.135, allocations: 12.48 kB / 370.7 MB, free: 1.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.135, allocations: 43.31 kB / 370.8 MB, free: 1.363 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.735e-06/0.135, allocations: 3.938 kB / 370.8 MB, free: 1.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.181/0.316, allocations: 2.732 MB / 373.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.3161, allocations: 85.48 kB / 373.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005087/0.3166, allocations: 351.8 kB / 373.9 MB, free: 19.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.3167, allocations: 44.09 kB / 374 MB, free: 19.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.3168, allocations: 167.6 kB / 374.1 MB, free: 19.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001654/0.317, allocations: 228.3 kB / 374.4 MB, free: 19.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000225/0.3172, allocations: 127.9 kB / 374.5 MB, free: 19.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.3173, allocations: 351 kB / 374.8 MB, free: 18.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006604/0.318, allocations: 266.8 kB / 375.1 MB, free: 18.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007392/0.3188, allocations: 335.2 kB / 375.4 MB, free: 18.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.32, allocations: 0.4888 MB / 375.9 MB, free: 18.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.32, allocations: 1.375 kB / 375.9 MB, free: 18.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001844/0.3218, allocations: 0.8376 MB / 376.8 MB, free: 18.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.3219, allocations: 4.219 kB / 376.8 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3219, allocations: 2.062 kB / 376.8 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001202/0.3231, allocations: 448.7 kB / 377.2 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003834/0.3235, allocations: 83.64 kB / 377.3 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001122/0.3246, allocations: 1.023 MB / 378.3 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005181/0.3251, allocations: 59.08 kB / 378.4 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.356e-05/0.3252, allocations: 32.59 kB / 378.4 MB, free: 17.28 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.0002428/0.3255, allocations: 182 kB / 378.6 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.3256, allocations: 49.23 kB / 378.6 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.3257, allocations: 67.72 kB / 378.7 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.3258, allocations: 7.906 kB / 378.7 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.3258, allocations: 3.203 kB / 378.7 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.3258, allocations: 3.234 kB / 378.7 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003124/0.3289, allocations: 1.707 MB / 380.4 MB, free: 16.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.3289, allocations: 0 / 380.4 MB, free: 16.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003806/0.3293, allocations: 86.3 kB / 380.5 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009406/0.3303, allocations: 417.4 kB / 380.9 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-05/0.3303, allocations: 21.64 kB / 380.9 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00109/0.3314, allocations: 0.9697 MB / 381.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.3315, allocations: 5.312 kB / 381.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002567/0.334, allocations: 1.227 MB / 383.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003087/0.3344, allocations: 185.9 kB / 383.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.3345, allocations: 27.67 kB / 383.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004792/0.335, allocations: 53.81 kB / 383.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/0.3352, allocations: 89.05 kB / 383.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.962e-05/0.3353, allocations: 25.31 kB / 383.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003698/0.3357, allocations: 255.7 kB / 383.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3357, allocations: 0.9062 kB / 383.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007612/0.3364, allocations: 147.4 kB / 383.9 MB, free: 14.41 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.001439/0.3379, allocations: 390.7 kB / 384.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001998/0.3399, allocations: 0.7165 MB / 385 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.3399, allocations: 0 / 385 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008477/0.3408, allocations: 376.4 kB / 385.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006202/0.3414, allocations: 71.16 kB / 385.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002664/0.3441, allocations: 1.172 MB / 386.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.3444, allocations: 0.826 MB / 387.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002121/0.3446, allocations: 54.64 kB / 387.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3446, allocations: 1.031 kB / 387.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of Templates: time 0.01259/0.3572, allocations: 8.057 MB / 395.5 MB, free: 9.262 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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