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.001351/0.001351, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001423/0.001423, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2802, allocations: 50.54 MB / 409.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004318/0.2845, allocations: 2.863 MB / 412.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.2869, allocations: 1.267 MB / 414 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002226/0.2872, allocations: 4 kB / 414 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003449/0.2876, allocations: 91.27 kB / 414.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00063/0.2882, allocations: 221.5 kB / 414.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006261/0.2889, allocations: 247.6 kB / 414.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007423/0.2896, allocations: 0.7133 MB / 415.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002505/0.2899, allocations: 119.4 kB / 415.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004688/0.2904, allocations: 327 kB / 415.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005036/0.2909, allocations: 390.8 kB / 416.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001048/0.291, allocations: 60 kB / 416.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003185/0.2913, allocations: 147.9 kB / 416.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001998/0.2915, allocations: 163.5 kB / 416.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002354/0.2918, allocations: 270.7 kB / 416.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008305/0.2926, allocations: 0.7099 MB / 417.5 MB, free: 9.977 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.2926, allocations: 0 / 417.5 MB, free: 9.977 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.2926, allocations: 0 / 417.5 MB, free: 9.977 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.2927, allocations: 0 / 417.5 MB, free: 9.977 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001957/0.2946, allocations: 0.8537 MB / 418.3 MB, free: 9.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.2947, allocations: 12.03 kB / 418.3 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004572/0.2951, allocations: 72.34 kB / 418.4 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000599/0.2958, allocations: 370.4 kB / 418.8 MB, free: 8.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.2959, allocations: 101 kB / 418.9 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.452e-05/0.296, allocations: 36.38 kB / 418.9 MB, free: 8.445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.2971, allocations: 0.5644 MB / 419.5 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.2971, allocations: 7.844 kB / 419.5 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.592e-05/0.2972, allocations: 20 kB / 419.5 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.2972, allocations: 8 kB / 419.5 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001271/0.2985, allocations: 0.6089 MB / 420.1 MB, free: 7.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002421/0.3009, allocations: 1.306 MB / 421.4 MB, free: 5.859 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001139/0.3021, allocations: 0.517 MB / 421.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006153/0.3027, allocations: 306.5 kB / 422.2 MB, free: 5.031 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.229e-05/0.3028, allocations: 28.47 kB / 422.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.3028, allocations: 39.12 kB / 422.3 MB, free: 4.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 2.444e-06/0.3028, allocations: 4 kB / 422.3 MB, free: 4.953 MB / 334.1 MB Notification: Performance of matching and sorting (n=70): time 0.007082/0.3099, allocations: 2.73 MB / 425 MB, free: 2.098 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.866e-05/0.31, allocations: 89.67 kB / 425.1 MB, free: 1.992 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004614/0.3105, allocations: 355.2 kB / 425.5 MB, free: 1.637 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.701e-05/0.3106, allocations: 45.69 kB / 425.5 MB, free: 1.586 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.3107, allocations: 165.6 kB / 425.7 MB, free: 1.418 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001932/0.3109, allocations: 236.6 kB / 425.9 MB, free: 1.184 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002228/0.3111, allocations: 118.3 kB / 426 MB, free: 1.062 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3113, allocations: 354.8 kB / 426.4 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005922/0.3119, allocations: 269.2 kB / 426.6 MB, free: 452 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006521/0.3125, allocations: 330.5 kB / 426.9 MB, free: 112 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.3136, allocations: 499.2 kB / 427.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3136, allocations: 0 / 427.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001791/0.3154, allocations: 0.8333 MB / 428.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3155, allocations: 10.95 kB / 428.3 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.3155, allocations: 0 / 428.3 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001131/0.3166, allocations: 437.3 kB / 428.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000381/0.317, allocations: 95.92 kB / 428.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001338/0.3184, allocations: 1.017 MB / 429.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005067/0.3189, allocations: 63.92 kB / 429.9 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.004e-05/0.319, allocations: 23.98 kB / 429.9 MB, free: 13.11 MB / 350.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.0002806/0.3192, allocations: 193.6 kB / 430.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.3194, allocations: 51.5 kB / 430.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001549/0.3195, allocations: 63.86 kB / 430.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.3195, allocations: 4 kB / 430.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.3196, allocations: 0 / 430.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.3196, allocations: 7.984 kB / 430.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00314/0.3227, allocations: 1.698 MB / 431.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.3227, allocations: 0 / 431.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003709/0.3231, allocations: 83.88 kB / 432 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009141/0.324, allocations: 424.4 kB / 432.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.087e-05/0.3241, allocations: 23.97 kB / 432.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001246/0.3254, allocations: 0.9783 MB / 433.4 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3254, allocations: 0 / 433.4 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00243/0.3278, allocations: 1.228 MB / 434.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002487/0.3281, allocations: 188.6 kB / 434.8 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.3282, allocations: 20 kB / 434.8 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000462/0.3286, allocations: 51.94 kB / 434.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.3289, allocations: 88.41 kB / 435 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.048e-05/0.3289, allocations: 27.98 kB / 435 MB, free: 7.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003204/0.3292, allocations: 257.9 kB / 435.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3292, allocations: 0 / 435.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005245/0.3298, allocations: 148 kB / 435.4 MB, free: 7.453 MB / 350.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.0009398/0.3307, allocations: 379.6 kB / 435.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.3324, allocations: 0.6806 MB / 436.5 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3324, allocations: 0 / 436.5 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008004/0.3332, allocations: 376.1 kB / 436.8 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005646/0.3338, allocations: 68.47 kB / 436.9 MB, free: 6.074 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.3365, allocations: 1.171 MB / 438.1 MB, free: 4.871 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000438/0.337, allocations: 0.8289 MB / 438.9 MB, free: 4.016 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.3372, allocations: 59.38 kB / 438.9 MB, free: 3.957 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3372, allocations: 0 / 438.9 MB, free: 3.957 MB / 350.1 MB Notification: Performance of Templates: time 0.01136/0.3486, allocations: 8.072 MB / 447 MB, free: 11.89 MB / 366.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