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.001623/0.001624, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001666/0.001666, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 68.17 kB / 307 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1027, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004645/0.1074, allocations: 2.856 MB / 360.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002349/0.1098, allocations: 1.271 MB / 361.7 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.1099, allocations: 8 kB / 361.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003157/0.1103, allocations: 91.22 kB / 361.7 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005167/0.1108, allocations: 214 kB / 362 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005148/0.1113, allocations: 259.5 kB / 362.2 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007654/0.1121, allocations: 0.6978 MB / 362.9 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003863/0.1125, allocations: 127.4 kB / 363 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005635/0.1131, allocations: 331 kB / 363.4 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006099/0.1137, allocations: 370.8 kB / 363.7 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001503/0.1139, allocations: 60 kB / 363.8 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004402/0.1143, allocations: 147.9 kB / 363.9 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000313/0.1147, allocations: 159.6 kB / 364.1 MB, free: 7.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004337/0.1151, allocations: 270.7 kB / 364.3 MB, free: 7.199 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008833/0.116, allocations: 0.713 MB / 365.1 MB, free: 6.484 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.116, allocations: 0 / 365.1 MB, free: 6.484 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1161, allocations: 0 / 365.1 MB, free: 6.484 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.1161, allocations: 0 / 365.1 MB, free: 6.484 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.001811/0.1179, allocations: 0.8383 MB / 365.9 MB, free: 5.594 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.1179, allocations: 8.031 kB / 365.9 MB, free: 5.586 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004625/0.1184, allocations: 84.23 kB / 366 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006511/0.1191, allocations: 366.4 kB / 366.3 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/0.1192, allocations: 96.95 kB / 366.4 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.1193, allocations: 48.28 kB / 366.5 MB, free: 4.957 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.1205, allocations: 0.5605 MB / 367 MB, free: 4.383 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.1206, allocations: 3.984 kB / 367 MB, free: 4.379 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.061e-05/0.1206, allocations: 16 kB / 367.1 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.1206, allocations: 8 kB / 367.1 MB, free: 4.355 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/0.1221, allocations: 0.6128 MB / 367.7 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002726/0.1248, allocations: 1.31 MB / 369 MB, free: 2.375 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.1262, allocations: 0.5187 MB / 369.5 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006892/0.1269, allocations: 309.1 kB / 369.8 MB, free: 1.547 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.677e-05/0.1269, allocations: 8.5 kB / 369.8 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.996e-05/0.127, allocations: 43.12 kB / 369.9 MB, free: 1.488 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.054e-06/0.127, allocations: 0 / 369.9 MB, free: 1.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.163/0.29, allocations: 2.739 MB / 372.6 MB, free: 19.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.2901, allocations: 86.2 kB / 372.7 MB, free: 19.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004963/0.2906, allocations: 349.6 kB / 373 MB, free: 19.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.623e-05/0.2907, allocations: 44.5 kB / 373.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.2908, allocations: 168.7 kB / 373.2 MB, free: 19.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/0.291, allocations: 233.4 kB / 373.5 MB, free: 19.49 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000239/0.2912, allocations: 130.6 kB / 373.6 MB, free: 19.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.249e-05/0.2913, allocations: 350.2 kB / 373.9 MB, free: 19.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006243/0.292, allocations: 268.2 kB / 374.2 MB, free: 19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006654/0.2926, allocations: 334.8 kB / 374.5 MB, free: 18.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.2938, allocations: 496 kB / 375 MB, free: 18.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.2938, allocations: 1.531 kB / 375 MB, free: 18.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001728/0.2955, allocations: 0.8339 MB / 375.8 MB, free: 18.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.2955, allocations: 4.125 kB / 375.8 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.2956, allocations: 1.938 kB / 375.9 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.2967, allocations: 443.1 kB / 376.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000383/0.2971, allocations: 90.72 kB / 376.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/0.2982, allocations: 1.019 MB / 377.4 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000497/0.2987, allocations: 63.47 kB / 377.5 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.86e-05/0.2988, allocations: 24.81 kB / 377.5 MB, free: 17.44 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.0002265/0.299, allocations: 180.4 kB / 377.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.2991, allocations: 48.72 kB / 377.7 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001345/0.2993, allocations: 70.14 kB / 377.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.2993, allocations: 10.03 kB / 377.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.2993, allocations: 2.125 kB / 377.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.2993, allocations: 6.031 kB / 377.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002916/0.3022, allocations: 1.7 MB / 379.5 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3022, allocations: 2.469 kB / 379.5 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003671/0.3026, allocations: 87.88 kB / 379.6 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008816/0.3035, allocations: 428.2 kB / 380 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.841e-05/0.3036, allocations: 23.06 kB / 380 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009843/0.3045, allocations: 0.9656 MB / 381 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3046, allocations: 1.219 kB / 381 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002333/0.3069, allocations: 1.232 MB / 382.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002281/0.3071, allocations: 185.7 kB / 382.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.3073, allocations: 27.84 kB / 382.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004554/0.3077, allocations: 50.66 kB / 382.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/0.3079, allocations: 88.03 kB / 382.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.289e-05/0.308, allocations: 29.73 kB / 382.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002967/0.3083, allocations: 255.9 kB / 382.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3083, allocations: 0 / 382.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005329/0.3088, allocations: 142.1 kB / 383 MB, free: 14.57 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.001281/0.3101, allocations: 395.8 kB / 383.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.3119, allocations: 0.7171 MB / 384.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.3119, allocations: 1.188 kB / 384.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009088/0.3128, allocations: 376.5 kB / 384.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005174/0.3133, allocations: 72.94 kB / 384.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002642/0.316, allocations: 1.137 MB / 385.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.3163, allocations: 0.8216 MB / 386.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002823/0.3165, allocations: 81.64 kB / 386.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.3167, allocations: 52.69 kB / 386.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of SimCode: time 5.1e-07/0.3167, allocations: 0 / 386.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of Templates: time 0.01523/0.332, allocations: 10.3 MB / 396.9 MB, free: 7.695 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/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:DriveSine.amplitude,DriveSine.continuous,DriveSine.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi_support,bearingFriction.smoothness,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.flange.phi,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_support,gear.ratio,gear.smoothness,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi