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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00183/0.00183, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00244/0.00244, allocations: 217.7 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.551/1.551, allocations: 230.5 MB / 258.1 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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=500,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=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 63.89 kB / 379 MB, free: 2.531 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.3178, allocations: 53.4 MB / 432.4 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004858/0.3226, allocations: 2.894 MB / 435.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002454/0.3251, allocations: 1.287 MB / 436.6 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001561/0.3252, allocations: 11.94 kB / 436.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003549/0.3256, allocations: 87.27 kB / 436.7 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005466/0.3261, allocations: 218.3 kB / 436.9 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005284/0.3267, allocations: 259.5 kB / 437.2 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008221/0.3275, allocations: 0.7133 MB / 437.9 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002143/0.3277, allocations: 91.91 kB / 438 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004792/0.3282, allocations: 331.1 kB / 438.3 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005303/0.3287, allocations: 390.8 kB / 438.7 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.3288, allocations: 56 kB / 438.7 MB, free: 452 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002884/0.3291, allocations: 151.9 kB / 438.9 MB, free: 300 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002105/0.3293, allocations: 163.6 kB / 439 MB, free: 136 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002868/0.3296, allocations: 270.7 kB / 439.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008771/0.3305, allocations: 0.7329 MB / 440 MB, free: 15.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3305, allocations: 0 / 440 MB, free: 15.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3305, allocations: 0 / 440 MB, free: 15.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.3305, allocations: 0 / 440 MB, free: 15.14 MB / 350.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.001792/0.3323, allocations: 0.7816 MB / 440.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.3323, allocations: 8.031 kB / 440.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004424/0.3328, allocations: 76.61 kB / 440.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000718/0.3335, allocations: 312.7 kB / 441.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000202/0.3337, allocations: 156.3 kB / 441.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.3338, allocations: 48.33 kB / 441.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.3349, allocations: 0.5528 MB / 442 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.207e-05/0.3349, allocations: 4 kB / 442 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.787e-05/0.335, allocations: 19.98 kB / 442 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.335, allocations: 8 kB / 442 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.3363, allocations: 0.6128 MB / 442.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002589/0.3389, allocations: 1.243 MB / 443.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.3401, allocations: 498 kB / 444.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006164/0.3407, allocations: 278.2 kB / 444.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.866e-05/0.3408, allocations: 16.42 kB / 444.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.107e-05/0.3408, allocations: 39.06 kB / 444.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 1.593e-06/0.3408, allocations: 0 / 444.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007361/0.3482, allocations: 2.442 MB / 447.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.073e-05/0.3483, allocations: 85.77 kB / 447.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000561/0.3488, allocations: 348.5 kB / 447.5 MB, free: 7.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.944e-05/0.3489, allocations: 53.62 kB / 447.6 MB, free: 7.352 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.3491, allocations: 169.7 kB / 447.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002496/0.3493, allocations: 246 kB / 448 MB, free: 6.938 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002552/0.3496, allocations: 130.2 kB / 448.1 MB, free: 6.805 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.3498, allocations: 346.8 kB / 448.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000638/0.3505, allocations: 265.2 kB / 448.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007112/0.3512, allocations: 334.5 kB / 449 MB, free: 5.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00111/0.3523, allocations: 495.5 kB / 449.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3523, allocations: 0 / 449.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001879/0.3542, allocations: 0.8181 MB / 450.3 MB, free: 4.539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.3542, allocations: 7.984 kB / 450.3 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.3542, allocations: 4.062 kB / 450.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/0.3554, allocations: 448.3 kB / 450.8 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003907/0.3558, allocations: 87.86 kB / 450.9 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.3572, allocations: 1.022 MB / 451.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004869/0.3577, allocations: 55.92 kB / 451.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.724e-05/0.3577, allocations: 32.05 kB / 452 MB, free: 2.867 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002792/0.358, allocations: 177.7 kB / 452.2 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.3581, allocations: 47.72 kB / 452.2 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001704/0.3583, allocations: 71.84 kB / 452.3 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.355e-06/0.3583, allocations: 8 kB / 452.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.3583, allocations: 0 / 452.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.3583, allocations: 7.922 kB / 452.3 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003418/0.3617, allocations: 1.653 MB / 453.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.3617, allocations: 0 / 453.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003853/0.3621, allocations: 83.91 kB / 454 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00103/0.3631, allocations: 416.5 kB / 454.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.384e-05/0.3632, allocations: 19.98 kB / 454.4 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001355/0.3646, allocations: 0.9866 MB / 455.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.3646, allocations: 4.031 kB / 455.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002626/0.3672, allocations: 1.208 MB / 456.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002876/0.3675, allocations: 119.6 kB / 456.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.3676, allocations: 16 kB / 456.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004462/0.368, allocations: 51.94 kB / 456.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002228/0.3682, allocations: 96.53 kB / 456.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.444e-05/0.3683, allocations: 23.98 kB / 456.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003594/0.3687, allocations: 259 kB / 457.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3687, allocations: 0 / 457.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005538/0.3692, allocations: 144 kB / 457.3 MB, free: 13.38 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001457/0.3707, allocations: 408.7 kB / 457.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.3722, allocations: 0.6312 MB / 458.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3722, allocations: 4.062 kB / 458.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008316/0.3731, allocations: 344.6 kB / 458.7 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005271/0.3736, allocations: 64.34 kB / 458.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002746/0.3763, allocations: 1.186 MB / 460 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004604/0.3768, allocations: 0.8252 MB / 460.8 MB, free: 9.992 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001998/0.377, allocations: 55.39 kB / 460.8 MB, free: 9.938 MB / 366.1 MB Notification: Performance of SimCode: time 8.22e-07/0.377, allocations: 4 kB / 460.8 MB, free: 9.934 MB / 366.1 MB Notification: Performance of Templates: time 0.01284/0.3898, allocations: 8.116 MB / 469 MB, free: 1.82 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time [Calling sys.exit(0), Time elapsed: 8.765450891805813]