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) 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) 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=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/ModelicaServices trunk/package.mo): time 0.001403/0.001409, allocations: 107.4 kB / 17.98 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.001371, allocations: 213.8 kB / 18.92 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.629/1.629, allocations: 227.4 MB / 247.1 MB, free: 10.7 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001858, allocations: 63.8 kB / 307.1 MB, free: 0.9219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1094, allocations: 50.53 MB / 357.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006645/0.1161, allocations: 4.492 MB / 362.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003101/0.1193, allocations: 1.566 MB / 363.7 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003425/0.1196, allocations: 15.94 kB / 363.7 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004536/0.1201, allocations: 103.2 kB / 363.8 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006293/0.1208, allocations: 230.3 kB / 364.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.1218, allocations: 383.4 kB / 364.4 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001384/0.1232, allocations: 1.162 MB / 365.6 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000442/0.1237, allocations: 269.7 kB / 365.9 MB, free: 6.148 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007856/0.1245, allocations: 0.5023 MB / 366.4 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006765/0.1252, allocations: 0.5331 MB / 366.9 MB, free: 5.109 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001736/0.1254, allocations: 96 kB / 367 MB, free: 5.016 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003528/0.1257, allocations: 164 kB / 367.2 MB, free: 4.855 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002847/0.126, allocations: 239.3 kB / 367.4 MB, free: 4.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00065/0.1267, allocations: 469.8 kB / 367.8 MB, free: 4.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001143/0.1278, allocations: 0.8381 MB / 368.7 MB, free: 3.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1278, allocations: 0 / 368.7 MB, free: 3.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1278, allocations: 0 / 368.7 MB, free: 3.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.1279, allocations: 0 / 368.7 MB, free: 3.32 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003495/0.1314, allocations: 1.326 MB / 370 MB, free: 1.945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.1314, allocations: 8.031 kB / 370 MB, free: 1.938 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005589/0.132, allocations: 115.9 kB / 370.1 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007202/0.1327, allocations: 457.5 kB / 370.6 MB, free: 1.336 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/0.1329, allocations: 54.38 kB / 370.6 MB, free: 1.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/0.1331, allocations: 72.12 kB / 370.7 MB, free: 1.211 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001786/0.1349, allocations: 0.7998 MB / 371.5 MB, free: 412 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.046e-05/0.1349, allocations: 7.906 kB / 371.5 MB, free: 404 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-05/0.135, allocations: 28 kB / 371.5 MB, free: 376 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/0.135, allocations: 16 kB / 371.5 MB, free: 360 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1604/0.2954, allocations: 0.8413 MB / 372.4 MB, free: 20.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004394/0.2999, allocations: 2.415 MB / 374.8 MB, free: 19.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/0.3015, allocations: 0.7275 MB / 375.5 MB, free: 18.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008337/0.3023, allocations: 455.8 kB / 376 MB, free: 18.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.542e-05/0.3024, allocations: 22.08 kB / 376 MB, free: 18.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00116/0.3036, allocations: 0.5403 MB / 376.5 MB, free: 18.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 3.056e-06/0.3036, allocations: 0 / 376.5 MB, free: 18.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.01086/0.3145, allocations: 4.156 MB / 380.7 MB, free: 16.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.3145, allocations: 67.5 kB / 380.8 MB, free: 16.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005179/0.3151, allocations: 418.7 kB / 381.2 MB, free: 16.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001006/0.3152, allocations: 56.45 kB / 381.2 MB, free: 16.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.3154, allocations: 279.2 kB / 381.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002358/0.3156, allocations: 376.6 kB / 381.9 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003204/0.3159, allocations: 189.5 kB / 382.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.316, allocations: 379.5 kB / 382.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009282/0.317, allocations: 415.4 kB / 382.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009864/0.318, allocations: 0.5145 MB / 383.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001556/0.3195, allocations: 0.7401 MB / 384.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.329e-06/0.3195, allocations: 0 / 384.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003036/0.3226, allocations: 1.295 MB / 385.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.3226, allocations: 14.3 kB / 385.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.3226, allocations: 1.156 kB / 385.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.3237, allocations: 0.5367 MB / 385.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008066/0.3245, allocations: 192.6 kB / 386.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003481/0.328, allocations: 3.411 MB / 389.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/0.3293, allocations: 172.2 kB / 389.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.038e-05/0.3294, allocations: 40.28 kB / 389.7 MB, free: 10.71 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,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003936/0.3298, allocations: 224.6 kB / 390 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.33, allocations: 77.11 kB / 390 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001961/0.3302, allocations: 109.7 kB / 390.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.3302, allocations: 11.02 kB / 390.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/0.3302, allocations: 3.938 kB / 390.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.3302, allocations: 6.719 kB / 390.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004266/0.3345, allocations: 2.504 MB / 392.7 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.3345, allocations: 3.375 kB / 392.7 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007775/0.3353, allocations: 175.2 kB / 392.8 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008733/0.3362, allocations: 0.5001 MB / 393.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.932e-05/0.3363, allocations: 37.58 kB / 393.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002973/0.3393, allocations: 3.176 MB / 396.6 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.3393, allocations: 2.5 kB / 396.6 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00341/0.3427, allocations: 1.772 MB / 398.3 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000334/0.343, allocations: 240.2 kB / 398.6 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/0.3432, allocations: 37.12 kB / 398.6 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/0.3444, allocations: 203.3 kB / 398.8 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008504/0.3453, allocations: 376.3 kB / 399.2 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.648e-05/0.3454, allocations: 44.42 kB / 399.2 MB, free: 4.098 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000279/0.3457, allocations: 288 kB / 399.5 MB, free: 3.922 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3457, allocations: 0 / 399.5 MB, free: 3.922 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007891/0.3465, allocations: 245.4 kB / 399.7 MB, free: 3.891 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 (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.001344/0.3478, allocations: 419.2 kB / 400.1 MB, free: 3.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002786/0.3506, allocations: 1.205 MB / 401.3 MB, free: 3.055 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3506, allocations: 0 / 401.3 MB, free: 3.055 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/0.3519, allocations: 0.7338 MB / 402.1 MB, free: 2.383 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008709/0.3527, allocations: 150.1 kB / 402.2 MB, free: 2.238 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003663/0.3564, allocations: 2.372 MB / 404.6 MB, free: 15.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006635/0.3571, allocations: 0.9439 MB / 405.5 MB, free: 14.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002942/0.3574, allocations: 75.41 kB / 405.6 MB, free: 14.78 MB / 318.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3574, allocations: 0 / 405.6 MB, free: 14.78 MB / 318.1 MB Notification: Performance of Templates: time 0.02573/0.3831, allocations: 18.26 MB / 423.9 MB, free: 12.5 MB / 334.1 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/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_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches