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.007886/0.007886, allocations: 107.2 kB / 21.98 MB, free: 5.219 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.002062/0.002062, allocations: 216.6 kB / 25.29 MB, free: 3.203 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.487/1.487, allocations: 230.6 MB / 259 MB, free: 8.043 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.00207/0.00207, allocations: 67.89 kB / 379.8 MB, free: 2.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2531, allocations: 53.36 MB / 433.2 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006615/0.2597, allocations: 4.528 MB / 437.7 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00345/0.2631, allocations: 1.59 MB / 439.3 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005163/0.2636, allocations: 15.88 kB / 439.3 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005131/0.2641, allocations: 134.7 kB / 439.4 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007381/0.2649, allocations: 281.7 kB / 439.7 MB, free: 424 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001115/0.266, allocations: 423.2 kB / 440.1 MB, free: 0 / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001546/0.2675, allocations: 1.174 MB / 441.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003908/0.2679, allocations: 190.3 kB / 441.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009379/0.2689, allocations: 0.5063 MB / 442 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007847/0.2697, allocations: 0.5371 MB / 442.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000156/0.2698, allocations: 96 kB / 442.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003824/0.2702, allocations: 171.9 kB / 442.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002805/0.2705, allocations: 243.3 kB / 443 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004733/0.271, allocations: 461.9 kB / 443.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001484/0.2724, allocations: 1.134 MB / 444.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2724, allocations: 0 / 444.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2724, allocations: 0 / 444.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.407e-05/0.2725, allocations: 0 / 444.6 MB, free: 11.49 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.003442/0.2759, allocations: 1.407 MB / 446 MB, free: 10.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.2759, allocations: 12.03 kB / 446 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000524/0.2765, allocations: 116.3 kB / 446.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009018/0.2774, allocations: 404 kB / 446.5 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.701e-05/0.2774, allocations: 58.38 kB / 446.6 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.2776, allocations: 76.12 kB / 446.7 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/0.2796, allocations: 0.7959 MB / 447.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.346e-05/0.2796, allocations: 7.938 kB / 447.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.56e-05/0.2797, allocations: 36 kB / 447.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.2797, allocations: 19.94 kB / 447.5 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002139/0.2818, allocations: 0.8431 MB / 448.4 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004988/0.2868, allocations: 2.354 MB / 450.7 MB, free: 5.176 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00161/0.2884, allocations: 0.6859 MB / 451.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001094/0.2895, allocations: 427.2 kB / 451.8 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.781e-05/0.2896, allocations: 12.98 kB / 451.8 MB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001211/0.2908, allocations: 0.5361 MB / 452.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.997e-06/0.2908, allocations: 0 / 452.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01146/0.3023, allocations: 3.798 MB / 456.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.603e-05/0.3023, allocations: 64.41 kB / 456.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006053/0.3029, allocations: 421.8 kB / 456.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001126/0.3031, allocations: 57.69 kB / 456.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002557/0.3033, allocations: 285.5 kB / 457 MB, free: 14.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003582/0.3037, allocations: 388.8 kB / 457.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003445/0.304, allocations: 190.8 kB / 457.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002139/0.3042, allocations: 378.8 kB / 457.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.3053, allocations: 414.4 kB / 458.3 MB, free: 13.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001124/0.3064, allocations: 0.511 MB / 458.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001759/0.3081, allocations: 0.744 MB / 459.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3081, allocations: 0 / 459.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003278/0.3114, allocations: 1.288 MB / 460.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.3114, allocations: 8 kB / 460.9 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.3114, allocations: 0 / 460.9 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00119/0.3126, allocations: 0.5333 MB / 461.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008245/0.3135, allocations: 195.8 kB / 461.6 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004689/0.3181, allocations: 3.307 MB / 464.9 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.3194, allocations: 175.8 kB / 465.1 MB, free: 6.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.453e-05/0.3195, allocations: 39.98 kB / 465.1 MB, free: 6.445 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.0004449/0.3199, allocations: 225.6 kB / 465.3 MB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001653/0.3201, allocations: 79.47 kB / 465.4 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002203/0.3203, allocations: 103.2 kB / 465.5 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.3203, allocations: 12 kB / 465.5 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.3203, allocations: 0 / 465.5 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.3203, allocations: 11.91 kB / 465.5 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004967/0.3253, allocations: 2.433 MB / 468 MB, free: 3.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.3253, allocations: 4 kB / 468 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008174/0.3261, allocations: 171.8 kB / 468.1 MB, free: 3.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001095/0.3272, allocations: 0.502 MB / 468.6 MB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.201e-05/0.3273, allocations: 35.97 kB / 468.7 MB, free: 2.762 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004208/0.3315, allocations: 3.084 MB / 471.8 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.3315, allocations: 4 kB / 471.8 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004102/0.3356, allocations: 1.765 MB / 473.5 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005081/0.3361, allocations: 167.3 kB / 473.7 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/0.3363, allocations: 36.17 kB / 473.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001275/0.3376, allocations: 203.9 kB / 473.9 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009868/0.3386, allocations: 396.2 kB / 474.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.975e-05/0.3386, allocations: 39.97 kB / 474.3 MB, free: 12.87 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003898/0.339, allocations: 291.1 kB / 474.6 MB, free: 12.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.339, allocations: 0 / 474.6 MB, free: 12.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008551/0.3399, allocations: 244 kB / 474.9 MB, free: 12.35 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.001512/0.3414, allocations: 410.2 kB / 475.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002865/0.3443, allocations: 1.094 MB / 476.4 MB, free: 10.97 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3443, allocations: 0 / 476.4 MB, free: 10.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001585/0.3459, allocations: 0.6766 MB / 477 MB, free: 10.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.3469, allocations: 146.7 kB / 477.2 MB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004519/0.3514, allocations: 2.071 MB / 479.3 MB, free: 8.008 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006373/0.352, allocations: 0.9441 MB / 480.2 MB, free: 7.035 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003126/0.3523, allocations: 79.41 kB / 480.3 MB, free: 6.957 MB / 382.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3523, allocations: 0 / 480.3 MB, free: 6.957 MB / 382.1 MB Notification: Performance of Templates: time 0.02493/0.3773, allocations: 18.36 MB / 498.6 MB, free: 4.582 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 9.526573078939691]