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.001031/0.001031, allocations: 114 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001102/0.001102, allocations: 205.8 kB / 18.27 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 59.53 kB / 306.4 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0875/0.08876, allocations: 50.53 MB / 357 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005448/0.09424, allocations: 4.477 MB / 361.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002709/0.09698, allocations: 1.562 MB / 363 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003793/0.09738, allocations: 23.81 kB / 363 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004177/0.09783, allocations: 103.2 kB / 363.1 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005282/0.09837, allocations: 242.3 kB / 363.4 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007905/0.09917, allocations: 371 kB / 363.7 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009663/0.1002, allocations: 1.166 MB / 364.9 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003495/0.1005, allocations: 265.7 kB / 365.2 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005654/0.1011, allocations: 0.4984 MB / 365.7 MB, free: 5.703 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005378/0.1016, allocations: 0.5332 MB / 366.2 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001343/0.1018, allocations: 96 kB / 366.3 MB, free: 5.074 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002814/0.1021, allocations: 168 kB / 366.5 MB, free: 4.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002337/0.1023, allocations: 239.2 kB / 366.7 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003714/0.1027, allocations: 465.8 kB / 367.1 MB, free: 4.219 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009387/0.1036, allocations: 1.114 MB / 368.3 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1036, allocations: 0 / 368.3 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1037, allocations: 4 kB / 368.3 MB, free: 3.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.477e-06/0.1037, allocations: 0 / 368.3 MB, free: 3.098 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.003101/0.1068, allocations: 1.322 MB / 369.6 MB, free: 1.727 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.1068, allocations: 12.03 kB / 369.6 MB, free: 1.715 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005208/0.1073, allocations: 119.9 kB / 369.7 MB, free: 1.598 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005797/0.1079, allocations: 457.5 kB / 370.2 MB, free: 1.109 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.018e-05/0.108, allocations: 54.38 kB / 370.2 MB, free: 1.055 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001432/0.1081, allocations: 72.12 kB / 370.3 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001631/0.1098, allocations: 0.8036 MB / 371.1 MB, free: 176 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.975e-05/0.1098, allocations: 7.906 kB / 371.1 MB, free: 168 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.842e-05/0.1099, allocations: 28 kB / 371.1 MB, free: 140 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/0.1099, allocations: 20 kB / 371.1 MB, free: 120 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1636/0.2735, allocations: 0.8346 MB / 372 MB, free: 20.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004214/0.2778, allocations: 2.414 MB / 374.4 MB, free: 19.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.2793, allocations: 0.7278 MB / 375.1 MB, free: 18.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008173/0.2801, allocations: 457.8 kB / 375.6 MB, free: 18.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.156e-05/0.2802, allocations: 24.42 kB / 375.6 MB, free: 18.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001147/0.2814, allocations: 0.5326 MB / 376.1 MB, free: 18.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.525e-06/0.2814, allocations: 3.844 kB / 376.1 MB, free: 18.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.01064/0.292, allocations: 4.16 MB / 380.3 MB, free: 16.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.2921, allocations: 64.22 kB / 380.3 MB, free: 16.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004931/0.2926, allocations: 416.9 kB / 380.8 MB, free: 16.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.905e-05/0.2927, allocations: 62.06 kB / 380.8 MB, free: 16.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/0.2929, allocations: 277.9 kB / 381.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002759/0.2932, allocations: 378.3 kB / 381.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003192/0.2935, allocations: 189.5 kB / 381.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.813e-05/0.2936, allocations: 379.5 kB / 382 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009196/0.2945, allocations: 417.9 kB / 382.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.2955, allocations: 0.5105 MB / 382.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00153/0.2971, allocations: 0.7421 MB / 383.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2971, allocations: 0 / 383.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003177/0.3003, allocations: 1.297 MB / 385 MB, free: 13.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.903e-05/0.3003, allocations: 12.53 kB / 385 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.3003, allocations: 2.375 kB / 385 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.3015, allocations: 0.5337 MB / 385.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007757/0.3023, allocations: 196.5 kB / 385.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003567/0.3058, allocations: 3.406 MB / 389.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.307, allocations: 180.1 kB / 389.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.188e-05/0.3071, allocations: 35.14 kB / 389.3 MB, free: 10.75 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.0003701/0.3075, allocations: 223.1 kB / 389.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.3076, allocations: 72.34 kB / 389.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001833/0.3078, allocations: 110.5 kB / 389.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.3078, allocations: 10.22 kB / 389.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-05/0.3079, allocations: 5.219 kB / 389.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.3079, allocations: 4.969 kB / 389.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004448/0.3123, allocations: 2.504 MB / 392.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.3123, allocations: 1.969 kB / 392.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007258/0.3131, allocations: 174.5 kB / 392.4 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008605/0.3139, allocations: 0.5031 MB / 392.9 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.062e-05/0.314, allocations: 33.59 kB / 392.9 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002882/0.3169, allocations: 3.188 MB / 396.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.3169, allocations: 2.781 kB / 396.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003225/0.3202, allocations: 1.767 MB / 397.9 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002869/0.3205, allocations: 237.6 kB / 398.1 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/0.3206, allocations: 32.78 kB / 398.2 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001235/0.3219, allocations: 205.9 kB / 398.4 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008066/0.3227, allocations: 384.2 kB / 398.7 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.577e-05/0.3228, allocations: 43.19 kB / 398.8 MB, free: 4.109 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002513/0.323, allocations: 284 kB / 399.1 MB, free: 3.938 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.323, allocations: 0 / 399.1 MB, free: 3.938 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000733/0.3238, allocations: 244.6 kB / 399.3 MB, free: 3.902 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.0008305/0.3246, allocations: 410.6 kB / 399.7 MB, free: 3.691 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002621/0.3272, allocations: 1.209 MB / 400.9 MB, free: 2.949 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3272, allocations: 0 / 400.9 MB, free: 2.949 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001304/0.3286, allocations: 0.7742 MB / 401.7 MB, free: 2.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008065/0.3294, allocations: 156.2 kB / 401.8 MB, free: 2.016 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003376/0.3328, allocations: 2.339 MB / 404.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/0.3332, allocations: 0.9517 MB / 405.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003517/0.3336, allocations: 85.69 kB / 405.2 MB, free: 14.58 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.3338, allocations: 67.42 kB / 405.3 MB, free: 14.52 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3338, allocations: 0 / 405.3 MB, free: 14.52 MB / 318.1 MB Notification: Performance of Templates: time 0.02648/0.3603, allocations: 17.1 MB / 422.4 MB, free: 13.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/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