Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.0013/0.0013, allocations: 108.4 kB / 18.34 MB, free: 4.809 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.001544/0.001544, allocations: 186.9 kB / 19.28 MB, free: 3.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.343/1.343, allocations: 205.1 MB / 225.1 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 47.94 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07715/0.07831, allocations: 46.62 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003623/0.08197, allocations: 2.739 MB / 331.4 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001709/0.08369, allocations: 1.12 MB / 332.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.08383, allocations: 4 kB / 332.6 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002308/0.08408, allocations: 75.36 kB / 332.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005059/0.0846, allocations: 194.8 kB / 332.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000403/0.08501, allocations: 239.6 kB / 333.1 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005975/0.08562, allocations: 0.6508 MB / 333.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000227/0.08585, allocations: 127.4 kB / 333.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003454/0.08621, allocations: 287.1 kB / 334.1 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003989/0.08662, allocations: 350.8 kB / 334.5 MB, free: 13.96 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.456e-05/0.0867, allocations: 52 kB / 334.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002347/0.08694, allocations: 135.9 kB / 334.6 MB, free: 13.78 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000161/0.08711, allocations: 151.5 kB / 334.8 MB, free: 13.63 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002168/0.08734, allocations: 246.8 kB / 335 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005894/0.08793, allocations: 0.6503 MB / 335.7 MB, free: 12.73 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.08795, allocations: 0 / 335.7 MB, free: 12.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.08795, allocations: 0 / 335.7 MB, free: 12.73 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.08797, allocations: 0 / 335.7 MB, free: 12.73 MB / 286.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.00142/0.08939, allocations: 0.7993 MB / 336.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.08943, allocations: 15.89 kB / 336.5 MB, free: 11.87 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003288/0.08977, allocations: 60.36 kB / 336.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005989/0.09038, allocations: 366.4 kB / 336.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.09051, allocations: 92.97 kB / 337 MB, free: 11.31 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.3e-05/0.0906, allocations: 40.36 kB / 337 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009555/0.09156, allocations: 0.5645 MB / 337.6 MB, free: 10.69 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.09159, allocations: 4 kB / 337.6 MB, free: 10.69 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.739e-05/0.09164, allocations: 16 kB / 337.6 MB, free: 10.67 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.09166, allocations: 8 kB / 337.6 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.09288, allocations: 0.6363 MB / 338.3 MB, free: 10.03 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002337/0.09523, allocations: 1.287 MB / 339.6 MB, free: 8.684 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.09632, allocations: 0.5365 MB / 340.1 MB, free: 8.141 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005769/0.09691, allocations: 322.6 kB / 340.4 MB, free: 7.824 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.261e-05/0.09697, allocations: 20.38 kB / 340.4 MB, free: 7.805 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.09701, allocations: 43.12 kB / 340.5 MB, free: 7.75 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 2.825e-06/0.09702, allocations: 0 / 340.5 MB, free: 7.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.006398/0.1034, allocations: 2.867 MB / 343.3 MB, free: 4.762 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.1035, allocations: 89.61 kB / 343.4 MB, free: 4.656 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003657/0.1039, allocations: 330.9 kB / 343.8 MB, free: 4.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.629e-05/0.1039, allocations: 45.7 kB / 343.8 MB, free: 4.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.643e-05/0.104, allocations: 161.5 kB / 344 MB, free: 4.109 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.1042, allocations: 232.7 kB / 344.2 MB, free: 3.879 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001937/0.1044, allocations: 122.2 kB / 344.3 MB, free: 3.754 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1045, allocations: 354.7 kB / 344.7 MB, free: 3.398 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005586/0.1051, allocations: 293.2 kB / 344.9 MB, free: 3.113 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006119/0.1057, allocations: 350.5 kB / 345.3 MB, free: 2.758 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009813/0.1067, allocations: 0.5265 MB / 345.8 MB, free: 2.223 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1067, allocations: 0 / 345.8 MB, free: 2.223 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00161/0.1083, allocations: 0.8811 MB / 346.7 MB, free: 1.332 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.1083, allocations: 7.938 kB / 346.7 MB, free: 1.324 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.1084, allocations: 7.984 kB / 346.7 MB, free: 1.316 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.1094, allocations: 477.6 kB / 347.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003797/0.1098, allocations: 79.89 kB / 347.2 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.111, allocations: 1.079 MB / 348.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004319/0.1114, allocations: 60 kB / 348.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.76e-05/0.1115, allocations: 23.98 kB / 348.4 MB, free: 15.58 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002129/0.1117, allocations: 181.5 kB / 348.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.113e-05/0.1118, allocations: 43.53 kB / 348.6 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001443/0.112, allocations: 63.77 kB / 348.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.112, allocations: 8 kB / 348.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.112, allocations: 4 kB / 348.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.112, allocations: 3.984 kB / 348.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003047/0.115, allocations: 1.745 MB / 350.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1151, allocations: 0 / 350.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003536/0.1154, allocations: 79.88 kB / 350.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009033/0.1163, allocations: 452.5 kB / 351 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.179e-05/0.1164, allocations: 23.97 kB / 351 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00114/0.1175, allocations: 1.044 MB / 352 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1176, allocations: 0 / 352 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/0.1199, allocations: 1.302 MB / 353.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002307/0.1201, allocations: 176.6 kB / 353.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.644e-05/0.1202, allocations: 24.05 kB / 353.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00042/0.1206, allocations: 52 kB / 353.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.1208, allocations: 88.38 kB / 353.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-05/0.1209, allocations: 27.97 kB / 353.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002593/0.1211, allocations: 249.9 kB / 353.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1212, allocations: 0 / 353.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004669/0.1216, allocations: 144 kB / 354.1 MB, free: 9.754 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.000227/0.1219, allocations: 151.1 kB / 354.2 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.1233, allocations: 0.7002 MB / 354.9 MB, free: 8.898 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1233, allocations: 0 / 354.9 MB, free: 8.898 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007965/0.1241, allocations: 404 kB / 355.3 MB, free: 8.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004556/0.1246, allocations: 49.58 kB / 355.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.1269, allocations: 1.114 MB / 356.5 MB, free: 7.301 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.1273, allocations: 0.8134 MB / 357.3 MB, free: 6.465 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001892/0.1275, allocations: 63.34 kB / 357.4 MB, free: 6.402 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.1276, allocations: 51.34 kB / 357.4 MB, free: 6.352 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1276, allocations: 0 / 357.4 MB, free: 6.352 MB / 302.1 MB Notification: Performance of Templates: time 0.0145/0.1421, allocations: 9.939 MB / 367.4 MB, free: 12.41 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.freqHz,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