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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.01125/0.01125, allocations: 101.3 kB / 21.93 MB, free: 5.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002778/0.002778, allocations: 218 kB / 25.22 MB, free: 3.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.654/1.654, allocations: 207.7 MB / 236.1 MB, free: 9.957 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 55.92 kB / 348.4 MB, free: 9.406 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3238, allocations: 49.15 MB / 397.6 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003817/0.3277, allocations: 2.553 MB / 400.1 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002225/0.3299, allocations: 1.094 MB / 401.2 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001789/0.3301, allocations: 7.625 kB / 401.2 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002824/0.3303, allocations: 78.75 kB / 401.3 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006703/0.331, allocations: 190.6 kB / 401.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005767/0.3316, allocations: 255.7 kB / 401.8 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007173/0.3323, allocations: 0.6421 MB / 402.4 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002217/0.3325, allocations: 88.02 kB / 402.5 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000387/0.3329, allocations: 297.4 kB / 402.8 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004681/0.3334, allocations: 324.2 kB / 403.1 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.3335, allocations: 51.16 kB / 403.1 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00029/0.3338, allocations: 139.5 kB / 403.3 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.3339, allocations: 148.7 kB / 403.4 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002201/0.3342, allocations: 219.1 kB / 403.6 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008648/0.335, allocations: 0.6461 MB / 404.3 MB, free: 5.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.335, allocations: 0 / 404.3 MB, free: 5.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.335, allocations: 0 / 404.3 MB, free: 5.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.335, allocations: 1.125 kB / 404.3 MB, free: 5.625 MB / 318.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.001584/0.3366, allocations: 0.7316 MB / 405 MB, free: 5.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.3367, allocations: 9.312 kB / 405 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003547/0.337, allocations: 72.91 kB / 405.1 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006463/0.3377, allocations: 308.6 kB / 405.4 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.3378, allocations: 154.4 kB / 405.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.727e-05/0.3379, allocations: 43.05 kB / 405.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.339, allocations: 0.5865 MB / 406.2 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/0.3391, allocations: 1.375 kB / 406.2 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.056e-05/0.3391, allocations: 16.12 kB / 406.2 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.3391, allocations: 9.625 kB / 406.2 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.3405, allocations: 0.6284 MB / 406.8 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002336/0.3428, allocations: 1.061 MB / 407.9 MB, free: 3.754 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.3439, allocations: 0.5057 MB / 408.4 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005681/0.3445, allocations: 300.2 kB / 408.7 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.294e-05/0.3445, allocations: 7.656 kB / 408.7 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.3446, allocations: 41.19 kB / 408.7 MB, free: 3.395 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.464e-06/0.3446, allocations: 1.188 kB / 408.7 MB, free: 3.395 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.006325/0.3509, allocations: 2.56 MB / 411.3 MB, free: 2.031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/0.3509, allocations: 85.02 kB / 411.4 MB, free: 1.938 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003394/0.3513, allocations: 314.2 kB / 411.7 MB, free: 1.738 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.192e-05/0.3513, allocations: 39.77 kB / 411.7 MB, free: 1.699 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.977e-05/0.3514, allocations: 170.3 kB / 411.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.3516, allocations: 230.3 kB / 412.1 MB, free: 1.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001942/0.3518, allocations: 126.3 kB / 412.2 MB, free: 1.258 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.996e-05/0.3518, allocations: 344.2 kB / 412.6 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005928/0.3524, allocations: 290.8 kB / 412.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006178/0.353, allocations: 377.4 kB / 413.2 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.3541, allocations: 0.5237 MB / 413.8 MB, free: 336 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3541, allocations: 4.031 kB / 413.8 MB, free: 332 kB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001767/0.3558, allocations: 0.8636 MB / 414.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.3558, allocations: 4.781 kB / 414.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.3559, allocations: 1.188 kB / 414.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001227/0.3571, allocations: 480.2 kB / 415.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003884/0.3575, allocations: 92.06 kB / 415.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.3589, allocations: 1.074 MB / 416.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000501/0.3594, allocations: 61.61 kB / 416.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-05/0.3595, allocations: 23.48 kB / 416.3 MB, free: 14.84 MB / 334.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.0003399/0.3598, allocations: 177.2 kB / 416.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.3599, allocations: 42.75 kB / 416.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001644/0.3601, allocations: 67.28 kB / 416.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.3601, allocations: 7.188 kB / 416.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.3601, allocations: 0 / 416.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.3601, allocations: 3.984 kB / 416.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003388/0.3635, allocations: 1.574 MB / 418.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.3635, allocations: 1.656 kB / 418.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003568/0.3639, allocations: 80.41 kB / 418.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/0.3649, allocations: 442 kB / 418.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.185e-05/0.365, allocations: 21.23 kB / 418.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001424/0.3664, allocations: 1.048 MB / 419.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3664, allocations: 0 / 419.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002539/0.369, allocations: 1.298 MB / 421.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002671/0.3692, allocations: 95.7 kB / 421.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.041e-05/0.3693, allocations: 20 kB / 421.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000408/0.3697, allocations: 55.94 kB / 421.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.3699, allocations: 88.48 kB / 421.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.628e-05/0.37, allocations: 35.91 kB / 421.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002877/0.3703, allocations: 221.2 kB / 421.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3703, allocations: 0 / 421.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005882/0.3709, allocations: 143.9 kB / 421.7 MB, free: 10.63 MB / 334.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.0003381/0.3712, allocations: 143.1 kB / 421.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.3728, allocations: 0.6702 MB / 422.5 MB, free: 9.816 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3728, allocations: 0 / 422.5 MB, free: 9.816 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007996/0.3736, allocations: 364.6 kB / 422.9 MB, free: 9.461 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000492/0.3741, allocations: 52.41 kB / 423 MB, free: 9.41 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002698/0.3768, allocations: 1.144 MB / 424.1 MB, free: 8.227 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.3771, allocations: 221.8 kB / 424.3 MB, free: 7.992 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001526/0.3772, allocations: 47.42 kB / 424.4 MB, free: 7.945 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3772, allocations: 0 / 424.4 MB, free: 7.945 MB / 334.1 MB Notification: Performance of Templates: time 0.01111/0.3883, allocations: 7.345 MB / 431.7 MB, free: 0.5859 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] 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) [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: 9.394885479938239]