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.001296/0.001296, allocations: 106.1 kB / 18.4 MB, free: 4.66 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.001299/0.001299, allocations: 186.4 kB / 19.33 MB, free: 3.738 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.376/1.376, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001461/0.001461, allocations: 47.94 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1214, allocations: 46.61 MB / 375.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00596/0.1274, allocations: 2.984 MB / 378.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003009/0.1304, allocations: 1.205 MB / 380 MB, free: 384 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004127/0.1309, allocations: 8 kB / 380 MB, free: 376 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005753/0.1315, allocations: 71.31 kB / 380.1 MB, free: 304 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004685/0.132, allocations: 122.9 kB / 380.2 MB, free: 180 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2683/0.4003, allocations: 411.5 kB / 380.6 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001659/0.4019, allocations: 0.7981 MB / 381.4 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003086/0.4023, allocations: 101.1 kB / 381.5 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007398/0.403, allocations: 357.5 kB / 381.8 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002442/0.4055, allocations: 1.343 MB / 383.2 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001735/0.4057, allocations: 67.66 kB / 383.2 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003265/0.406, allocations: 123.1 kB / 383.4 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003084/0.4063, allocations: 229.1 kB / 383.6 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003988/0.4067, allocations: 353.1 kB / 383.9 MB, free: 9.484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001285/0.408, allocations: 0.8678 MB / 384.8 MB, free: 9.379 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.408, allocations: 0 / 384.8 MB, free: 9.379 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.408, allocations: 0 / 384.8 MB, free: 9.379 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.4081, allocations: 0 / 384.8 MB, free: 9.379 MB / 318.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.003991/0.4121, allocations: 1.325 MB / 386.1 MB, free: 8.734 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.4121, allocations: 8.812 kB / 386.1 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001772/0.4123, allocations: 75.77 kB / 386.2 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007033/0.413, allocations: 427 kB / 386.6 MB, free: 8.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.172e-05/0.4131, allocations: 30.86 kB / 386.7 MB, free: 8.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.4132, allocations: 38.91 kB / 386.7 MB, free: 8.406 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002146/0.4153, allocations: 1.16 MB / 387.9 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.4154, allocations: 5.344 kB / 387.9 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.619e-05/0.4154, allocations: 21.84 kB / 387.9 MB, free: 8.164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.4155, allocations: 7.969 kB / 387.9 MB, free: 8.164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003141/0.4186, allocations: 1.745 MB / 389.6 MB, free: 7.848 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004904/0.4235, allocations: 2.478 MB / 392.1 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00186/0.4254, allocations: 0.9024 MB / 393 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001375/0.4268, allocations: 0.7159 MB / 393.7 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.005e-05/0.4269, allocations: 6.391 kB / 393.7 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001938/0.4288, allocations: 0.8991 MB / 394.6 MB, free: 6.227 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 3.397e-06/0.4289, allocations: 0 / 394.6 MB, free: 6.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.01314/0.442, allocations: 5.794 MB / 400.4 MB, free: 4.402 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.4421, allocations: 84.12 kB / 400.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001758/0.4438, allocations: 0.9133 MB / 401.4 MB, free: 3.875 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.444, allocations: 52.41 kB / 401.5 MB, free: 3.828 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003277/0.4443, allocations: 296.5 kB / 401.8 MB, free: 3.566 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/0.4445, allocations: 172.8 kB / 401.9 MB, free: 3.422 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003393/0.4449, allocations: 113.7 kB / 402 MB, free: 3.352 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.445, allocations: 382 kB / 402.4 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001519/0.4466, allocations: 0.846 MB / 403.3 MB, free: 2.727 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/0.4478, allocations: 0.9343 MB / 404.2 MB, free: 1.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001702/0.4495, allocations: 1.467 MB / 405.7 MB, free: 432 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.4495, allocations: 0 / 405.7 MB, free: 432 kB / 318.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003893/0.4534, allocations: 2.486 MB / 408.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.4534, allocations: 15.27 kB / 408.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.4535, allocations: 0 / 408.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0022/0.4557, allocations: 1.902 MB / 410.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005648/0.4563, allocations: 114.7 kB / 410.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00904/0.4653, allocations: 6.7 MB / 416.9 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.4668, allocations: 227.7 kB / 417.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.432e-05/0.4669, allocations: 23.98 kB / 417.1 MB, free: 4.711 MB / 334.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.0006079/0.4675, allocations: 267.3 kB / 417.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002236/0.4678, allocations: 67.81 kB / 417.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002336/0.468, allocations: 102.2 kB / 417.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/0.468, allocations: 4 kB / 417.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.468, allocations: 0 / 417.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.468, allocations: 3.984 kB / 417.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004771/0.4728, allocations: 3.091 MB / 420.7 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.4728, allocations: 6.312 kB / 420.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005083/0.4734, allocations: 91.05 kB / 420.7 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002035/0.4754, allocations: 1.864 MB / 422.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.737e-05/0.4755, allocations: 27.95 kB / 422.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007815/0.4833, allocations: 6.337 MB / 429 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.4834, allocations: 0 / 429 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005117/0.4885, allocations: 3.228 MB / 432.2 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000435/0.4889, allocations: 200.2 kB / 432.4 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.4891, allocations: 27.98 kB / 432.4 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001744/0.4908, allocations: 267.6 kB / 432.7 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001456/0.4923, allocations: 0.5655 MB / 433.3 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/0.4925, allocations: 27.97 kB / 433.3 MB, free: 4.137 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009357/0.4934, allocations: 0.6748 MB / 434 MB, free: 3.469 MB / 350.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4934, allocations: 0 / 434 MB, free: 3.469 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009565/0.4944, allocations: 188 kB / 434.1 MB, free: 3.285 MB / 350.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.0005129/0.4949, allocations: 151.1 kB / 434.3 MB, free: 3.129 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003419/0.4983, allocations: 1.917 MB / 436.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/0.4984, allocations: 448 / 436.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001693/0.5001, allocations: 1.053 MB / 437.3 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007299/0.5008, allocations: 69.48 kB / 437.3 MB, free: 40 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004758/0.5056, allocations: 1.998 MB / 439.3 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007498/0.5063, allocations: 0.926 MB / 440.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002214/0.5066, allocations: 47.36 kB / 440.3 MB, free: 13.01 MB / 366.1 MB Notification: Performance of SimCode: time 1.433e-06/0.5066, allocations: 0 / 440.3 MB, free: 13.01 MB / 366.1 MB Notification: Performance of Templates: time 0.02341/0.53, allocations: 13.69 MB / 454 MB, free: 15.31 MB / 382.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/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