Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009496/0.0009497, allocations: 96.17 kB / 17.3 MB, free: 6.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 172.5 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.622/1.622, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000472/0.0004721, allocations: 8 kB / 281.4 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1171, allocations: 47.59 MB / 329 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003956/0.1211, allocations: 2.644 MB / 331.6 MB, free: 1.098 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002254/0.1234, allocations: 1.182 MB / 332.8 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.1235, allocations: 4 kB / 332.8 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003695/0.1239, allocations: 63.61 kB / 332.8 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000343/0.1243, allocations: 99.17 kB / 332.9 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007957/0.1251, allocations: 367.4 kB / 333.3 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007659/0.1258, allocations: 0.7567 MB / 334.1 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002167/0.1261, allocations: 89.42 kB / 334.1 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004451/0.1265, allocations: 322.9 kB / 334.5 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00159/0.1281, allocations: 1.331 MB / 335.8 MB, free: 12.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.327e-05/0.1282, allocations: 32 kB / 335.8 MB, free: 12.86 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.1285, allocations: 87.95 kB / 335.9 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002346/0.1287, allocations: 196.2 kB / 336.1 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003354/0.129, allocations: 339.8 kB / 336.4 MB, free: 12.24 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008363/0.1299, allocations: 0.8095 MB / 337.2 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1299, allocations: 0 / 337.2 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1299, allocations: 4 kB / 337.2 MB, free: 11.43 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.1299, allocations: 0 / 337.2 MB, free: 11.43 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003606/0.1335, allocations: 1.301 MB / 338.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.1336, allocations: 12.03 kB / 338.6 MB, free: 10.06 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001463/0.1338, allocations: 79.97 kB / 338.6 MB, free: 9.984 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005337/0.1343, allocations: 431.5 kB / 339.1 MB, free: 9.52 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.026e-05/0.1344, allocations: 29.38 kB / 339.1 MB, free: 9.488 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.957e-05/0.1345, allocations: 40.22 kB / 339.1 MB, free: 9.449 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/0.1363, allocations: 1.177 MB / 340.3 MB, free: 8.262 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.1364, allocations: 0 / 340.3 MB, free: 8.262 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.377e-05/0.1364, allocations: 16 kB / 340.3 MB, free: 8.246 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.1365, allocations: 8 kB / 340.3 MB, free: 8.238 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002764/0.1392, allocations: 1.779 MB / 342.1 MB, free: 6.461 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004297/0.1435, allocations: 2.557 MB / 344.7 MB, free: 3.82 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001616/0.1452, allocations: 0.9381 MB / 345.6 MB, free: 2.863 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/0.1463, allocations: 0.728 MB / 346.3 MB, free: 2.129 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.702e-05/0.1464, allocations: 7.984 kB / 346.3 MB, free: 2.121 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001577/0.148, allocations: 0.9162 MB / 347.3 MB, free: 1.188 MB / 286.1 MB Notification: Performance of pre-optimization done (n=47): time 2.624e-06/0.148, allocations: 0 / 347.3 MB, free: 1.188 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.01156/0.1596, allocations: 6.04 MB / 353.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.504e-05/0.1596, allocations: 89.11 kB / 353.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001115/0.1608, allocations: 0.918 MB / 354.3 MB, free: 9.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.494e-05/0.1609, allocations: 53.62 kB / 354.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002341/0.1611, allocations: 288.3 kB / 354.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001514/0.1613, allocations: 169.8 kB / 354.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.1614, allocations: 57.69 kB / 354.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.1616, allocations: 378.8 kB / 355.2 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001295/0.1629, allocations: 0.8642 MB / 356.1 MB, free: 8.137 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.1642, allocations: 0.9558 MB / 357 MB, free: 7.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002083/0.1663, allocations: 1.488 MB / 358.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1663, allocations: 0 / 358.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00366/0.17, allocations: 2.529 MB / 361.1 MB, free: 3.086 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.17, allocations: 4 kB / 361.1 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.17, allocations: 4 kB / 361.1 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00206/0.1721, allocations: 1.904 MB / 363 MB, free: 1.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000511/0.1726, allocations: 123.8 kB / 363.1 MB, free: 1.043 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007724/0.1804, allocations: 6.447 MB / 369.5 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/0.1819, allocations: 303.6 kB / 369.8 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.025e-05/0.182, allocations: 27.98 kB / 369.9 MB, free: 9.973 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003897/0.1824, allocations: 252 kB / 370.1 MB, free: 9.715 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.1825, allocations: 67.16 kB / 370.2 MB, free: 9.648 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002232/0.1827, allocations: 110.1 kB / 370.3 MB, free: 9.531 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.1827, allocations: 4 kB / 370.3 MB, free: 9.527 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.1827, allocations: 3.938 kB / 370.3 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.1828, allocations: 7.984 kB / 370.3 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004078/0.1868, allocations: 3.131 MB / 373.4 MB, free: 6.316 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/0.1869, allocations: 7.984 kB / 373.4 MB, free: 6.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004683/0.1873, allocations: 95.94 kB / 373.5 MB, free: 6.215 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001834/0.1892, allocations: 1.865 MB / 375.4 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.403e-05/0.1893, allocations: 23.97 kB / 375.4 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2006/0.3899, allocations: 6.148 MB / 381.6 MB, free: 53.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.3899, allocations: 0 / 381.6 MB, free: 53.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006005/0.396, allocations: 3.28 MB / 384.9 MB, free: 52.9 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004522/0.3964, allocations: 213.8 kB / 385.1 MB, free: 52.8 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.3966, allocations: 21.08 kB / 385.1 MB, free: 52.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001934/0.3985, allocations: 348.6 kB / 385.4 MB, free: 52.8 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001659/0.4002, allocations: 0.5535 MB / 386 MB, free: 52.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.657e-05/0.4003, allocations: 26.03 kB / 386 MB, free: 52.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009709/0.4013, allocations: 0.6748 MB / 386.7 MB, free: 52.71 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4013, allocations: 3.281 kB / 386.7 MB, free: 52.71 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001099/0.4024, allocations: 185.8 kB / 386.9 MB, free: 52.7 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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,5), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003343/0.4027, allocations: 150.3 kB / 387 MB, free: 52.6 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003571/0.4063, allocations: 1.955 MB / 389 MB, free: 52.04 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.4063, allocations: 0 / 389 MB, free: 52.04 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00173/0.408, allocations: 1.1 MB / 390.1 MB, free: 51.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006851/0.4087, allocations: 68.8 kB / 390.1 MB, free: 51.58 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004557/0.4133, allocations: 2.361 MB / 392.5 MB, free: 50.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004891/0.4138, allocations: 0.9233 MB / 393.4 MB, free: 49.8 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002342/0.4141, allocations: 42.25 kB / 393.5 MB, free: 49.79 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.4142, allocations: 33.84 kB / 393.5 MB, free: 49.77 MB / 318.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4142, allocations: 3.969 kB / 393.5 MB, free: 49.77 MB / 318.1 MB Notification: Performance of Templates: time 0.02455/0.4387, allocations: 21.72 MB / 415.2 MB, free: 29.71 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches