Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001678/0.001678, allocations: 116.8 kB / 19.18 MB, free: 3.926 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.00175/0.00175, allocations: 210.6 kB / 22.13 MB, free: 0.9805 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.488/1.488, allocations: 230.5 MB / 255.4 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 71.83 kB / 374.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1071, allocations: 53.32 MB / 428.1 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004407/0.1115, allocations: 2.467 MB / 430.5 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00207/0.1136, allocations: 1.053 MB / 431.6 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002081/0.1138, allocations: 8 kB / 431.6 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003255/0.1141, allocations: 67.48 kB / 431.6 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005256/0.1146, allocations: 146.6 kB / 431.8 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004303/0.1151, allocations: 159.7 kB / 431.9 MB, free: 456 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1973/0.3124, allocations: 470.1 kB / 432.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002206/0.3126, allocations: 47.83 kB / 432.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003938/0.313, allocations: 204.7 kB / 432.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003367/0.3133, allocations: 251.8 kB / 432.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.313e-05/0.3134, allocations: 37.72 kB / 432.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003122/0.3137, allocations: 131.3 kB / 433.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001218/0.3138, allocations: 110 kB / 433.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001344/0.3139, allocations: 176 kB / 433.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005531/0.3145, allocations: 0.4917 MB / 433.8 MB, free: 8.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3145, allocations: 1.156 kB / 433.8 MB, free: 8.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3145, allocations: 2.688 kB / 433.8 MB, free: 8.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.3145, allocations: 0 / 433.8 MB, free: 8.012 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001124/0.3156, allocations: 0.6638 MB / 434.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.3157, allocations: 10.62 kB / 434.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000325/0.316, allocations: 55.89 kB / 434.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004902/0.3165, allocations: 303.5 kB / 434.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.3166, allocations: 93.47 kB / 435 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.605e-05/0.3167, allocations: 25.81 kB / 435 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006508/0.3173, allocations: 388.4 kB / 435.4 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.3173, allocations: 3.344 kB / 435.4 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.3174, allocations: 11 kB / 435.4 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.3174, allocations: 8.438 kB / 435.4 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000813/0.3182, allocations: 416.8 kB / 435.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001974/0.3202, allocations: 1.262 MB / 437 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006622/0.3208, allocations: 319.3 kB / 437.4 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003559/0.3212, allocations: 171.4 kB / 437.5 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.349e-05/0.3212, allocations: 8.531 kB / 437.5 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.3212, allocations: 41.33 kB / 437.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.585e-06/0.3212, allocations: 0 / 437.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004584/0.3258, allocations: 1.893 MB / 439.5 MB, free: 5.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.3259, allocations: 94.66 kB / 439.6 MB, free: 5.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000289/0.3262, allocations: 246.2 kB / 439.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/0.3262, allocations: 37.47 kB / 439.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.686e-05/0.3263, allocations: 133.7 kB / 440 MB, free: 5.426 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.742e-05/0.3264, allocations: 164.1 kB / 440.1 MB, free: 5.301 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.3265, allocations: 88.11 kB / 440.2 MB, free: 5.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.874e-05/0.3266, allocations: 332.4 kB / 440.5 MB, free: 4.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000361/0.3269, allocations: 169 kB / 440.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003873/0.3273, allocations: 224.2 kB / 440.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006631/0.328, allocations: 339.6 kB / 441.3 MB, free: 4.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.328, allocations: 0 / 441.3 MB, free: 4.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001091/0.3291, allocations: 0.5406 MB / 441.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.3291, allocations: 10.42 kB / 441.8 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.3291, allocations: 1.156 kB / 441.8 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007808/0.3299, allocations: 292.3 kB / 442.1 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002858/0.3302, allocations: 58.23 kB / 442.2 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003571/0.3337, allocations: 2.898 MB / 445 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002826/0.334, allocations: 21.94 kB / 445.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.965e-05/0.3341, allocations: 20.55 kB / 445.1 MB, free: 2.117 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001824/0.3342, allocations: 159.9 kB / 445.2 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.297e-05/0.3343, allocations: 28.5 kB / 445.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.453e-05/0.3344, allocations: 43.38 kB / 445.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.3344, allocations: 4.938 kB / 445.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.3344, allocations: 0 / 445.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.3344, allocations: 3.016 kB / 445.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001917/0.3364, allocations: 1.102 MB / 446.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.3364, allocations: 0 / 446.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002361/0.3366, allocations: 52.11 kB / 446.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007214/0.3373, allocations: 285.7 kB / 446.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.816e-05/0.3374, allocations: 12.92 kB / 446.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003696/0.3411, allocations: 2.849 MB / 449.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3411, allocations: 4.906 kB / 449.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001694/0.3428, allocations: 0.7984 MB / 450.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002248/0.343, allocations: 145.2 kB / 450.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.126e-05/0.343, allocations: 15.98 kB / 450.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002797/0.3433, allocations: 21.89 kB / 450.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.3435, allocations: 71.02 kB / 450.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.828e-05/0.3436, allocations: 19.52 kB / 450.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000254/0.3438, allocations: 187.8 kB / 450.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3438, allocations: 1.25 kB / 450.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006984/0.3445, allocations: 136.4 kB / 451 MB, free: 14.39 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001394/0.3459, allocations: 379.3 kB / 451.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00142/0.3473, allocations: 0.601 MB / 452 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3473, allocations: 0 / 452 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007592/0.3481, allocations: 407.2 kB / 452.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.3485, allocations: 47.14 kB / 452.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001557/0.3501, allocations: 0.7388 MB / 453.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000486/0.3506, allocations: 0.7785 MB / 453.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.3507, allocations: 42.7 kB / 454 MB, free: 12.55 MB / 366.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3507, allocations: 0 / 454 MB, free: 12.55 MB / 366.1 MB Notification: Performance of Templates: time 0.01139/0.3621, allocations: 5.958 MB / 459.9 MB, free: 10.74 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.857166097033769]