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.001809/0.001809, allocations: 111.4 kB / 17.98 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002315/0.002315, allocations: 205.8 kB / 18.92 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 247.1 MB, free: 9.074 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 66.64 kB / 307.1 MB, free: 0.6953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1118, allocations: 50.53 MB / 357.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004786/0.1166, allocations: 2.897 MB / 360.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002344/0.119, allocations: 1.275 MB / 361.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001842/0.1192, allocations: 4 kB / 361.8 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000374/0.1197, allocations: 75.52 kB / 361.9 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000557/0.1202, allocations: 196 kB / 362.1 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005318/0.1208, allocations: 215.7 kB / 362.3 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007536/0.1215, allocations: 0.7095 MB / 363 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002527/0.1218, allocations: 127.4 kB / 363.2 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004938/0.1223, allocations: 327 kB / 363.5 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000499/0.1228, allocations: 386.8 kB / 363.9 MB, free: 7.938 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.802e-05/0.1229, allocations: 56 kB / 363.9 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002929/0.1232, allocations: 147.9 kB / 364.1 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002034/0.1234, allocations: 163.6 kB / 364.2 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002843/0.1237, allocations: 274.7 kB / 364.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006765/0.1244, allocations: 0.5342 MB / 365 MB, free: 6.773 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1244, allocations: 0 / 365 MB, free: 6.773 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.1244, allocations: 3.984 kB / 365 MB, free: 6.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.1244, allocations: 3.938 kB / 365 MB, free: 6.766 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.001833/0.1263, allocations: 0.8406 MB / 365.9 MB, free: 5.875 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.1263, allocations: 12.03 kB / 365.9 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005016/0.1269, allocations: 80.25 kB / 366 MB, free: 5.785 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000626/0.1275, allocations: 358.4 kB / 366.3 MB, free: 5.398 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001666/0.1277, allocations: 108.9 kB / 366.4 MB, free: 5.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.1278, allocations: 40.28 kB / 366.4 MB, free: 5.242 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001193/0.129, allocations: 0.5567 MB / 367 MB, free: 4.676 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.129, allocations: 4 kB / 367 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-05/0.1291, allocations: 20 kB / 367 MB, free: 4.652 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.1291, allocations: 12 kB / 367 MB, free: 4.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001372/0.1305, allocations: 0.605 MB / 367.6 MB, free: 4.031 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002642/0.1332, allocations: 1.31 MB / 369 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.1344, allocations: 0.5094 MB / 369.5 MB, free: 2.145 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006672/0.1351, allocations: 310.4 kB / 369.8 MB, free: 1.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.977e-05/0.1352, allocations: 16.48 kB / 369.8 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.789e-05/0.1352, allocations: 39.12 kB / 369.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.404e-06/0.1352, allocations: 0 / 369.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.1766/0.3118, allocations: 2.723 MB / 372.5 MB, free: 20.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.112e-05/0.3119, allocations: 87.94 kB / 372.6 MB, free: 20.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005733/0.3125, allocations: 355.2 kB / 373 MB, free: 20.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.618e-05/0.3126, allocations: 44.2 kB / 373 MB, free: 20.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.3127, allocations: 167.9 kB / 373.2 MB, free: 19.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.3129, allocations: 230.1 kB / 373.4 MB, free: 19.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000236/0.3131, allocations: 128.8 kB / 373.5 MB, free: 19.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.255e-05/0.3132, allocations: 349.2 kB / 373.9 MB, free: 19.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006384/0.3139, allocations: 267.7 kB / 374.1 MB, free: 19.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007635/0.3147, allocations: 334 kB / 374.5 MB, free: 19.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.3158, allocations: 499.3 kB / 375 MB, free: 18.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.696e-06/0.3158, allocations: 1.25 kB / 375 MB, free: 18.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001893/0.3177, allocations: 0.8345 MB / 375.8 MB, free: 18.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.3177, allocations: 9.219 kB / 375.8 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.3177, allocations: 0 / 375.8 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001211/0.319, allocations: 441.6 kB / 376.2 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004249/0.3194, allocations: 89.55 kB / 376.3 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001209/0.3206, allocations: 1.024 MB / 377.3 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005821/0.3212, allocations: 59.62 kB / 377.4 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-05/0.3213, allocations: 25.55 kB / 377.4 MB, free: 17.77 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.0002949/0.3216, allocations: 187.7 kB / 377.6 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.3217, allocations: 50.84 kB / 377.7 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001514/0.3219, allocations: 71.66 kB / 377.7 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.258e-06/0.3219, allocations: 6.875 kB / 377.7 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.3219, allocations: 1.438 kB / 377.7 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.3219, allocations: 3.516 kB / 377.7 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003402/0.3253, allocations: 1.695 MB / 379.4 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.3254, allocations: 5.125 kB / 379.4 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004236/0.3258, allocations: 87.25 kB / 379.5 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001107/0.3269, allocations: 413 kB / 379.9 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.01e-05/0.327, allocations: 20.28 kB / 379.9 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/0.3282, allocations: 0.9761 MB / 380.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.247e-06/0.3282, allocations: 1.234 kB / 380.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/0.3308, allocations: 1.234 MB / 382.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002979/0.3311, allocations: 190.6 kB / 382.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001174/0.3312, allocations: 28.69 kB / 382.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004741/0.3317, allocations: 49.73 kB / 382.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002518/0.332, allocations: 92.59 kB / 382.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.954e-05/0.3321, allocations: 24.67 kB / 382.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000353/0.3324, allocations: 256.6 kB / 382.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3324, allocations: 1 kB / 382.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006242/0.3331, allocations: 147 kB / 382.9 MB, free: 14.89 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.00136/0.3344, allocations: 381.8 kB / 383.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001931/0.3364, allocations: 0.7161 MB / 384 MB, free: 14.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.3364, allocations: 0 / 384 MB, free: 14.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00089/0.3373, allocations: 376.7 kB / 384.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006544/0.338, allocations: 80.5 kB / 384.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002815/0.3408, allocations: 1.34 MB / 385.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.3411, allocations: 0.8247 MB / 386.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002577/0.3414, allocations: 58.98 kB / 386.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3414, allocations: 0 / 386.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of Templates: time 0.01281/0.3542, allocations: 8.045 MB / 394.7 MB, free: 9.594 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.1.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