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.001663/0.001663, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001889/0.001889, allocations: 207.6 kB / 19.41 MB, free: 3.645 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.461/1.461, allocations: 227.7 MB / 247.9 MB, free: 10.19 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.00191/0.00191, allocations: 63.89 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2631, allocations: 50.55 MB / 410.2 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006149/0.2692, allocations: 4.477 MB / 414.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003284/0.2725, allocations: 1.578 MB / 416.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003121/0.2728, allocations: 11.94 kB / 416.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003983/0.2732, allocations: 134.7 kB / 416.4 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005906/0.2738, allocations: 277.7 kB / 416.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009183/0.2747, allocations: 419.2 kB / 417.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001339/0.2761, allocations: 1.17 MB / 418.3 MB, free: 9.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000442/0.2765, allocations: 193.8 kB / 418.4 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/0.2775, allocations: 0.4946 MB / 418.9 MB, free: 8.664 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001017/0.2786, allocations: 0.537 MB / 419.5 MB, free: 8.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002143/0.2788, allocations: 92 kB / 419.6 MB, free: 8.035 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005274/0.2793, allocations: 172 kB / 419.7 MB, free: 7.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004265/0.2797, allocations: 239.3 kB / 420 MB, free: 7.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000738/0.2805, allocations: 469.8 kB / 420.4 MB, free: 7.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002049/0.2825, allocations: 1.124 MB / 421.5 MB, free: 6.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.2825, allocations: 0 / 421.5 MB, free: 6.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.2825, allocations: 0 / 421.5 MB, free: 6.047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.86e-05/0.2825, allocations: 0 / 421.5 MB, free: 6.047 MB / 334.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.00469/0.2872, allocations: 1.348 MB / 422.9 MB, free: 4.645 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.2873, allocations: 8.031 kB / 422.9 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007632/0.288, allocations: 120.3 kB / 423 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.2891, allocations: 481.8 kB / 423.5 MB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.061e-05/0.2892, allocations: 58.38 kB / 423.5 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002101/0.2894, allocations: 72.12 kB / 423.6 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002476/0.2919, allocations: 0.7998 MB / 424.4 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.991e-05/0.2919, allocations: 11.95 kB / 424.4 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/0.2921, allocations: 24 kB / 424.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.366e-05/0.2921, allocations: 16 kB / 424.5 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00293/0.295, allocations: 0.8431 MB / 425.3 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006605/0.3016, allocations: 2.412 MB / 427.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002338/0.3039, allocations: 0.688 MB / 428.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001336/0.3053, allocations: 416.3 kB / 428.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.37e-05/0.3054, allocations: 20.97 kB / 428.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001769/0.3071, allocations: 0.5322 MB / 429.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 4.568e-06/0.3072, allocations: 4 kB / 429.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01677/0.3239, allocations: 4.174 MB / 433.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.165e-05/0.324, allocations: 68.41 kB / 433.6 MB, free: 9.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005774/0.3246, allocations: 413.9 kB / 434 MB, free: 9.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001174/0.3247, allocations: 61.69 kB / 434.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002282/0.3249, allocations: 285.5 kB / 434.4 MB, free: 8.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003469/0.3253, allocations: 392.7 kB / 434.7 MB, free: 8.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003424/0.3256, allocations: 190.8 kB / 434.9 MB, free: 8.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002044/0.3258, allocations: 382.7 kB / 435.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/0.3268, allocations: 410.4 kB / 435.7 MB, free: 7.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.3279, allocations: 0.5072 MB / 436.2 MB, free: 6.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001743/0.3297, allocations: 0.744 MB / 437 MB, free: 6.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3297, allocations: 0 / 437 MB, free: 6.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003204/0.3329, allocations: 1.292 MB / 438.2 MB, free: 4.855 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.3329, allocations: 8 kB / 438.3 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3329, allocations: 0 / 438.3 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/0.334, allocations: 0.5333 MB / 438.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008019/0.3348, allocations: 199.7 kB / 439 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004499/0.3393, allocations: 3.399 MB / 442.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001204/0.3405, allocations: 176.1 kB / 442.6 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.016e-05/0.3406, allocations: 43.97 kB / 442.6 MB, free: 312 kB / 350.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.0003767/0.341, allocations: 225.6 kB / 442.8 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000187/0.3412, allocations: 83.67 kB / 442.9 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002544/0.3414, allocations: 107.2 kB / 443 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.3414, allocations: 8 kB / 443 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3414, allocations: 4.047 kB / 443 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.3414, allocations: 11.95 kB / 443 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004794/0.3462, allocations: 2.468 MB / 445.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3462, allocations: 0 / 445.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008101/0.347, allocations: 172 kB / 445.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001042/0.3481, allocations: 0.5021 MB / 446.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.948e-05/0.3482, allocations: 43.89 kB / 446.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004051/0.3522, allocations: 3.176 MB / 449.4 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.3522, allocations: 7.938 kB / 449.4 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004013/0.3562, allocations: 1.753 MB / 451.1 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004282/0.3567, allocations: 240.5 kB / 451.4 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.3568, allocations: 32 kB / 451.4 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001385/0.3582, allocations: 203.9 kB / 451.6 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000956/0.3592, allocations: 380.3 kB / 452 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.645e-05/0.3592, allocations: 47.95 kB / 452 MB, free: 6.488 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003712/0.3596, allocations: 287.1 kB / 452.3 MB, free: 6.203 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3596, allocations: 0 / 452.3 MB, free: 6.203 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008222/0.3604, allocations: 243.9 kB / 452.5 MB, free: 5.965 MB / 366.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.001404/0.3618, allocations: 420.5 kB / 453 MB, free: 5.676 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002626/0.3645, allocations: 1.079 MB / 454 MB, free: 4.586 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3645, allocations: 320 / 454 MB, free: 4.586 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.3661, allocations: 0.7305 MB / 454.8 MB, free: 3.844 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008957/0.367, allocations: 153.6 kB / 454.9 MB, free: 3.699 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004203/0.3712, allocations: 2.024 MB / 456.9 MB, free: 1.629 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006119/0.3718, allocations: 0.9518 MB / 457.9 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003664/0.3722, allocations: 85.7 kB / 458 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002131/0.3724, allocations: 67.41 kB / 458 MB, free: 0.5 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3724, allocations: 0 / 458 MB, free: 0.5 MB / 366.1 MB Notification: Performance of Templates: time 0.0301/0.4025, allocations: 17.8 MB / 475.8 MB, free: 14.77 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 -s gbode -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