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.001352/0.001352, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001415/0.001415, allocations: 207.9 kB / 19.25 MB, free: 3.898 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.448/1.448, allocations: 227.7 MB / 247.7 MB, free: 10.3 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.002075/0.002075, allocations: 65.3 kB / 307.9 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1132, allocations: 50.54 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.008369/0.1216, allocations: 4.46 MB / 362.9 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003073/0.1247, allocations: 1.578 MB / 364.5 MB, free: 7.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002754/0.125, allocations: 15.88 kB / 364.5 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004217/0.1255, allocations: 130.7 kB / 364.6 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005665/0.1261, allocations: 277.7 kB / 364.9 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009214/0.127, allocations: 426.5 kB / 365.3 MB, free: 7.027 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001186/0.1282, allocations: 1.155 MB / 366.5 MB, free: 5.863 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004243/0.1286, allocations: 273.7 kB / 366.7 MB, free: 5.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006667/0.1293, allocations: 0.4946 MB / 367.2 MB, free: 5.094 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006413/0.13, allocations: 0.5331 MB / 367.7 MB, free: 4.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.1301, allocations: 96 kB / 367.8 MB, free: 4.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003435/0.1305, allocations: 160 kB / 368 MB, free: 4.309 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002878/0.1308, allocations: 239.3 kB / 368.2 MB, free: 4.074 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004742/0.1313, allocations: 469.8 kB / 368.7 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001171/0.1324, allocations: 1.11 MB / 369.8 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1325, allocations: 0 / 369.8 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1325, allocations: 4 kB / 369.8 MB, free: 2.496 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.356e-05/0.1325, allocations: 3.984 kB / 369.8 MB, free: 2.492 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.003343/0.1358, allocations: 1.318 MB / 371.1 MB, free: 1.125 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.1359, allocations: 8.031 kB / 371.1 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000514/0.1364, allocations: 119.9 kB / 371.3 MB, free: 1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000653/0.1371, allocations: 457.5 kB / 371.7 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.389e-05/0.1371, allocations: 58.36 kB / 371.8 MB, free: 464 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.1373, allocations: 72.12 kB / 371.8 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1447/0.282, allocations: 0.7923 MB / 372.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.88e-05/0.282, allocations: 9.812 kB / 372.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-05/0.2821, allocations: 29.34 kB / 372.7 MB, free: 19.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.16e-05/0.2821, allocations: 16.75 kB / 372.7 MB, free: 19.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002042/0.2842, allocations: 0.8439 MB / 373.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004367/0.2886, allocations: 2.42 MB / 375.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.29, allocations: 0.7303 MB / 376.7 MB, free: 18.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008621/0.2909, allocations: 457.9 kB / 377.1 MB, free: 18.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.897e-05/0.291, allocations: 12.95 kB / 377.1 MB, free: 18.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001111/0.2921, allocations: 0.5381 MB / 377.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 3.136e-06/0.2921, allocations: 0 / 377.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.01049/0.3026, allocations: 4.171 MB / 381.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.996e-05/0.3026, allocations: 62.41 kB / 381.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004509/0.3031, allocations: 423.7 kB / 382.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.888e-05/0.3032, allocations: 56.84 kB / 382.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.3033, allocations: 274.8 kB / 382.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002239/0.3036, allocations: 379.4 kB / 383 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002878/0.3039, allocations: 191.7 kB / 383.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.089e-05/0.304, allocations: 375.2 kB / 383.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008929/0.3049, allocations: 416.9 kB / 384 MB, free: 14.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009698/0.3058, allocations: 0.5054 MB / 384.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001527/0.3074, allocations: 0.7427 MB / 385.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3074, allocations: 1.594 kB / 385.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002861/0.3103, allocations: 1.301 MB / 386.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.3103, allocations: 11.09 kB / 386.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.3103, allocations: 2.547 kB / 386.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.3113, allocations: 0.5378 MB / 387.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007608/0.3121, allocations: 197.2 kB / 387.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003427/0.3156, allocations: 3.401 MB / 390.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/0.3167, allocations: 175.3 kB / 390.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.495e-05/0.3168, allocations: 35.73 kB / 390.9 MB, free: 10.12 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.0003465/0.3172, allocations: 232.1 kB / 391.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.3173, allocations: 85.16 kB / 391.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001995/0.3175, allocations: 103 kB / 391.3 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.208e-06/0.3176, allocations: 11.38 kB / 391.3 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.3176, allocations: 0 / 391.3 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.3176, allocations: 7.266 kB / 391.3 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004007/0.3216, allocations: 2.504 MB / 393.8 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.3216, allocations: 2.406 kB / 393.8 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007262/0.3224, allocations: 175.1 kB / 394 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000839/0.3232, allocations: 0.5 MB / 394.5 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.225e-05/0.3233, allocations: 41.58 kB / 394.5 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002905/0.3262, allocations: 3.172 MB / 397.7 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3262, allocations: 2.469 kB / 397.7 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003357/0.3296, allocations: 1.774 MB / 399.5 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002997/0.3299, allocations: 238.5 kB / 399.7 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.33, allocations: 30.31 kB / 399.7 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.3313, allocations: 201 kB / 399.9 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007435/0.3321, allocations: 381.6 kB / 400.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.944e-05/0.3322, allocations: 55.42 kB / 400.3 MB, free: 3.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002542/0.3324, allocations: 285.4 kB / 400.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3324, allocations: 0 / 400.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007837/0.3332, allocations: 238.9 kB / 400.9 MB, free: 3.133 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.001282/0.3345, allocations: 412.1 kB / 401.3 MB, free: 2.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002709/0.3372, allocations: 1.205 MB / 402.5 MB, free: 2.062 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3372, allocations: 0 / 402.5 MB, free: 2.062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001182/0.3384, allocations: 0.7234 MB / 403.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008067/0.3392, allocations: 160.6 kB / 403.3 MB, free: 1.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003684/0.3429, allocations: 2.039 MB / 405.4 MB, free: 15.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006185/0.3436, allocations: 0.9441 MB / 406.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002508/0.3438, allocations: 79.41 kB / 406.4 MB, free: 14.05 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3438, allocations: 0 / 406.4 MB, free: 14.05 MB / 318.1 MB Notification: Performance of Templates: time 0.0229/0.3667, allocations: 18.27 MB / 424.7 MB, free: 11.76 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/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