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.001036/0.001036, allocations: 94.17 kB / 16.3 MB, free: 5.996 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.001064/0.001064, allocations: 182.6 kB / 17.2 MB, free: 5.914 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.392/1.392, allocations: 223.2 MB / 241.1 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002909/0.0002909, allocations: 6.281 kB / 300.7 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09013/0.09043, allocations: 50.43 MB / 351.1 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002659/0.09313, allocations: 2.188 MB / 353.3 MB, free: 9.523 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001767/0.09492, allocations: 1.058 MB / 354.4 MB, free: 8.457 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001764/0.09511, allocations: 7.938 kB / 354.4 MB, free: 8.449 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001749/0.0953, allocations: 51.67 kB / 354.4 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005855/0.09589, allocations: 183.5 kB / 354.6 MB, free: 8.219 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000377/0.09628, allocations: 190.9 kB / 354.8 MB, free: 8.035 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004239/0.09672, allocations: 403.6 kB / 355.2 MB, free: 7.641 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.09689, allocations: 94.25 kB / 355.3 MB, free: 7.547 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000303/0.0972, allocations: 255.2 kB / 355.5 MB, free: 7.297 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003451/0.09755, allocations: 299 kB / 355.8 MB, free: 7.004 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.707e-05/0.09762, allocations: 28 kB / 355.9 MB, free: 6.977 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.09781, allocations: 91.94 kB / 356 MB, free: 6.887 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.09796, allocations: 119.6 kB / 356.1 MB, free: 6.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.111e-05/0.09805, allocations: 93.52 kB / 356.2 MB, free: 6.672 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004423/0.0985, allocations: 470.7 kB / 356.6 MB, free: 6.211 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.09851, allocations: 0 / 356.6 MB, free: 6.211 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09852, allocations: 0 / 356.6 MB, free: 6.211 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.09854, allocations: 0 / 356.6 MB, free: 6.211 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.001414/0.09996, allocations: 0.7291 MB / 357.3 MB, free: 5.43 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.1, allocations: 8.031 kB / 357.4 MB, free: 5.422 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003172/0.1003, allocations: 71.38 kB / 357.4 MB, free: 5.352 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004761/0.1008, allocations: 357.1 kB / 357.8 MB, free: 4.965 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001159/0.1009, allocations: 96.39 kB / 357.9 MB, free: 4.859 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8e-05/0.101, allocations: 40 kB / 357.9 MB, free: 4.82 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.1021, allocations: 0.5643 MB / 358.5 MB, free: 4.246 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.1021, allocations: 0 / 358.5 MB, free: 4.246 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.307e-05/0.1021, allocations: 16 kB / 358.5 MB, free: 4.23 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.1022, allocations: 11.95 kB / 358.5 MB, free: 4.219 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001282/0.1034, allocations: 0.6558 MB / 359.2 MB, free: 3.559 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002355/0.1058, allocations: 1.307 MB / 360.5 MB, free: 2.195 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.1069, allocations: 0.5601 MB / 361 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.158e-05/0.107, allocations: 8.562 kB / 361 MB, free: 1.613 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.107, allocations: 35.12 kB / 361.1 MB, free: 1.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 2.074e-06/0.107, allocations: 192 / 361.1 MB, free: 1.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.006647/0.1137, allocations: 2.955 MB / 364 MB, free: 14.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.1137, allocations: 81.67 kB / 364.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003924/0.1141, allocations: 334.9 kB / 364.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.182e-05/0.1142, allocations: 45.7 kB / 364.5 MB, free: 14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.1143, allocations: 153.6 kB / 364.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001811/0.1145, allocations: 236.7 kB / 364.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.852e-05/0.1146, allocations: 12 kB / 364.9 MB, free: 13.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.1147, allocations: 350.8 kB / 365.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005868/0.1153, allocations: 293.2 kB / 365.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006331/0.1159, allocations: 362.4 kB / 365.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005506/0.1165, allocations: 263.2 kB / 366.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1165, allocations: 0 / 366.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001811/0.1183, allocations: 0.9201 MB / 367 MB, free: 11.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.1184, allocations: 4 kB / 367 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.657e-06/0.1184, allocations: 0 / 367 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/0.1195, allocations: 478.6 kB / 367.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003912/0.1199, allocations: 83.89 kB / 367.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.1212, allocations: 1.087 MB / 368.7 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004923/0.1217, allocations: 83.98 kB / 368.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.773e-05/0.1218, allocations: 23.98 kB / 368.8 MB, free: 9.641 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002319/0.122, allocations: 169.7 kB / 368.9 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.731e-05/0.1221, allocations: 51.47 kB / 369 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001381/0.1222, allocations: 67.77 kB / 369.1 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.1223, allocations: 8 kB / 369.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.1223, allocations: 3.938 kB / 369.1 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.1223, allocations: 0 / 369.1 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003199/0.1255, allocations: 1.777 MB / 370.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1255, allocations: 0 / 370.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003727/0.1259, allocations: 87.86 kB / 370.9 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009448/0.1268, allocations: 448.5 kB / 371.4 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.189e-05/0.1269, allocations: 19.97 kB / 371.4 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001224/0.1281, allocations: 1.037 MB / 372.4 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1282, allocations: 8.094 kB / 372.4 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002466/0.1306, allocations: 1.315 MB / 373.7 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002575/0.1309, allocations: 188.5 kB / 373.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.606e-05/0.131, allocations: 23.95 kB / 373.9 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004468/0.1315, allocations: 71.94 kB / 374 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001941/0.1317, allocations: 96.36 kB / 374.1 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.094e-05/0.1317, allocations: 23.98 kB / 374.1 MB, free: 4.117 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000314/0.132, allocations: 245.9 kB / 374.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1321, allocations: 3.938 kB / 374.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005075/0.1326, allocations: 148 kB / 374.5 MB, free: 3.73 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002465/0.1328, allocations: 147.1 kB / 374.7 MB, free: 3.574 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.1343, allocations: 0.7159 MB / 375.4 MB, free: 2.855 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.1343, allocations: 4.062 kB / 375.4 MB, free: 2.852 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008192/0.1351, allocations: 396 kB / 375.8 MB, free: 2.465 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003539/0.1355, allocations: 40.81 kB / 375.8 MB, free: 2.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.1381, allocations: 1.361 MB / 377.2 MB, free: 1.027 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/0.1385, allocations: 0.829 MB / 378 MB, free: 180 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000231/0.1387, allocations: 63.28 kB / 378.1 MB, free: 112 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.1389, allocations: 39.41 kB / 378.1 MB, free: 72 kB / 302.1 MB Notification: Performance of SimCode: time 4.6e-07/0.1389, allocations: 0 / 378.1 MB, free: 72 kB / 302.1 MB Notification: Performance of Templates: time 0.01402/0.1529, allocations: 8.925 MB / 387 MB, free: 7.168 MB / 318.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","../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