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.00113/0.00113, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 61.47 kB / 306.3 MB, free: 1.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0936/0.09481, allocations: 50.54 MB / 356.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005686/0.1005, allocations: 4.477 MB / 361.3 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002989/0.1036, allocations: 1.574 MB / 362.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005647/0.1041, allocations: 11.94 kB / 362.9 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005488/0.1047, allocations: 103.3 kB / 363 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008722/0.1056, allocations: 242.2 kB / 363.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.1067, allocations: 379.3 kB / 363.6 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001335/0.108, allocations: 1.112 MB / 364.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003778/0.1084, allocations: 238.9 kB / 364.9 MB, free: 6.344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005859/0.109, allocations: 462.4 kB / 365.4 MB, free: 5.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005145/0.1095, allocations: 0.5058 MB / 365.9 MB, free: 5.383 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.1096, allocations: 59.94 kB / 365.9 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002978/0.1099, allocations: 120 kB / 366 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002425/0.1102, allocations: 211.2 kB / 366.2 MB, free: 5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003788/0.1106, allocations: 421.8 kB / 366.7 MB, free: 4.586 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008984/0.1115, allocations: 1.067 MB / 367.7 MB, free: 3.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1115, allocations: 0 / 367.7 MB, free: 3.516 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1115, allocations: 4 kB / 367.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.757e-06/0.1115, allocations: 0 / 367.7 MB, free: 3.512 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.003246/0.1148, allocations: 1.32 MB / 369.1 MB, free: 2.145 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.1148, allocations: 8.031 kB / 369.1 MB, free: 2.137 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005223/0.1154, allocations: 123.8 kB / 369.2 MB, free: 2.016 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000613/0.116, allocations: 461.5 kB / 369.6 MB, free: 1.523 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.172e-05/0.116, allocations: 58.38 kB / 369.7 MB, free: 1.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.1162, allocations: 72.12 kB / 369.8 MB, free: 1.395 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.1178, allocations: 0.7959 MB / 370.6 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.99e-05/0.1178, allocations: 11.89 kB / 370.6 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.612e-05/0.1179, allocations: 24 kB / 370.6 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/0.118, allocations: 16 kB / 370.6 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.152/0.2699, allocations: 0.8385 MB / 371.4 MB, free: 20 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004449/0.2744, allocations: 2.414 MB / 373.9 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.2759, allocations: 0.7293 MB / 374.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009252/0.2769, allocations: 464.2 kB / 375 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.784e-05/0.2769, allocations: 13.62 kB / 375.1 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001164/0.2781, allocations: 0.533 MB / 375.6 MB, free: 18.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.665e-06/0.2781, allocations: 1.125 kB / 375.6 MB, free: 18.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.01071/0.2889, allocations: 4.164 MB / 379.8 MB, free: 16.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.692e-05/0.2889, allocations: 63.11 kB / 379.8 MB, free: 16.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004259/0.2893, allocations: 423.2 kB / 380.2 MB, free: 16.19 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.06e-05/0.2894, allocations: 56.77 kB / 380.3 MB, free: 16.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.2896, allocations: 277.4 kB / 380.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002269/0.2898, allocations: 388 kB / 380.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003011/0.2901, allocations: 186 kB / 381.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.2902, allocations: 377.9 kB / 381.5 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000943/0.2912, allocations: 415.1 kB / 381.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009855/0.2922, allocations: 0.5053 MB / 382.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001539/0.2937, allocations: 0.74 MB / 383.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2937, allocations: 7.938 kB / 383.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002833/0.2966, allocations: 1.294 MB / 384.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.2966, allocations: 4.719 kB / 384.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.2966, allocations: 1.953 kB / 384.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.2976, allocations: 0.5315 MB / 385 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007511/0.2984, allocations: 205.6 kB / 385.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003304/0.3017, allocations: 3.227 MB / 388.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.3028, allocations: 176.8 kB / 388.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.565e-05/0.3029, allocations: 35.91 kB / 388.6 MB, free: 10.9 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.000334/0.3032, allocations: 232.7 kB / 388.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.3034, allocations: 72.27 kB / 388.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001958/0.3036, allocations: 106.8 kB / 389 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.3036, allocations: 11.06 kB / 389 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/0.3036, allocations: 0 / 389 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.3036, allocations: 8.062 kB / 389 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004079/0.3077, allocations: 2.505 MB / 391.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.3077, allocations: 2.375 kB / 391.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007579/0.3085, allocations: 183.5 kB / 391.7 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008543/0.3094, allocations: 0.4923 MB / 392.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.323e-05/0.3095, allocations: 40.83 kB / 392.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003046/0.3125, allocations: 3.063 MB / 395.3 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.3125, allocations: 2.75 kB / 395.3 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003397/0.3159, allocations: 1.762 MB / 397.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003035/0.3163, allocations: 237.9 kB / 397.3 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.3164, allocations: 36.28 kB / 397.3 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/0.3176, allocations: 203.9 kB / 397.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007976/0.3185, allocations: 374.5 kB / 397.9 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.459e-05/0.3185, allocations: 48.61 kB / 398 MB, free: 4.449 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002668/0.3188, allocations: 288.7 kB / 398.2 MB, free: 4.273 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3188, allocations: 0 / 398.2 MB, free: 4.273 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007979/0.3196, allocations: 241.7 kB / 398.5 MB, free: 4.242 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.0008681/0.3205, allocations: 418.4 kB / 398.9 MB, free: 4.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002071/0.3226, allocations: 1.138 MB / 400 MB, free: 3.445 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3226, allocations: 4.062 kB / 400 MB, free: 3.441 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00138/0.324, allocations: 0.7708 MB / 400.8 MB, free: 2.914 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008004/0.3248, allocations: 138.3 kB / 400.9 MB, free: 2.781 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003381/0.3282, allocations: 2.347 MB / 403.3 MB, free: 408 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000404/0.3286, allocations: 0.9518 MB / 404.2 MB, free: 15.42 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000366/0.329, allocations: 85.7 kB / 404.3 MB, free: 15.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002052/0.3292, allocations: 59.41 kB / 404.4 MB, free: 15.28 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3292, allocations: 0 / 404.4 MB, free: 15.28 MB / 318.1 MB Notification: Performance of Templates: time 0.02257/0.3518, allocations: 16.11 MB / 420.5 MB, free: 15.25 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.0.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