Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009907/0.0009907, allocations: 50.84 kB / 300.6 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1016, allocations: 49.44 MB / 350 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003702/0.1053, allocations: 2.719 MB / 352.8 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001807/0.1071, allocations: 1.1 MB / 353.9 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.1073, allocations: 4 kB / 353.9 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002376/0.1075, allocations: 79.34 kB / 353.9 MB, free: 492 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005159/0.1081, allocations: 192 kB / 354.1 MB, free: 300 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004029/0.1085, allocations: 243.5 kB / 354.4 MB, free: 56 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005443/0.109, allocations: 0.6391 MB / 355 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.1093, allocations: 123.4 kB / 355.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003357/0.1096, allocations: 291.2 kB / 355.4 MB, free: 15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003792/0.11, allocations: 350.8 kB / 355.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.563e-05/0.1101, allocations: 52 kB / 355.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002333/0.1103, allocations: 127.9 kB / 355.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001655/0.1105, allocations: 151.5 kB / 356.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002322/0.1107, allocations: 250.8 kB / 356.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006243/0.1114, allocations: 0.6311 MB / 357 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1114, allocations: 0 / 357 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1114, allocations: 0 / 357 MB, free: 13.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.1114, allocations: 0 / 357 MB, free: 13.46 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00156/0.113, allocations: 0.8031 MB / 357.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.113, allocations: 11.89 kB / 357.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003412/0.1134, allocations: 64.36 kB / 357.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005132/0.1139, allocations: 354.5 kB / 358.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.114, allocations: 101 kB / 358.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.782e-05/0.1141, allocations: 44.3 kB / 358.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.1152, allocations: 0.5645 MB / 358.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.1152, allocations: 3.906 kB / 358.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.282e-05/0.1153, allocations: 16 kB / 358.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.477e-06/0.1153, allocations: 8 kB / 358.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001291/0.1166, allocations: 0.6402 MB / 359.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002263/0.1189, allocations: 1.291 MB / 360.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.12, allocations: 0.5342 MB / 361.4 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006175/0.1206, allocations: 325.9 kB / 361.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.531e-05/0.1207, allocations: 20.48 kB / 361.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.1207, allocations: 39.12 kB / 361.8 MB, free: 8.469 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.194e-06/0.1207, allocations: 0 / 361.8 MB, free: 8.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=69): time 0.007102/0.1278, allocations: 2.875 MB / 364.6 MB, free: 5.469 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.956e-05/0.1279, allocations: 89.61 kB / 364.7 MB, free: 5.363 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003952/0.1283, allocations: 327 kB / 365 MB, free: 5.031 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.951e-05/0.1284, allocations: 41.7 kB / 365.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.1285, allocations: 161.6 kB / 365.2 MB, free: 4.824 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/0.1287, allocations: 232.7 kB / 365.5 MB, free: 4.594 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/0.1289, allocations: 126.2 kB / 365.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.1291, allocations: 346.8 kB / 365.9 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006015/0.1297, allocations: 289.2 kB / 366.2 MB, free: 3.836 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006811/0.1304, allocations: 354.4 kB / 366.6 MB, free: 3.477 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.1315, allocations: 0.5266 MB / 367.1 MB, free: 2.941 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.1316, allocations: 0 / 367.1 MB, free: 2.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001964/0.1335, allocations: 0.885 MB / 368 MB, free: 2.047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.1336, allocations: 11.97 kB / 368 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.1336, allocations: 0 / 368 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.1347, allocations: 467.3 kB / 368.4 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004085/0.1352, allocations: 83.88 kB / 368.5 MB, free: 1.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/0.1365, allocations: 1.075 MB / 369.6 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005216/0.137, allocations: 63.95 kB / 369.7 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.849e-05/0.1371, allocations: 23.98 kB / 369.7 MB, free: 316 kB / 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0003098/0.1374, allocations: 188.6 kB / 369.9 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.1375, allocations: 47.52 kB / 369.9 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001688/0.1377, allocations: 59.78 kB / 370 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1663/0.304, allocations: 12.84 kB / 370 MB, free: 26.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.383e-05/0.3041, allocations: 0 / 370 MB, free: 26.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.475e-05/0.3042, allocations: 3.375 kB / 370 MB, free: 26.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004107/0.3083, allocations: 1.76 MB / 371.7 MB, free: 26.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.3083, allocations: 3.656 kB / 371.7 MB, free: 26.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003707/0.3087, allocations: 78.98 kB / 371.8 MB, free: 26.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001013/0.3097, allocations: 448 kB / 372.3 MB, free: 25.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.091e-05/0.3098, allocations: 22.83 kB / 372.3 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001255/0.311, allocations: 1.043 MB / 373.3 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3111, allocations: 0 / 373.3 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002696/0.3138, allocations: 1.304 MB / 374.6 MB, free: 24.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002392/0.314, allocations: 176.5 kB / 374.8 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.704e-05/0.3141, allocations: 20.98 kB / 374.8 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004442/0.3146, allocations: 50.52 kB / 374.9 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.3148, allocations: 87.52 kB / 375 MB, free: 24.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.296e-05/0.3149, allocations: 28.56 kB / 375 MB, free: 24.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003259/0.3152, allocations: 242.5 kB / 375.2 MB, free: 24.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3152, allocations: 0 / 375.2 MB, free: 24.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005423/0.3157, allocations: 147.3 kB / 375.4 MB, free: 24.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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002833/0.316, allocations: 150.6 kB / 375.5 MB, free: 24.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.3178, allocations: 0.7471 MB / 376.3 MB, free: 24.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3178, allocations: 0 / 376.3 MB, free: 24.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008437/0.3187, allocations: 390.8 kB / 376.6 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005022/0.3192, allocations: 61.03 kB / 376.7 MB, free: 23.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.3217, allocations: 1.117 MB / 377.8 MB, free: 23.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.322, allocations: 0.8177 MB / 378.6 MB, free: 22.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002296/0.3223, allocations: 64.53 kB / 378.7 MB, free: 22.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.3224, allocations: 45.86 kB / 378.7 MB, free: 22.68 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3224, allocations: 4 kB / 378.7 MB, free: 22.68 MB / 302.1 MB Notification: Performance of Templates: time 0.01676/0.3392, allocations: 9.927 MB / 388.7 MB, free: 19.04 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi_support,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.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