Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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.0.0_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.001396/0.001397, allocations: 116.5 kB / 17.7 MB, free: 5.438 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.001567/0.001567, allocations: 187 kB / 18.63 MB, free: 4.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009615/0.0009619, allocations: 43.72 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08692/0.0879, allocations: 49.44 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00454/0.09248, allocations: 2.993 MB / 354.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002468/0.09499, allocations: 1.161 MB / 355.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002234/0.09524, allocations: 4 kB / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004803/0.09573, allocations: 87.23 kB / 355.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002192/0.09601, allocations: 115 kB / 355.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009003/0.09692, allocations: 410.2 kB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007307/0.09766, allocations: 0.8035 MB / 357.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001932/0.09786, allocations: 89.61 kB / 357.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004271/0.09829, allocations: 363.1 kB / 357.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001433/0.09974, allocations: 1.346 MB / 358.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.09986, allocations: 68 kB / 358.9 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000226/0.1001, allocations: 116 kB / 359 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002222/0.1003, allocations: 227.8 kB / 359.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003263/0.1007, allocations: 346.1 kB / 359.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008474/0.1015, allocations: 0.8722 MB / 360.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1015, allocations: 0 / 360.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1015, allocations: 0 / 360.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.1016, allocations: 4 kB / 360.5 MB, free: 10.7 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003426/0.105, allocations: 1.32 MB / 361.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.105, allocations: 8.031 kB / 361.8 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.1052, allocations: 80 kB / 361.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005859/0.1058, allocations: 435.4 kB / 362.3 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.193e-05/0.1058, allocations: 29.38 kB / 362.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.457e-05/0.1059, allocations: 44.22 kB / 362.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/0.1077, allocations: 1.158 MB / 363.5 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.1077, allocations: 3.938 kB / 363.5 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.402e-05/0.1078, allocations: 23.98 kB / 363.6 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.1078, allocations: 8 kB / 363.6 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002531/0.1103, allocations: 1.744 MB / 365.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003911/0.1143, allocations: 2.471 MB / 367.8 MB, free: 3.203 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001528/0.1158, allocations: 0.9104 MB / 368.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001048/0.1169, allocations: 0.7123 MB / 369.4 MB, free: 1.559 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.91e-05/0.1169, allocations: 7.984 kB / 369.4 MB, free: 1.551 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001353/0.1183, allocations: 0.9044 MB / 370.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.144e-06/0.1183, allocations: 0 / 370.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.1537/0.272, allocations: 5.773 MB / 376.1 MB, free: 25.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.2721, allocations: 88.97 kB / 376.2 MB, free: 25.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.2731, allocations: 0.918 MB / 377.1 MB, free: 25.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.029e-05/0.2732, allocations: 50.59 kB / 377.1 MB, free: 25.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.2734, allocations: 295.9 kB / 377.4 MB, free: 24.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.2735, allocations: 160.4 kB / 377.6 MB, free: 24.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00021/0.2737, allocations: 123.6 kB / 377.7 MB, free: 24.63 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.598e-05/0.2738, allocations: 379.6 kB / 378.1 MB, free: 24.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/0.2749, allocations: 0.8461 MB / 378.9 MB, free: 24.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001217/0.2762, allocations: 0.938 MB / 379.9 MB, free: 23.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002044/0.2782, allocations: 1.466 MB / 381.3 MB, free: 23.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.2782, allocations: 2.219 kB / 381.3 MB, free: 23.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003645/0.2819, allocations: 2.482 MB / 383.8 MB, free: 22.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.2819, allocations: 5.594 kB / 383.8 MB, free: 22.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.2819, allocations: 3.734 kB / 383.8 MB, free: 22.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001896/0.2838, allocations: 1.905 MB / 385.7 MB, free: 22.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004668/0.2843, allocations: 115.5 kB / 385.8 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005696/0.29, allocations: 6.703 MB / 392.5 MB, free: 16.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.2913, allocations: 232.9 kB / 392.8 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.473e-05/0.2913, allocations: 27.61 kB / 392.8 MB, free: 15.99 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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002916/0.2916, allocations: 251.3 kB / 393 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.575e-05/0.2917, allocations: 79.03 kB / 393.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000152/0.2919, allocations: 102.1 kB / 393.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2919, allocations: 4 kB / 393.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.2919, allocations: 7.75 kB / 393.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.2919, allocations: 4 kB / 393.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002935/0.2949, allocations: 3.097 MB / 396.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.2949, allocations: 3.438 kB / 396.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004233/0.2953, allocations: 87.92 kB / 396.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001275/0.2966, allocations: 1.865 MB / 398.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.634e-05/0.2967, allocations: 23.95 kB / 398.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006092/0.3028, allocations: 6.324 MB / 404.6 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.3028, allocations: 8.094 kB / 404.6 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003752/0.3065, allocations: 3.217 MB / 407.9 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000291/0.3068, allocations: 212.2 kB / 408.1 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.307, allocations: 27.55 kB / 408.1 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/0.3084, allocations: 263.6 kB / 408.3 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001266/0.3097, allocations: 0.5656 MB / 408.9 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-05/0.3098, allocations: 27.91 kB / 408.9 MB, free: 15.69 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006354/0.3104, allocations: 0.6787 MB / 409.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3104, allocations: 0 / 409.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007541/0.3112, allocations: 188 kB / 409.8 MB, free: 14.83 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.0002553/0.3114, allocations: 163.5 kB / 410 MB, free: 14.67 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002842/0.3143, allocations: 1.928 MB / 411.9 MB, free: 12.72 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.3143, allocations: 0 / 411.9 MB, free: 12.72 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001651/0.316, allocations: 1.089 MB / 413 MB, free: 11.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005477/0.3165, allocations: 73.8 kB / 413.1 MB, free: 11.54 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003763/0.3203, allocations: 1.946 MB / 415 MB, free: 9.574 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005104/0.3208, allocations: 0.9221 MB / 415.9 MB, free: 8.625 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001854/0.321, allocations: 43.28 kB / 416 MB, free: 8.582 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.3211, allocations: 43.42 kB / 416 MB, free: 8.539 MB / 318.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3211, allocations: 0 / 416 MB, free: 8.539 MB / 318.1 MB Notification: Performance of Templates: time 0.0324/0.3536, allocations: 24.29 MB / 440.3 MB, free: 296 kB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches