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.001698/0.001698, allocations: 100.5 kB / 18.35 MB, free: 4.648 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.00178/0.00178, allocations: 191 kB / 19.29 MB, free: 3.715 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.37/1.37, allocations: 205.1 MB / 225.2 MB, free: 12.28 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.001446/0.001446, allocations: 51.92 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0863/0.08777, allocations: 46.63 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004134/0.09192, allocations: 2.972 MB / 331.7 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002199/0.09415, allocations: 1.205 MB / 332.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002853/0.09446, allocations: 4 kB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005026/0.095, allocations: 79.3 kB / 333 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003652/0.09538, allocations: 122.9 kB / 333.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.09643, allocations: 407.2 kB / 333.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008654/0.09731, allocations: 0.8074 MB / 334.3 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.09751, allocations: 97.55 kB / 334.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005257/0.09805, allocations: 351.1 kB / 334.8 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001455/0.09951, allocations: 1.339 MB / 336.1 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001604/0.09969, allocations: 68 kB / 336.2 MB, free: 12.29 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002748/0.09997, allocations: 127.9 kB / 336.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002217/0.1002, allocations: 227.8 kB / 336.5 MB, free: 11.94 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003483/0.1006, allocations: 350 kB / 336.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008058/0.1014, allocations: 0.8644 MB / 337.7 MB, free: 10.73 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.1014, allocations: 4 kB / 337.7 MB, free: 10.72 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1014, allocations: 0 / 337.7 MB, free: 10.72 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.478e-05/0.1014, allocations: 4 kB / 337.7 MB, free: 10.72 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.003614/0.105, allocations: 1.32 MB / 339 MB, free: 9.348 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.1051, allocations: 12.03 kB / 339.1 MB, free: 9.336 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001612/0.1053, allocations: 83.98 kB / 339.1 MB, free: 9.254 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006021/0.1059, allocations: 427.5 kB / 339.6 MB, free: 8.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.714e-05/0.1059, allocations: 29.38 kB / 339.6 MB, free: 8.766 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.634e-05/0.106, allocations: 36.38 kB / 339.6 MB, free: 8.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001738/0.1078, allocations: 1.154 MB / 340.8 MB, free: 7.562 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.1078, allocations: 8 kB / 340.8 MB, free: 7.555 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.982e-05/0.1079, allocations: 16 kB / 340.8 MB, free: 7.539 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.1079, allocations: 8 kB / 340.8 MB, free: 7.531 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002549/0.1105, allocations: 1.744 MB / 342.5 MB, free: 5.789 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004284/0.1148, allocations: 2.486 MB / 345 MB, free: 3.223 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/0.1163, allocations: 0.9146 MB / 345.9 MB, free: 2.289 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001064/0.1174, allocations: 0.7123 MB / 346.7 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.781e-05/0.1175, allocations: 4 kB / 346.7 MB, free: 1.566 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00142/0.1189, allocations: 0.9083 MB / 347.6 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of pre-optimization done (n=47): time 2.284e-06/0.1189, allocations: 0 / 347.6 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.01155/0.1305, allocations: 5.773 MB / 353.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.014e-05/0.1306, allocations: 89.09 kB / 353.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.1319, allocations: 0.9141 MB / 354.3 MB, free: 9.676 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.315e-05/0.132, allocations: 49.69 kB / 354.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002658/0.1323, allocations: 296.3 kB / 354.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002323/0.1325, allocations: 169.8 kB / 354.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002739/0.1328, allocations: 114.2 kB / 355 MB, free: 9.039 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.133, allocations: 378.8 kB / 355.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.1342, allocations: 0.8525 MB / 356.2 MB, free: 7.809 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001257/0.1355, allocations: 0.9323 MB / 357.1 MB, free: 6.844 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002062/0.1376, allocations: 1.465 MB / 358.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.1376, allocations: 4 kB / 358.6 MB, free: 5.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003744/0.1414, allocations: 2.486 MB / 361.1 MB, free: 2.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.1414, allocations: 11.28 kB / 361.1 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.1414, allocations: 0 / 361.1 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001933/0.1434, allocations: 1.904 MB / 363 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005357/0.1439, allocations: 111.8 kB / 363.1 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007607/0.1515, allocations: 6.7 MB / 369.8 MB, free: 9.801 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.1529, allocations: 231.6 kB / 370 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.178e-05/0.153, allocations: 23.98 kB / 370 MB, free: 9.551 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.000422/0.1535, allocations: 264 kB / 370.3 MB, free: 9.285 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.1536, allocations: 63.25 kB / 370.4 MB, free: 9.223 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002687/0.1539, allocations: 102.2 kB / 370.5 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.1539, allocations: 8 kB / 370.5 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.1539, allocations: 0 / 370.5 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.1539, allocations: 3.984 kB / 370.5 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004144/0.1581, allocations: 3.091 MB / 373.6 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.645e-06/0.1581, allocations: 4 kB / 373.6 MB, free: 5.941 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004884/0.1586, allocations: 87.98 kB / 373.7 MB, free: 5.855 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00199/0.1606, allocations: 1.861 MB / 375.5 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.286e-05/0.1607, allocations: 35.89 kB / 375.5 MB, free: 3.949 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1672/0.3279, allocations: 6.321 MB / 381.9 MB, free: 53.69 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.328, allocations: 4.828 kB / 381.9 MB, free: 53.69 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005698/0.3337, allocations: 3.226 MB / 385.1 MB, free: 53.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004518/0.3342, allocations: 213.8 kB / 385.3 MB, free: 53.29 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/0.3343, allocations: 23.34 kB / 385.3 MB, free: 53.28 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00169/0.336, allocations: 266.6 kB / 385.6 MB, free: 53.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001454/0.3375, allocations: 0.562 MB / 386.2 MB, free: 53.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001097/0.3376, allocations: 27.27 kB / 386.2 MB, free: 53.13 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007882/0.3384, allocations: 0.6743 MB / 386.9 MB, free: 52.89 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3384, allocations: 0 / 386.9 MB, free: 52.89 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008921/0.3393, allocations: 191.9 kB / 387 MB, free: 52.87 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.0002925/0.3396, allocations: 163.5 kB / 387.2 MB, free: 52.76 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003128/0.3427, allocations: 1.926 MB / 389.1 MB, free: 52.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3428, allocations: 0 / 389.1 MB, free: 52.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001827/0.3446, allocations: 1.084 MB / 390.2 MB, free: 51.78 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006119/0.3452, allocations: 73.64 kB / 390.3 MB, free: 51.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003783/0.349, allocations: 1.953 MB / 392.2 MB, free: 50.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/0.3495, allocations: 0.9196 MB / 393.2 MB, free: 50.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001908/0.3497, allocations: 49.41 kB / 393.2 MB, free: 50.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.3498, allocations: 43.64 kB / 393.2 MB, free: 50.22 MB / 318.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3498, allocations: 0 / 393.2 MB, free: 50.22 MB / 318.1 MB Notification: Performance of Templates: time 0.0268/0.3766, allocations: 24.28 MB / 417.5 MB, free: 27.94 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches