Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001266/0.001266, allocations: 113.8 kB / 19.18 MB, free: 3.762 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.001387/0.001387, allocations: 208.9 kB / 22.13 MB, free: 0.8125 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.485/1.485, allocations: 230.2 MB / 255.2 MB, free: 15.4 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.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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002501/0.002501, allocations: 67.89 kB / 374.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1143, allocations: 53.32 MB / 427.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006156/0.1205, allocations: 4.485 MB / 432.3 MB, free: 8 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003129/0.1236, allocations: 1.574 MB / 433.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003467/0.1239, allocations: 15.94 kB / 433.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004618/0.1244, allocations: 138.7 kB / 434 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006258/0.125, allocations: 285.7 kB / 434.3 MB, free: 14 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009756/0.126, allocations: 410.2 kB / 434.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001281/0.1273, allocations: 1.182 MB / 435.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003298/0.1276, allocations: 181.8 kB / 436.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007377/0.1283, allocations: 0.5063 MB / 436.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000731/0.1291, allocations: 0.537 MB / 437.1 MB, free: 11.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001657/0.1292, allocations: 92 kB / 437.2 MB, free: 11.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003628/0.1296, allocations: 164 kB / 437.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000294/0.1299, allocations: 239.2 kB / 437.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004772/0.1304, allocations: 465.8 kB / 438.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001368/0.1317, allocations: 1.128 MB / 439.2 MB, free: 9.098 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1317, allocations: 4 kB / 439.2 MB, free: 9.094 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1318, allocations: 0 / 439.2 MB, free: 9.094 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.273e-05/0.1318, allocations: 4 kB / 439.2 MB, free: 9.09 MB / 366.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.003635/0.1354, allocations: 1.348 MB / 440.6 MB, free: 7.688 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.1354, allocations: 8.031 kB / 440.6 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005647/0.136, allocations: 128.3 kB / 440.7 MB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007889/0.1368, allocations: 469.8 kB / 441.1 MB, free: 7.059 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.343e-05/0.1369, allocations: 58.38 kB / 441.2 MB, free: 7.004 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.137, allocations: 72.12 kB / 441.3 MB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/0.1388, allocations: 0.7998 MB / 442.1 MB, free: 6.125 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.25e-05/0.1389, allocations: 7.953 kB / 442.1 MB, free: 6.117 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.556e-05/0.139, allocations: 28 kB / 442.1 MB, free: 6.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.139, allocations: 16 kB / 442.1 MB, free: 6.074 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002144/0.1411, allocations: 0.8431 MB / 443 MB, free: 5.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004987/0.1461, allocations: 2.408 MB / 445.4 MB, free: 2.688 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.1478, allocations: 0.6929 MB / 446.1 MB, free: 1.984 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009945/0.1488, allocations: 412.3 kB / 446.5 MB, free: 1.578 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.307e-05/0.1488, allocations: 12.98 kB / 446.5 MB, free: 1.562 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001261/0.1501, allocations: 0.5399 MB / 447 MB, free: 1.012 MB / 366.1 MB Notification: Performance of pre-optimization done (n=90): time 3.095e-06/0.1501, allocations: 0 / 447 MB, free: 1.012 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.2155/0.3656, allocations: 4.163 MB / 451.2 MB, free: 24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.406e-05/0.3657, allocations: 63.41 kB / 451.2 MB, free: 23.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004952/0.3662, allocations: 420.3 kB / 451.7 MB, free: 23.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.997e-05/0.3663, allocations: 57.92 kB / 451.7 MB, free: 23.69 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.3664, allocations: 287 kB / 452 MB, free: 23.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002292/0.3667, allocations: 387.6 kB / 452.4 MB, free: 23.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003173/0.367, allocations: 192.8 kB / 452.6 MB, free: 23.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.863e-05/0.3671, allocations: 380.3 kB / 452.9 MB, free: 22.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009315/0.368, allocations: 415.4 kB / 453.3 MB, free: 22.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.369, allocations: 0.5096 MB / 453.8 MB, free: 22.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001629/0.3707, allocations: 0.7455 MB / 454.6 MB, free: 22.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3707, allocations: 0 / 454.6 MB, free: 22.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003117/0.3738, allocations: 1.279 MB / 455.9 MB, free: 21.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.3738, allocations: 5.484 kB / 455.9 MB, free: 21.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.3738, allocations: 7.281 kB / 455.9 MB, free: 21.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/0.375, allocations: 0.5357 MB / 456.4 MB, free: 21.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009126/0.3759, allocations: 195.1 kB / 456.6 MB, free: 21.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003898/0.3798, allocations: 3.404 MB / 460 MB, free: 18.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00135/0.3811, allocations: 174.7 kB / 460.2 MB, free: 18.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.751e-05/0.3812, allocations: 39.69 kB / 460.2 MB, free: 18.41 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.0003905/0.3816, allocations: 227.2 kB / 460.4 MB, free: 18.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.3818, allocations: 80.52 kB / 460.5 MB, free: 18.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002323/0.382, allocations: 109.2 kB / 460.6 MB, free: 18.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/0.382, allocations: 11.48 kB / 460.6 MB, free: 18.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.528e-05/0.382, allocations: 0 / 460.6 MB, free: 18.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.514e-05/0.382, allocations: 9.984 kB / 460.7 MB, free: 18.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004599/0.3866, allocations: 2.466 MB / 463.1 MB, free: 16.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.321e-06/0.3866, allocations: 2.312 kB / 463.1 MB, free: 16.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000821/0.3875, allocations: 180.4 kB / 463.3 MB, free: 16.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009978/0.3885, allocations: 0.5002 MB / 463.8 MB, free: 16.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.97e-05/0.3886, allocations: 40.06 kB / 463.8 MB, free: 16.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003201/0.3918, allocations: 3.184 MB / 467 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.175e-06/0.3918, allocations: 2.375 kB / 467 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003658/0.3954, allocations: 1.761 MB / 468.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000393/0.3958, allocations: 238.5 kB / 469 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.396, allocations: 36.83 kB / 469.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/0.3973, allocations: 198.3 kB / 469.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009421/0.3983, allocations: 380.5 kB / 469.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.178e-05/0.3984, allocations: 41.55 kB / 469.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003334/0.3987, allocations: 292.1 kB / 469.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3987, allocations: 1.344 kB / 469.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008933/0.3996, allocations: 244.4 kB / 470.2 MB, free: 12.55 MB / 366.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.001369/0.401, allocations: 417.4 kB / 470.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002536/0.4035, allocations: 1.088 MB / 471.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4035, allocations: 0 / 471.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001427/0.4049, allocations: 0.6829 MB / 472.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009243/0.4058, allocations: 158.6 kB / 472.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004015/0.4099, allocations: 2.065 MB / 474.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004216/0.4103, allocations: 0.9426 MB / 475.5 MB, free: 9.629 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003214/0.4106, allocations: 76.47 kB / 475.6 MB, free: 9.617 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4106, allocations: 4 kB / 475.6 MB, free: 9.613 MB / 366.1 MB Notification: Performance of Templates: time 0.02102/0.4316, allocations: 18.37 MB / 494 MB, free: 13.8 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 9.05882414104417]