Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,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.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,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.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 109.5 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001731/0.00173, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001005, allocations: 50.3 kB / 302 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08939/0.09041, allocations: 49.43 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005218/0.09567, allocations: 4.312 MB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002269/0.09796, allocations: 1.376 MB / 357.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002367/0.09821, allocations: 15.94 kB / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002954/0.09853, allocations: 114.8 kB / 357.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003538/0.0989, allocations: 229.9 kB / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008876/0.09979, allocations: 422.2 kB / 357.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009522/0.1008, allocations: 1.131 MB / 359.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000357/0.1011, allocations: 269.6 kB / 359.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005144/0.1017, allocations: 482.5 kB / 359.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000551/0.1022, allocations: 0.5137 MB / 360.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000123/0.1023, allocations: 88 kB / 360.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002602/0.1026, allocations: 159.9 kB / 360.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002193/0.1028, allocations: 219.3 kB / 360.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00039/0.1032, allocations: 442 kB / 361.2 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009344/0.1042, allocations: 1.063 MB / 362.3 MB, free: 8.848 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1042, allocations: 4 kB / 362.3 MB, free: 8.844 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1042, allocations: 3.938 kB / 362.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.1042, allocations: 0 / 362.3 MB, free: 8.84 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.00309/0.1073, allocations: 1.275 MB / 363.5 MB, free: 7.516 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.1074, allocations: 12.03 kB / 363.6 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002136/0.1076, allocations: 91.98 kB / 363.6 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006572/0.1083, allocations: 449.6 kB / 364.1 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.526e-05/0.1083, allocations: 50.38 kB / 364.1 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.1085, allocations: 80.16 kB / 364.2 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.11, allocations: 0.8077 MB / 365 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/0.1101, allocations: 4 kB / 365 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.73e-05/0.1102, allocations: 27.98 kB / 365.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.1102, allocations: 20 kB / 365.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001918/0.1121, allocations: 0.8666 MB / 365.9 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004103/0.1162, allocations: 2.38 MB / 368.3 MB, free: 2.566 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/0.1177, allocations: 0.7113 MB / 369 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009036/0.1186, allocations: 468.2 kB / 369.5 MB, free: 1.387 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.356e-05/0.1187, allocations: 16.98 kB / 369.5 MB, free: 1.371 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001107/0.1198, allocations: 0.5517 MB / 370.1 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 2.846e-06/0.1198, allocations: 0 / 370.1 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of matching and sorting (n=106): time 0.1595/0.2793, allocations: 4.201 MB / 374.3 MB, free: 24.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.2794, allocations: 67 kB / 374.3 MB, free: 24.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004187/0.2798, allocations: 394.4 kB / 374.7 MB, free: 24.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.226e-05/0.2799, allocations: 57.72 kB / 374.8 MB, free: 24.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.2801, allocations: 274.6 kB / 375 MB, free: 23.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002008/0.2803, allocations: 355.4 kB / 375.4 MB, free: 23.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002989/0.2806, allocations: 185.1 kB / 375.6 MB, free: 23.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.704e-05/0.2807, allocations: 378.3 kB / 375.9 MB, free: 23.24 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009224/0.2816, allocations: 433.6 kB / 376.4 MB, free: 23.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001039/0.2826, allocations: 0.5312 MB / 376.9 MB, free: 22.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/0.2842, allocations: 0.7892 MB / 377.7 MB, free: 22.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.93e-06/0.2842, allocations: 0 / 377.7 MB, free: 22.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002885/0.2871, allocations: 1.35 MB / 379 MB, free: 22.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.2871, allocations: 6.594 kB / 379 MB, free: 22.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.2872, allocations: 1.281 kB / 379 MB, free: 22.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.2883, allocations: 0.6537 MB / 379.7 MB, free: 21.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008366/0.2892, allocations: 200.5 kB / 379.9 MB, free: 21.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003516/0.2927, allocations: 3.435 MB / 383.3 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/0.2938, allocations: 175.4 kB / 383.5 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.284e-05/0.2939, allocations: 35.7 kB / 383.5 MB, free: 18.84 MB / 302.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,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003427/0.2943, allocations: 225.1 kB / 383.7 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.2944, allocations: 82.16 kB / 383.8 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001993/0.2946, allocations: 104.2 kB / 383.9 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.2946, allocations: 13.94 kB / 383.9 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/0.2947, allocations: 0.5625 kB / 383.9 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.2947, allocations: 6.25 kB / 383.9 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004441/0.2991, allocations: 2.491 MB / 386.4 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.2991, allocations: 6.547 kB / 386.4 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000759/0.2999, allocations: 179.2 kB / 386.6 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001009/0.3009, allocations: 0.6213 MB / 387.2 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-05/0.301, allocations: 35.22 kB / 387.3 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002926/0.304, allocations: 3.215 MB / 390.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.304, allocations: 5.281 kB / 390.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003603/0.3076, allocations: 1.843 MB / 392.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003861/0.308, allocations: 235.3 kB / 392.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.3081, allocations: 31.38 kB / 392.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/0.3094, allocations: 202.3 kB / 392.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008259/0.3102, allocations: 386 kB / 393.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.574e-05/0.3103, allocations: 42.73 kB / 393.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002745/0.3106, allocations: 265 kB / 393.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3106, allocations: 1.531 kB / 393.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008548/0.3115, allocations: 250.5 kB / 393.7 MB, free: 12.92 MB / 302.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 (89): * Single equations (assignments): 86 * 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,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002623/0.3117, allocations: 171.5 kB / 393.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0024/0.3141, allocations: 1.192 MB / 395.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.3142, allocations: 1.188 kB / 395.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001448/0.3156, allocations: 0.7825 MB / 395.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007644/0.3164, allocations: 132.9 kB / 396 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003341/0.3197, allocations: 1.955 MB / 397.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.3201, allocations: 0.9355 MB / 398.9 MB, free: 9.477 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000318/0.3204, allocations: 73.45 kB / 399 MB, free: 9.402 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.3206, allocations: 67.41 kB / 399 MB, free: 9.336 MB / 302.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3206, allocations: 0 / 399 MB, free: 9.336 MB / 302.1 MB Notification: Performance of Templates: time 0.02405/0.3446, allocations: 17.56 MB / 416.6 MB, free: 7.867 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches