Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001336/0.001336, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001506, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 58.84 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09994/0.1012, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004196/0.1054, allocations: 3.112 MB / 362 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002028/0.1075, allocations: 1.348 MB / 363.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001374/0.1076, allocations: 4 kB / 363.4 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004123/0.1081, allocations: 99.09 kB / 363.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002031/0.1083, allocations: 130.9 kB / 363.6 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007462/0.109, allocations: 421.5 kB / 364 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006714/0.1097, allocations: 0.8153 MB / 364.8 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001818/0.1099, allocations: 105.5 kB / 364.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004251/0.1103, allocations: 375 kB / 365.3 MB, free: 6.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001378/0.1117, allocations: 1.459 MB / 366.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.1118, allocations: 68 kB / 366.8 MB, free: 5.414 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002161/0.1121, allocations: 132 kB / 366.9 MB, free: 5.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002255/0.1123, allocations: 243.7 kB / 367.2 MB, free: 5.047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002935/0.1126, allocations: 354 kB / 367.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007805/0.1134, allocations: 0.9072 MB / 368.4 MB, free: 3.789 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1134, allocations: 4 kB / 368.4 MB, free: 3.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1134, allocations: 0 / 368.4 MB, free: 3.785 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.1134, allocations: 0 / 368.4 MB, free: 3.785 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.003445/0.1169, allocations: 1.34 MB / 369.8 MB, free: 2.395 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.1169, allocations: 8.031 kB / 369.8 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004804/0.1174, allocations: 104 kB / 369.9 MB, free: 2.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005803/0.118, allocations: 435.4 kB / 370.3 MB, free: 1.816 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.32e-05/0.1181, allocations: 33.38 kB / 370.3 MB, free: 1.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.535e-05/0.1182, allocations: 40.28 kB / 370.4 MB, free: 1.742 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.1196, allocations: 0.6381 MB / 371 MB, free: 1.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.064e-05/0.1196, allocations: 3.984 kB / 371 MB, free: 1.086 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.573e-05/0.1197, allocations: 19.94 kB / 371 MB, free: 1.066 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.1197, allocations: 8 kB / 371 MB, free: 1.059 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001897/0.1216, allocations: 0.6992 MB / 371.7 MB, free: 368 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1844/0.3061, allocations: 1.638 MB / 373.4 MB, free: 19.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002324/0.3084, allocations: 0.4906 MB / 373.9 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00148/0.3099, allocations: 294.9 kB / 374.2 MB, free: 19.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.706e-05/0.3101, allocations: 9.188 kB / 374.2 MB, free: 19.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002132/0.3122, allocations: 496.5 kB / 374.7 MB, free: 19.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 5.149e-06/0.3122, allocations: 2.031 kB / 374.7 MB, free: 19.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.01573/0.328, allocations: 2.802 MB / 377.5 MB, free: 18.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.3281, allocations: 90.73 kB / 377.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001672/0.3298, allocations: 0.9129 MB / 378.5 MB, free: 17.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001353/0.3299, allocations: 51.8 kB / 378.5 MB, free: 17.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002717/0.3302, allocations: 299.6 kB / 378.8 MB, free: 17.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002231/0.3304, allocations: 168 kB / 379 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004108/0.3309, allocations: 123.9 kB / 379.1 MB, free: 17.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.3311, allocations: 382.1 kB / 379.5 MB, free: 16.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/0.3327, allocations: 323.3 kB / 379.8 MB, free: 16.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001693/0.3344, allocations: 419.9 kB / 380.2 MB, free: 16.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002498/0.3369, allocations: 0.5148 MB / 380.7 MB, free: 16.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.3369, allocations: 0 / 380.7 MB, free: 16.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00498/0.3419, allocations: 0.9949 MB / 381.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.766e-05/0.342, allocations: 6.688 kB / 381.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.159e-05/0.3421, allocations: 2.219 kB / 381.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002015/0.3441, allocations: 0.5462 MB / 382.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009863/0.3451, allocations: 116.9 kB / 382.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007863/0.353, allocations: 4.729 MB / 387.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/0.3544, allocations: 228.9 kB / 387.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.813e-05/0.3546, allocations: 23.27 kB / 387.3 MB, free: 11.48 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.0004256/0.355, allocations: 270.2 kB / 387.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.3552, allocations: 70.16 kB / 387.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001785/0.3553, allocations: 104.2 kB / 387.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3554, allocations: 11.11 kB / 387.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.3554, allocations: 256 / 387.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.575e-06/0.3554, allocations: 3.75 kB / 387.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003051/0.3584, allocations: 1.423 MB / 389.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.3585, allocations: 0 / 389.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004955/0.359, allocations: 78.44 kB / 389.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008995/0.3599, allocations: 0.5166 MB / 389.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.684e-05/0.36, allocations: 29.38 kB / 389.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004454/0.3644, allocations: 4.349 MB / 394.2 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3644, allocations: 4.531 kB / 394.2 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003194/0.3676, allocations: 1.279 MB / 395.5 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003251/0.368, allocations: 201.7 kB / 395.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.3681, allocations: 20.31 kB / 395.7 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/0.3697, allocations: 275.1 kB / 396 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001239/0.3709, allocations: 0.5637 MB / 396.5 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.762e-05/0.371, allocations: 24.03 kB / 396.5 MB, free: 5.113 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006658/0.3717, allocations: 0.671 MB / 397.2 MB, free: 4.785 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3717, allocations: 0 / 397.2 MB, free: 4.785 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008144/0.3725, allocations: 186.7 kB / 397.4 MB, free: 4.758 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.0008896/0.3734, allocations: 392.3 kB / 397.8 MB, free: 4.559 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00226/0.3757, allocations: 0.9659 MB / 398.7 MB, free: 3.969 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3757, allocations: 1.312 kB / 398.7 MB, free: 3.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001329/0.3771, allocations: 0.674 MB / 399.4 MB, free: 3.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007014/0.3778, allocations: 80.5 kB / 399.5 MB, free: 3.457 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003803/0.3816, allocations: 1.872 MB / 401.4 MB, free: 2.363 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.3819, allocations: 0.9262 MB / 402.3 MB, free: 1.559 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002255/0.3822, allocations: 43.72 kB / 402.3 MB, free: 1.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.3823, allocations: 53.25 kB / 402.4 MB, free: 1.504 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3823, allocations: 0 / 402.4 MB, free: 1.504 MB / 302.1 MB Notification: Performance of Templates: time 0.0248/0.4071, allocations: 15.79 MB / 418.2 MB, free: 2.137 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches