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.001756/0.001756, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002127/0.002127, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 59.61 kB / 307 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0943/0.09622, allocations: 50.55 MB / 357.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006164/0.1024, allocations: 4.459 MB / 362 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00313/0.1056, allocations: 1.582 MB / 363.6 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003083/0.1059, allocations: 15.94 kB / 363.6 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000434/0.1064, allocations: 134.7 kB / 363.7 MB, free: 7.812 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005937/0.107, allocations: 281.7 kB / 364 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008922/0.1079, allocations: 419.1 kB / 364.4 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001141/0.109, allocations: 1.166 MB / 365.6 MB, free: 5.953 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004025/0.1095, allocations: 261.7 kB / 365.8 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007185/0.1102, allocations: 0.4907 MB / 366.3 MB, free: 5.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006875/0.1109, allocations: 0.537 MB / 366.9 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001583/0.1111, allocations: 92 kB / 366.9 MB, free: 4.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003364/0.1114, allocations: 172 kB / 367.1 MB, free: 4.402 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002783/0.1117, allocations: 235.3 kB / 367.3 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004757/0.1122, allocations: 469.8 kB / 367.8 MB, free: 3.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001192/0.1134, allocations: 1.106 MB / 368.9 MB, free: 2.602 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1134, allocations: 0 / 368.9 MB, free: 2.602 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1134, allocations: 0 / 368.9 MB, free: 2.602 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.1134, allocations: 4 kB / 368.9 MB, free: 2.598 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.003458/0.1169, allocations: 1.329 MB / 370.2 MB, free: 1.219 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1169, allocations: 8.031 kB / 370.2 MB, free: 1.211 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000537/0.1175, allocations: 111.9 kB / 370.4 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006481/0.1181, allocations: 461.5 kB / 370.8 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.975e-05/0.1182, allocations: 58.38 kB / 370.9 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.1184, allocations: 76.12 kB / 370.9 MB, free: 488 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1501/0.2684, allocations: 0.7903 MB / 371.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.235e-05/0.2685, allocations: 7.188 kB / 371.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-05/0.2686, allocations: 31.83 kB / 371.8 MB, free: 19.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.354e-05/0.2686, allocations: 16.75 kB / 371.8 MB, free: 19.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001998/0.2706, allocations: 0.8404 MB / 372.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004275/0.2749, allocations: 2.424 MB / 375 MB, free: 18.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001469/0.2764, allocations: 0.7268 MB / 375.8 MB, free: 18.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000864/0.2773, allocations: 453.4 kB / 376.2 MB, free: 18.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.074e-05/0.2774, allocations: 17.58 kB / 376.2 MB, free: 18.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001157/0.2785, allocations: 0.5369 MB / 376.8 MB, free: 17.92 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.896e-06/0.2785, allocations: 0 / 376.8 MB, free: 17.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.01043/0.289, allocations: 4.164 MB / 380.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/0.289, allocations: 62.03 kB / 381 MB, free: 15.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004366/0.2895, allocations: 418.8 kB / 381.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.968e-05/0.2896, allocations: 61.11 kB / 381.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.2897, allocations: 273.8 kB / 381.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002187/0.2899, allocations: 380 kB / 382.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000299/0.2902, allocations: 191 kB / 382.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.444e-05/0.2903, allocations: 375 kB / 382.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009063/0.2912, allocations: 412.6 kB / 383.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009454/0.2922, allocations: 0.5077 MB / 383.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001524/0.2937, allocations: 0.7466 MB / 384.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2937, allocations: 4 kB / 384.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002878/0.2966, allocations: 1.302 MB / 385.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.2967, allocations: 8.672 kB / 385.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.2967, allocations: 3.516 kB / 385.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009828/0.2977, allocations: 0.5316 MB / 386.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007985/0.2985, allocations: 202.8 kB / 386.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003358/0.3018, allocations: 3.405 MB / 389.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/0.303, allocations: 170.6 kB / 389.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.207e-05/0.3031, allocations: 37.19 kB / 390 MB, free: 10.23 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.0003115/0.3034, allocations: 225.5 kB / 390.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.3036, allocations: 76.56 kB / 390.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001989/0.3038, allocations: 113.2 kB / 390.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.3038, allocations: 10.78 kB / 390.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.3038, allocations: 1.188 kB / 390.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.3038, allocations: 7.656 kB / 390.4 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003979/0.3078, allocations: 2.504 MB / 392.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.3078, allocations: 2.75 kB / 392.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007113/0.3085, allocations: 178.2 kB / 393.1 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000829/0.3094, allocations: 0.5041 MB / 393.6 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.895e-05/0.3095, allocations: 41.92 kB / 393.6 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002827/0.3123, allocations: 3.172 MB / 396.8 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3123, allocations: 2.5 kB / 396.8 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003437/0.3158, allocations: 1.771 MB / 398.6 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004107/0.3162, allocations: 230.9 kB / 398.8 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001456/0.3163, allocations: 32.88 kB / 398.8 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001282/0.3176, allocations: 203.1 kB / 399 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008278/0.3185, allocations: 383.5 kB / 399.4 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.311e-05/0.3186, allocations: 43.67 kB / 399.4 MB, free: 3.492 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002901/0.3188, allocations: 289.5 kB / 399.7 MB, free: 3.309 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3189, allocations: 0 / 399.7 MB, free: 3.309 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008176/0.3197, allocations: 243.1 kB / 400 MB, free: 3.277 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.001307/0.321, allocations: 421 kB / 400.4 MB, free: 3.055 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002985/0.324, allocations: 1.194 MB / 401.6 MB, free: 2.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.718e-06/0.324, allocations: 320 / 401.6 MB, free: 2.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.3253, allocations: 0.7758 MB / 402.3 MB, free: 1.449 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008562/0.3262, allocations: 154.9 kB / 402.5 MB, free: 1.301 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00376/0.33, allocations: 2.007 MB / 404.5 MB, free: 15.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006468/0.3306, allocations: 0.9517 MB / 405.4 MB, free: 14.28 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003812/0.331, allocations: 81.7 kB / 405.5 MB, free: 14.2 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002038/0.3312, allocations: 71.41 kB / 405.6 MB, free: 14.12 MB / 318.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3312, allocations: 0 / 405.6 MB, free: 14.12 MB / 318.1 MB Notification: Performance of Templates: time 0.02891/0.3601, allocations: 17.54 MB / 423.1 MB, free: 12.68 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches