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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001992/0.001992, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009645/0.0009645, allocations: 100.6 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009815/0.0009815, allocations: 47.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2122, allocations: 50.45 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004549/0.2168, allocations: 4.446 MB / 411.5 MB, free: 23.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002263/0.2191, allocations: 1.523 MB / 413 MB, free: 21.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003451/0.2195, allocations: 8 kB / 413 MB, free: 21.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004519/0.22, allocations: 103.2 kB / 413.1 MB, free: 21.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004718/0.2204, allocations: 234.3 kB / 413.4 MB, free: 21.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007135/0.2212, allocations: 355.5 kB / 413.7 MB, free: 21.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000633/0.2218, allocations: 1.104 MB / 414.8 MB, free: 20.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002913/0.2221, allocations: 234.9 kB / 415 MB, free: 19.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004471/0.2226, allocations: 454.4 kB / 415.5 MB, free: 19.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003741/0.2229, allocations: 0.5058 MB / 416 MB, free: 18.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001054/0.2231, allocations: 59.94 kB / 416 MB, free: 18.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002588/0.2233, allocations: 116 kB / 416.2 MB, free: 18.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001822/0.2235, allocations: 199.3 kB / 416.3 MB, free: 18.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000284/0.2238, allocations: 421.8 kB / 416.8 MB, free: 18.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006583/0.2245, allocations: 1.057 MB / 417.8 MB, free: 16.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.2245, allocations: 0 / 417.8 MB, free: 16.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2245, allocations: 4 kB / 417.8 MB, free: 16.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.2245, allocations: 0 / 417.8 MB, free: 16.99 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.002847/0.2273, allocations: 1.306 MB / 419.1 MB, free: 15.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.2274, allocations: 12.03 kB / 419.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004465/0.2279, allocations: 115.9 kB / 419.3 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005425/0.2284, allocations: 457.5 kB / 419.7 MB, free: 15.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.499e-05/0.2285, allocations: 54.38 kB / 419.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.2286, allocations: 72.28 kB / 419.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.2299, allocations: 0.8038 MB / 420.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.893e-05/0.23, allocations: 15.83 kB / 420.6 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.14e-05/0.2301, allocations: 28 kB / 420.7 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.2301, allocations: 16 kB / 420.7 MB, free: 14.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001705/0.2318, allocations: 0.8393 MB / 421.5 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003563/0.2354, allocations: 2.416 MB / 423.9 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/0.2367, allocations: 0.7206 MB / 424.7 MB, free: 9.906 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008059/0.2375, allocations: 464.2 kB / 425.1 MB, free: 9.453 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.399e-05/0.2376, allocations: 13 kB / 425.1 MB, free: 9.441 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001064/0.2387, allocations: 0.5398 MB / 425.7 MB, free: 8.883 MB / 298.7 MB Notification: Performance of pre-optimization done (n=89): time 2.736e-06/0.2387, allocations: 0 / 425.7 MB, free: 8.883 MB / 298.7 MB Notification: Performance of matching and sorting (n=109): time 0.00925/0.248, allocations: 4.123 MB / 429.8 MB, free: 4.641 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.239e-05/0.248, allocations: 64.41 kB / 429.9 MB, free: 4.562 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003783/0.2484, allocations: 409.9 kB / 430.3 MB, free: 4.156 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.619e-05/0.2485, allocations: 57.69 kB / 430.3 MB, free: 4.094 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.2486, allocations: 273.1 kB / 430.6 MB, free: 3.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/0.2488, allocations: 366.8 kB / 430.9 MB, free: 3.457 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002553/0.2491, allocations: 182.9 kB / 431.1 MB, free: 3.273 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.62e-05/0.2492, allocations: 382.7 kB / 431.5 MB, free: 2.891 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008152/0.25, allocations: 414.4 kB / 431.9 MB, free: 2.484 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008409/0.2508, allocations: 0.511 MB / 432.4 MB, free: 1.957 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/0.2522, allocations: 0.7479 MB / 433.1 MB, free: 1.191 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2522, allocations: 0 / 433.1 MB, free: 1.191 MB / 298.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002573/0.2548, allocations: 1.291 MB / 434.4 MB, free: 15.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.2549, allocations: 11.98 kB / 434.5 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.2549, allocations: 3.938 kB / 434.5 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.2559, allocations: 498.2 kB / 434.9 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007951/0.2567, allocations: 199.7 kB / 435.1 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003951/0.2607, allocations: 3.227 MB / 438.4 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.2618, allocations: 175.9 kB / 438.5 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.35e-05/0.2619, allocations: 39.98 kB / 438.6 MB, free: 11.55 MB / 314.7 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 (114): * Single equations (assignments): 111 * 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.00038/0.2623, allocations: 231.6 kB / 438.8 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.2625, allocations: 75.14 kB / 438.9 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/0.2627, allocations: 103.2 kB / 439 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/0.2627, allocations: 12 kB / 439 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.2627, allocations: 0 / 439 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.2628, allocations: 7.969 kB / 439 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004315/0.2671, allocations: 2.477 MB / 441.5 MB, free: 8.539 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.2671, allocations: 0 / 441.5 MB, free: 8.539 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007482/0.2679, allocations: 176 kB / 441.6 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009297/0.2688, allocations: 478.2 kB / 442.1 MB, free: 7.891 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-05/0.2689, allocations: 43.95 kB / 442.2 MB, free: 7.848 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004642/0.2735, allocations: 3.046 MB / 445.2 MB, free: 4.617 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.2736, allocations: 4.031 kB / 445.2 MB, free: 4.613 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01949/0.2931, allocations: 12.27 MB / 457.5 MB, free: 7.672 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003468/0.2934, allocations: 236.1 kB / 457.7 MB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/0.2936, allocations: 32 kB / 457.7 MB, free: 7.391 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.2949, allocations: 207.7 kB / 457.9 MB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008923/0.2958, allocations: 372.3 kB / 458.3 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.351e-05/0.2959, allocations: 39.97 kB / 458.3 MB, free: 6.785 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003068/0.2962, allocations: 283.1 kB / 458.6 MB, free: 6.504 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2962, allocations: 0 / 458.6 MB, free: 6.504 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009887/0.2972, allocations: 340 kB / 459 MB, free: 6.172 MB / 330.7 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,7), (1,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001034/0.2983, allocations: 0.5018 MB / 459.5 MB, free: 5.828 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002514/0.3008, allocations: 1.149 MB / 460.6 MB, free: 4.672 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.36e-05/0.3008, allocations: 4 kB / 460.6 MB, free: 4.668 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00154/0.3024, allocations: 0.7625 MB / 461.4 MB, free: 3.895 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008195/0.3032, allocations: 137.9 kB / 461.5 MB, free: 3.758 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004747/0.3079, allocations: 3.233 MB / 464.7 MB, free: 436 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005163/0.3085, allocations: 0.9601 MB / 465.7 MB, free: 15.44 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004429/0.3089, allocations: 101.5 kB / 465.8 MB, free: 15.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002477/0.3092, allocations: 75.39 kB / 465.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of SimCode: time 4.51e-07/0.3092, allocations: 0 / 465.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of Templates: time 0.02836/0.3376, allocations: 19.92 MB / 485.8 MB, free: 11.41 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches