Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.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.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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001745/0.001745, 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.001886/0.001886, 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.479/1.479, allocations: 227.7 MB / 247.7 MB, free: 10.31 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.001945/0.001945, allocations: 68.08 kB / 307.9 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1064, allocations: 50.54 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005034/0.1115, allocations: 3.115 MB / 361.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002519/0.1141, allocations: 1.348 MB / 362.9 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002372/0.1143, allocations: 4 kB / 362.9 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005082/0.1149, allocations: 99.16 kB / 363 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002796/0.1152, allocations: 122.9 kB / 363.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.1162, allocations: 414.7 kB / 363.5 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000887/0.1171, allocations: 0.8153 MB / 364.3 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002549/0.1174, allocations: 101.5 kB / 364.4 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006042/0.118, allocations: 371 kB / 364.8 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001682/0.1197, allocations: 1.475 MB / 366.3 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001455/0.1198, allocations: 68 kB / 366.3 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003116/0.1201, allocations: 132 kB / 366.5 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002642/0.1204, allocations: 231.7 kB / 366.7 MB, free: 5.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003744/0.1208, allocations: 358 kB / 367 MB, free: 5.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.1218, allocations: 0.8959 MB / 367.9 MB, free: 4.398 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1218, allocations: 0 / 367.9 MB, free: 4.398 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1219, allocations: 0 / 367.9 MB, free: 4.398 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.1219, allocations: 7.938 kB / 367.9 MB, free: 4.391 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003915/0.1258, allocations: 1.347 MB / 369.3 MB, free: 2.992 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.1258, allocations: 8.031 kB / 369.3 MB, free: 2.984 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005196/0.1264, allocations: 104 kB / 369.4 MB, free: 2.883 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006088/0.127, allocations: 431.4 kB / 369.8 MB, free: 2.418 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.146e-05/0.1271, allocations: 29.38 kB / 369.9 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.1272, allocations: 44.27 kB / 369.9 MB, free: 2.344 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.1287, allocations: 0.6343 MB / 370.5 MB, free: 1.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.1288, allocations: 0 / 370.5 MB, free: 1.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.422e-05/0.1288, allocations: 16 kB / 370.5 MB, free: 1.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.1289, allocations: 12 kB / 370.6 MB, free: 1.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002009/0.1309, allocations: 0.6992 MB / 371.3 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.188/0.3189, allocations: 1.654 MB / 372.9 MB, free: 19.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.3204, allocations: 495.2 kB / 373.4 MB, free: 19.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008963/0.3213, allocations: 299.2 kB / 373.7 MB, free: 19.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.384e-05/0.3214, allocations: 8.312 kB / 373.7 MB, free: 19.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001354/0.3228, allocations: 487.7 kB / 374.2 MB, free: 19.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.905e-06/0.3228, allocations: 0 / 374.2 MB, free: 19.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.009403/0.3322, allocations: 2.804 MB / 377 MB, free: 18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/0.3323, allocations: 89.67 kB / 377.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001101/0.3334, allocations: 0.9193 MB / 378 MB, free: 17.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.234e-05/0.3335, allocations: 46.67 kB / 378 MB, free: 17.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.3337, allocations: 305.9 kB / 378.3 MB, free: 17.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.3339, allocations: 170.3 kB / 378.5 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002473/0.3341, allocations: 120.6 kB / 378.6 MB, free: 17.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.3343, allocations: 380.4 kB / 379 MB, free: 16.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008733/0.3351, allocations: 326 kB / 379.3 MB, free: 16.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009541/0.3361, allocations: 410.8 kB / 379.7 MB, free: 16.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.3376, allocations: 0.52 MB / 380.2 MB, free: 16.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.3376, allocations: 1.125 kB / 380.2 MB, free: 16.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002784/0.3404, allocations: 0.9914 MB / 381.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.3404, allocations: 5.531 kB / 381.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.3404, allocations: 3.672 kB / 381.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.3415, allocations: 0.5476 MB / 381.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005233/0.3421, allocations: 112.2 kB / 381.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00575/0.3478, allocations: 4.733 MB / 386.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001977/0.3499, allocations: 224.2 kB / 386.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.35, allocations: 24.03 kB / 386.9 MB, free: 11.47 MB / 302.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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0007335/0.3507, allocations: 265.5 kB / 387.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001862/0.3509, allocations: 70.66 kB / 387.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002294/0.3512, allocations: 104.2 kB / 387.3 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.3512, allocations: 6.078 kB / 387.3 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.3512, allocations: 1.062 kB / 387.3 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.3512, allocations: 4.766 kB / 387.3 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003283/0.3545, allocations: 1.424 MB / 388.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.3545, allocations: 1.375 kB / 388.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004954/0.355, allocations: 81.56 kB / 388.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001/0.356, allocations: 0.5136 MB / 389.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.536e-05/0.3561, allocations: 26.28 kB / 389.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004764/0.3609, allocations: 4.372 MB / 393.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.3609, allocations: 4.812 kB / 393.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003472/0.3644, allocations: 1.258 MB / 395 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004048/0.3648, allocations: 208.7 kB / 395.2 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.365, allocations: 28.58 kB / 395.2 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001997/0.367, allocations: 267.1 kB / 395.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001314/0.3683, allocations: 0.5664 MB / 396 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.057e-05/0.3684, allocations: 37.45 kB / 396.1 MB, free: 5.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001/0.3694, allocations: 0.6656 MB / 396.7 MB, free: 4.926 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3694, allocations: 0 / 396.7 MB, free: 4.926 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001073/0.3705, allocations: 187.4 kB / 396.9 MB, free: 4.898 MB / 302.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001431/0.3719, allocations: 401.1 kB / 397.3 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00267/0.3746, allocations: 0.9805 MB / 398.3 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.3746, allocations: 3.938 kB / 398.3 MB, free: 4.105 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.376, allocations: 0.6195 MB / 398.9 MB, free: 3.676 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000749/0.3768, allocations: 77.64 kB / 399 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004568/0.3813, allocations: 1.941 MB / 400.9 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.3817, allocations: 0.9309 MB / 401.9 MB, free: 1.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.3819, allocations: 40.98 kB / 401.9 MB, free: 1.645 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3819, allocations: 0 / 401.9 MB, free: 1.645 MB / 302.1 MB Notification: Performance of Templates: time 0.02168/0.4036, allocations: 14.14 MB / 416 MB, free: 4.219 MB / 318.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches