Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001289/0.001289, allocations: 118.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 213.1 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.435/1.435, allocations: 230.4 MB / 250 MB, free: 9.051 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 67.83 kB / 367.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2998, allocations: 53.31 MB / 420.6 MB, free: 8.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006907/0.3067, allocations: 4.484 MB / 425.1 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003559/0.3103, allocations: 1.586 MB / 426.7 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006658/0.3109, allocations: 8 kB / 426.7 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005622/0.3115, allocations: 134.7 kB / 426.9 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009238/0.3124, allocations: 285.7 kB / 427.1 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.3135, allocations: 413.4 kB / 427.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001638/0.3152, allocations: 1.178 MB / 428.7 MB, free: 284 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003805/0.3155, allocations: 177.8 kB / 428.9 MB, free: 92 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009445/0.3165, allocations: 0.5063 MB / 429.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008365/0.3173, allocations: 0.5332 MB / 429.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00016/0.3175, allocations: 92 kB / 430 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003329/0.3178, allocations: 171.9 kB / 430.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000267/0.3181, allocations: 239.3 kB / 430.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004591/0.3185, allocations: 465.9 kB / 430.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001302/0.3198, allocations: 1.136 MB / 432 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.3198, allocations: 0 / 432 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.3198, allocations: 0 / 432 MB, free: 12.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.3199, allocations: 0 / 432 MB, free: 12.96 MB / 350.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.003134/0.323, allocations: 1.351 MB / 433.4 MB, free: 11.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.323, allocations: 8.031 kB / 433.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005065/0.3235, allocations: 120.3 kB / 433.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007232/0.3243, allocations: 469.9 kB / 434 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.675e-05/0.3243, allocations: 58.38 kB / 434 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.3244, allocations: 76.12 kB / 434.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.3261, allocations: 0.7998 MB / 434.9 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.166e-05/0.3261, allocations: 11.89 kB / 434.9 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.902e-05/0.3262, allocations: 27.94 kB / 434.9 MB, free: 9.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/0.3262, allocations: 20 kB / 434.9 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002006/0.3282, allocations: 0.847 MB / 435.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00437/0.3326, allocations: 2.404 MB / 438.2 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/0.3341, allocations: 0.6852 MB / 438.9 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009149/0.335, allocations: 424.3 kB / 439.3 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.324e-05/0.3351, allocations: 12.94 kB / 439.3 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001194/0.3363, allocations: 0.5361 MB / 439.8 MB, free: 4.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.705e-06/0.3363, allocations: 0 / 439.8 MB, free: 4.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.011/0.3473, allocations: 4.174 MB / 444 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.593e-05/0.3473, allocations: 64.41 kB / 444.1 MB, free: 0.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005039/0.3478, allocations: 413.9 kB / 444.5 MB, free: 92 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.678e-05/0.3479, allocations: 61.69 kB / 444.5 MB, free: 24 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002453/0.3482, allocations: 281.5 kB / 444.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003318/0.3485, allocations: 396.7 kB / 445.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000329/0.3489, allocations: 190.8 kB / 445.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.349, allocations: 378.8 kB / 445.8 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009257/0.35, allocations: 410.4 kB / 446.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/0.351, allocations: 0.5188 MB / 446.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001599/0.3526, allocations: 0.7401 MB / 447.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.3526, allocations: 0 / 447.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002969/0.3555, allocations: 1.284 MB / 448.7 MB, free: 11.78 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.3556, allocations: 8 kB / 448.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3556, allocations: 0 / 448.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/0.3567, allocations: 0.5333 MB / 449.2 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007798/0.3575, allocations: 199.8 kB / 449.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004286/0.3618, allocations: 3.395 MB / 452.8 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.3629, allocations: 179.9 kB / 453 MB, free: 7.273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.277e-05/0.363, allocations: 36.11 kB / 453 MB, free: 7.238 MB / 366.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.0003846/0.3633, allocations: 233.6 kB / 453.3 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/0.3635, allocations: 83.47 kB / 453.4 MB, free: 6.922 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002448/0.3637, allocations: 103.2 kB / 453.5 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.3637, allocations: 12 kB / 453.5 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.3637, allocations: 0 / 453.5 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.3638, allocations: 7.969 kB / 453.5 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004667/0.3684, allocations: 2.472 MB / 455.9 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.3684, allocations: 4.219 kB / 456 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007558/0.3692, allocations: 167.8 kB / 456.1 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009877/0.3702, allocations: 0.5059 MB / 456.6 MB, free: 3.535 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.412e-05/0.3703, allocations: 35.97 kB / 456.7 MB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003901/0.3742, allocations: 3.183 MB / 459.8 MB, free: 128 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.3742, allocations: 4.312 kB / 459.8 MB, free: 124 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003759/0.3779, allocations: 1.761 MB / 461.6 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004241/0.3783, allocations: 240.5 kB / 461.8 MB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.3785, allocations: 35.94 kB / 461.9 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.3797, allocations: 207.7 kB / 462.1 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000915/0.3806, allocations: 380.4 kB / 462.4 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.173e-05/0.3807, allocations: 43.95 kB / 462.5 MB, free: 13.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003734/0.3811, allocations: 287.1 kB / 462.8 MB, free: 13.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3811, allocations: 4 kB / 462.8 MB, free: 13.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007865/0.3819, allocations: 239.9 kB / 463 MB, free: 12.89 MB / 382.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.001343/0.3832, allocations: 415.7 kB / 463.4 MB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002507/0.3857, allocations: 1.087 MB / 464.5 MB, free: 11.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.3857, allocations: 4 kB / 464.5 MB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001603/0.3873, allocations: 0.7312 MB / 465.2 MB, free: 10.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008316/0.3882, allocations: 145.8 kB / 465.4 MB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004019/0.3922, allocations: 2.016 MB / 467.4 MB, free: 8.551 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005696/0.3928, allocations: 0.948 MB / 468.3 MB, free: 7.578 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003459/0.3931, allocations: 81.7 kB / 468.4 MB, free: 7.496 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001988/0.3933, allocations: 71.41 kB / 468.5 MB, free: 7.426 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3933, allocations: 0 / 468.5 MB, free: 7.426 MB / 382.1 MB Notification: Performance of Templates: time 0.02979/0.4231, allocations: 17.85 MB / 486.3 MB, free: 5.648 MB / 398.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches