Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.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.001453/0.001453, allocations: 116.1 kB / 21.18 MB, free: 0.5898 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.00166/0.00166, allocations: 209.9 kB / 24.47 MB, free: 3.996 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.42/1.42, allocations: 230.5 MB / 258.1 MB, free: 8.148 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.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses") [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.001915/0.001915, allocations: 63.89 kB / 378.7 MB, free: 2.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.2386, allocations: 53.32 MB / 432 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006687/0.2453, allocations: 4.505 MB / 436.6 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003423/0.2487, allocations: 1.59 MB / 438.1 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005805/0.2493, allocations: 15.94 kB / 438.2 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005906/0.2499, allocations: 130.7 kB / 438.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001048/0.2509, allocations: 285.7 kB / 438.6 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001185/0.2521, allocations: 425.5 kB / 439 MB, free: 408 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001646/0.2538, allocations: 1.17 MB / 440.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003952/0.2542, allocations: 181.8 kB / 440.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009446/0.2551, allocations: 0.5024 MB / 440.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009317/0.256, allocations: 0.537 MB / 441.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002689/0.2563, allocations: 92 kB / 441.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004693/0.2568, allocations: 168 kB / 441.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003452/0.2571, allocations: 243.2 kB / 441.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006089/0.2577, allocations: 465.8 kB / 442.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00156/0.2593, allocations: 1.134 MB / 443.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2593, allocations: 0 / 443.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2593, allocations: 0 / 443.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.864e-05/0.2593, allocations: 0 / 443.4 MB, free: 11.91 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003954/0.2633, allocations: 1.467 MB / 444.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.2633, allocations: 12.03 kB / 444.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005665/0.2639, allocations: 120.3 kB / 445 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008377/0.2647, allocations: 473.8 kB / 445.5 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.906e-05/0.2648, allocations: 62.31 kB / 445.6 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001468/0.2649, allocations: 76.11 kB / 445.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001689/0.2666, allocations: 0.8036 MB / 446.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/0.2667, allocations: 7.953 kB / 446.5 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.168e-05/0.2668, allocations: 24 kB / 446.5 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/0.2668, allocations: 16 kB / 446.5 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002104/0.2689, allocations: 0.8432 MB / 447.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004824/0.2737, allocations: 2.412 MB / 449.7 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001673/0.2754, allocations: 0.689 MB / 450.4 MB, free: 4.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009743/0.2763, allocations: 420.3 kB / 450.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.58e-05/0.2764, allocations: 9 kB / 450.9 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001227/0.2777, allocations: 0.54 MB / 451.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.795e-06/0.2777, allocations: 0 / 451.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01217/0.2898, allocations: 4.17 MB / 455.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.525e-05/0.2899, allocations: 68.34 kB / 455.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006157/0.2905, allocations: 413.9 kB / 456 MB, free: 14.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001217/0.2906, allocations: 61.69 kB / 456.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002527/0.2909, allocations: 281.5 kB / 456.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000398/0.2913, allocations: 400.6 kB / 456.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003652/0.2916, allocations: 194.8 kB / 457 MB, free: 13.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.2918, allocations: 378.8 kB / 457.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.2929, allocations: 410.4 kB / 457.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.294, allocations: 0.5111 MB / 458.2 MB, free: 12.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001763/0.2957, allocations: 0.7363 MB / 459 MB, free: 11.9 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.2958, allocations: 4 kB / 459 MB, free: 11.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00333/0.2991, allocations: 1.284 MB / 460.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.2991, allocations: 10.81 kB / 460.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.2991, allocations: 0 / 460.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.3003, allocations: 0.5372 MB / 460.8 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008285/0.3011, allocations: 199.7 kB / 461 MB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0049/0.306, allocations: 3.395 MB / 464.4 MB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/0.3074, allocations: 175.9 kB / 464.6 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00015/0.3076, allocations: 35.98 kB / 464.6 MB, free: 6.047 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0005208/0.3081, allocations: 233.8 kB / 464.8 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/0.3083, allocations: 83.47 kB / 464.9 MB, free: 5.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002603/0.3086, allocations: 107.2 kB / 465 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.3086, allocations: 12 kB / 465 MB, free: 5.613 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.3086, allocations: 192 / 465 MB, free: 5.613 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.3086, allocations: 3.984 kB / 465 MB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005306/0.3139, allocations: 2.476 MB / 467.5 MB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.3139, allocations: 0 / 467.5 MB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000823/0.3147, allocations: 179.9 kB / 467.7 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00108/0.3158, allocations: 0.502 MB / 468.2 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.895e-05/0.3159, allocations: 31.97 kB / 468.2 MB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004205/0.3201, allocations: 3.184 MB / 471.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.3201, allocations: 4.031 kB / 471.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004092/0.3242, allocations: 1.761 MB / 473.2 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004865/0.3247, allocations: 236.5 kB / 473.4 MB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001819/0.3249, allocations: 32 kB / 473.4 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00145/0.3263, allocations: 199.7 kB / 473.6 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009545/0.3273, allocations: 388.4 kB / 474 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.3274, allocations: 39.97 kB / 474 MB, free: 12.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004144/0.3278, allocations: 287.1 kB / 474.3 MB, free: 11.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3278, allocations: 7.938 kB / 474.3 MB, free: 11.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009291/0.3287, allocations: 243.9 kB / 474.6 MB, free: 11.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,7), (1,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001462/0.3302, allocations: 419.7 kB / 475 MB, free: 11.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002775/0.333, allocations: 1.083 MB / 476.1 MB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/0.333, allocations: 4 kB / 476.1 MB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.3346, allocations: 0.6844 MB / 476.8 MB, free: 9.629 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00101/0.3356, allocations: 148.8 kB / 476.9 MB, free: 9.484 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00463/0.3402, allocations: 2.057 MB / 479 MB, free: 7.367 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006407/0.3408, allocations: 0.9479 MB / 479.9 MB, free: 6.391 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002975/0.3411, allocations: 79.41 kB / 480 MB, free: 6.312 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3411, allocations: 0 / 480 MB, free: 6.312 MB / 382.1 MB Notification: Performance of Templates: time 0.02552/0.3667, allocations: 18.38 MB / 498.4 MB, free: 3.918 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.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: 8.9298839061521]