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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001816/0.001816, allocations: 73.95 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002117/0.002117, allocations: 152.2 kB / 24.49 MB, free: 3.723 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 173.4 MB / 201.1 MB, free: 12.68 MB / 190.1 MB " [Timeout remaining time 178] 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=500,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=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 46.73 kB / 319.4 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08478/0.08633, allocations: 52.16 MB / 371.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003912/0.09024, allocations: 2.564 MB / 374.1 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.09213, allocations: 1.038 MB / 375.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.09226, allocations: 11.94 kB / 375.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002327/0.09249, allocations: 71.36 kB / 375.2 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005322/0.09303, allocations: 190.8 kB / 375.4 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004568/0.09348, allocations: 267.4 kB / 375.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006698/0.09415, allocations: 0.6392 MB / 376.3 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.09433, allocations: 80.88 kB / 376.4 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000388/0.09472, allocations: 303.1 kB / 376.7 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004542/0.09518, allocations: 322.9 kB / 377 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.119e-05/0.09527, allocations: 52 kB / 377.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002427/0.09551, allocations: 139.9 kB / 377.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001885/0.0957, allocations: 147.5 kB / 377.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002513/0.09595, allocations: 215.1 kB / 377.6 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007606/0.09671, allocations: 0.6538 MB / 378.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.09671, allocations: 0 / 378.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.09671, allocations: 0 / 378.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.09672, allocations: 0 / 378.2 MB, free: 0.6641 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001619/0.09834, allocations: 0.7389 MB / 379 MB, free: 15.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.09837, allocations: 12.03 kB / 379 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003405/0.09872, allocations: 64.64 kB / 379 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000581/0.0993, allocations: 309.3 kB / 379.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00017/0.09947, allocations: 144.4 kB / 379.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.85e-05/0.09955, allocations: 48.31 kB / 379.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.1007, allocations: 0.5818 MB / 380.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.1007, allocations: 7.938 kB / 380.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.836e-05/0.1007, allocations: 16 kB / 380.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.1008, allocations: 12 kB / 380.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.1021, allocations: 0.6284 MB / 380.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002379/0.1045, allocations: 1.056 MB / 381.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.1057, allocations: 0.5016 MB / 382.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006349/0.1063, allocations: 286.4 kB / 382.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.327e-05/0.1063, allocations: 16.38 kB / 382.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/0.1064, allocations: 54.98 kB / 382.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=61): time 2.134e-06/0.1064, allocations: 4 kB / 382.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=69): time 0.008958/0.1153, allocations: 2.556 MB / 385.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/0.1154, allocations: 85.77 kB / 385.3 MB, free: 9.336 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004094/0.1158, allocations: 305.8 kB / 385.6 MB, free: 9.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.318e-05/0.1159, allocations: 45.64 kB / 385.7 MB, free: 8.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.116, allocations: 165.6 kB / 385.8 MB, free: 8.812 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002143/0.1163, allocations: 246 kB / 386.1 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002272/0.1165, allocations: 118.3 kB / 386.2 MB, free: 8.449 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.1167, allocations: 346.8 kB / 386.5 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006468/0.1173, allocations: 289.2 kB / 386.8 MB, free: 7.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007221/0.118, allocations: 380.2 kB / 387.2 MB, free: 7.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001166/0.1192, allocations: 0.5269 MB / 387.7 MB, free: 6.895 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.1192, allocations: 0 / 387.7 MB, free: 6.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001845/0.121, allocations: 0.8618 MB / 388.6 MB, free: 6.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.1211, allocations: 8 kB / 388.6 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.1211, allocations: 0 / 388.6 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/0.1222, allocations: 475.2 kB / 389 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003932/0.1226, allocations: 83.89 kB / 389.1 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/0.1241, allocations: 1.095 MB / 390.2 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004657/0.1245, allocations: 51.94 kB / 390.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.566e-05/0.1246, allocations: 27.98 kB / 390.3 MB, free: 4.27 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0003006/0.1249, allocations: 181.8 kB / 390.5 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.125, allocations: 43.75 kB / 390.5 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000148/0.1252, allocations: 63.73 kB / 390.6 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1252, allocations: 4 kB / 390.6 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.1252, allocations: 4 kB / 390.6 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.1252, allocations: 0 / 390.6 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003406/0.1286, allocations: 1.575 MB / 392.1 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.1286, allocations: 8.094 kB / 392.2 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003966/0.129, allocations: 79.88 kB / 392.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001008/0.13, allocations: 440.5 kB / 392.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.158e-05/0.1301, allocations: 19.98 kB / 392.7 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001344/0.1314, allocations: 1.036 MB / 393.7 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.1314, allocations: 0 / 393.7 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002711/0.1341, allocations: 1.294 MB / 395 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002582/0.1344, allocations: 107.6 kB / 395.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.345e-05/0.1344, allocations: 16 kB / 395.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004574/0.1349, allocations: 56 kB / 395.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.1351, allocations: 96.41 kB / 395.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-05/0.1352, allocations: 19.98 kB / 395.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002964/0.1355, allocations: 229.1 kB / 395.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1355, allocations: 0 / 395.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005027/0.136, allocations: 147.9 kB / 395.7 MB, free: 14.77 MB / 366.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.0002877/0.1363, allocations: 143.6 kB / 395.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001599/0.1378, allocations: 0.678 MB / 396.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1379, allocations: 0 / 396.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008587/0.1387, allocations: 360.6 kB / 396.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.1392, allocations: 56.53 kB / 396.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00264/0.1418, allocations: 1.111 MB / 398 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.142, allocations: 217.9 kB / 398.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002047/0.1423, allocations: 59.27 kB / 398.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.1424, allocations: 44.47 kB / 398.3 MB, free: 12.06 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1424, allocations: 0 / 398.3 MB, free: 12.06 MB / 366.1 MB Notification: Performance of Templates: time 0.01547/0.1579, allocations: 8.43 MB / 406.8 MB, free: 3.695 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (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 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" 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.startBackward,bearingFriction.startForward,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,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.ratio,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time [Calling sys.exit(0), Time elapsed: 4.564771976904012]