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.0009678/0.0009676, allocations: 97.38 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 200.5 kB / 17.91 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.7 MB / 246.4 MB, free: 9.832 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002357/0.0002363, allocations: 4 kB / 307.1 MB, free: 0.9883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08997/0.09023, allocations: 51.52 MB / 358.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004567/0.09483, allocations: 3.865 MB / 362.5 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002686/0.09755, allocations: 1.516 MB / 364 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003963/0.09797, allocations: 11.94 kB / 364 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004028/0.09838, allocations: 103.2 kB / 364.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005898/0.09898, allocations: 238.3 kB / 364.4 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008915/0.09989, allocations: 323.5 kB / 364.7 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001133/0.101, allocations: 1.026 MB / 365.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003741/0.1014, allocations: 207.2 kB / 365.9 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007109/0.1021, allocations: 442.5 kB / 366.3 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006332/0.1028, allocations: 482.2 kB / 366.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.1029, allocations: 48 kB / 366.8 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002804/0.1032, allocations: 112 kB / 367 MB, free: 5.082 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002125/0.1034, allocations: 187.3 kB / 367.1 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.1036, allocations: 161.3 kB / 367.3 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006882/0.1043, allocations: 0.7988 MB / 368.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1043, allocations: 0 / 368.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1043, allocations: 0 / 368.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.1043, allocations: 0 / 368.1 MB, free: 3.934 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.002655/0.107, allocations: 1.252 MB / 369.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.107, allocations: 12.03 kB / 369.4 MB, free: 2.621 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004494/0.1075, allocations: 118.9 kB / 369.5 MB, free: 2.504 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000549/0.108, allocations: 444.5 kB / 369.9 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.508e-05/0.1081, allocations: 61.95 kB / 370 MB, free: 1.969 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.1082, allocations: 68 kB / 370 MB, free: 1.902 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001542/0.1098, allocations: 0.8075 MB / 370.8 MB, free: 1.086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.89e-05/0.1098, allocations: 7.906 kB / 370.8 MB, free: 1.078 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.859e-05/0.1099, allocations: 28 kB / 370.9 MB, free: 1.051 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.1099, allocations: 20 kB / 370.9 MB, free: 1.031 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001822/0.1117, allocations: 0.8627 MB / 371.8 MB, free: 176 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1784/0.2901, allocations: 2.466 MB / 374.2 MB, free: 18.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/0.2917, allocations: 0.7489 MB / 375 MB, free: 18.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009266/0.2927, allocations: 469.7 kB / 375.4 MB, free: 17.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.557e-05/0.2928, allocations: 13.7 kB / 375.4 MB, free: 17.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001202/0.294, allocations: 0.5443 MB / 376 MB, free: 17.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.875e-06/0.294, allocations: 0 / 376 MB, free: 17.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.01005/0.3041, allocations: 4.389 MB / 380.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.3041, allocations: 63.12 kB / 380.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004611/0.3046, allocations: 415.2 kB / 380.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.032e-05/0.3047, allocations: 61.59 kB / 380.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.3048, allocations: 276.9 kB / 381.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002724/0.3051, allocations: 376.2 kB / 381.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.255e-05/0.3052, allocations: 26.14 kB / 381.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.3053, allocations: 378.3 kB / 381.9 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009394/0.3063, allocations: 422.7 kB / 382.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.3073, allocations: 0.5153 MB / 382.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008026/0.3081, allocations: 364.2 kB / 383.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3081, allocations: 0 / 383.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002853/0.311, allocations: 1.308 MB / 384.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.311, allocations: 6.625 kB / 384.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.311, allocations: 1.062 kB / 384.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/0.3121, allocations: 0.5412 MB / 385.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007832/0.3129, allocations: 203 kB / 385.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003376/0.3163, allocations: 3.26 MB / 388.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/0.3174, allocations: 236.8 kB / 388.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.862e-05/0.3175, allocations: 36.53 kB / 388.8 MB, free: 10.45 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,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 9,1 5,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003369/0.3179, allocations: 233.4 kB / 389 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.318, allocations: 77.81 kB / 389.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002278/0.3182, allocations: 105.5 kB / 389.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.3182, allocations: 11.67 kB / 389.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.3183, allocations: 5.312 kB / 389.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.3183, allocations: 9.156 kB / 389.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004546/0.3228, allocations: 2.528 MB / 391.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.3228, allocations: 2 kB / 391.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007274/0.3236, allocations: 184 kB / 391.9 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008311/0.3244, allocations: 0.5021 MB / 392.4 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7e-05/0.3245, allocations: 36.17 kB / 392.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002805/0.3273, allocations: 3.09 MB / 395.6 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3273, allocations: 3.844 kB / 395.6 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003347/0.3307, allocations: 1.795 MB / 397.4 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003288/0.331, allocations: 236.8 kB / 397.6 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.3312, allocations: 40.34 kB / 397.6 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.3323, allocations: 270.5 kB / 397.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000809/0.3331, allocations: 433.4 kB / 398.3 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.407e-05/0.3332, allocations: 46.11 kB / 398.4 MB, free: 4.031 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002666/0.3335, allocations: 286.2 kB / 398.7 MB, free: 3.855 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3335, allocations: 0 / 398.7 MB, free: 3.855 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007861/0.3343, allocations: 242.3 kB / 398.9 MB, free: 3.824 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 8,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008605/0.3352, allocations: 411.6 kB / 399.3 MB, free: 3.605 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002219/0.3374, allocations: 1.157 MB / 400.5 MB, free: 3.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3374, allocations: 0 / 400.5 MB, free: 3.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001327/0.3387, allocations: 0.7747 MB / 401.2 MB, free: 2.445 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000763/0.3395, allocations: 146.8 kB / 401.4 MB, free: 2.305 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003388/0.3429, allocations: 2.433 MB / 403.8 MB, free: 15.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.3434, allocations: 0.9518 MB / 404.8 MB, free: 14.84 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003667/0.3438, allocations: 89.62 kB / 404.8 MB, free: 14.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.344, allocations: 63.41 kB / 404.9 MB, free: 14.69 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.344, allocations: 0 / 404.9 MB, free: 14.69 MB / 318.1 MB Notification: Performance of Templates: time 0.02295/0.3669, allocations: 15.45 MB / 420.4 MB, free: 15.33 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