Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00108/0.00108, allocations: 179.4 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.218/1.218, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006771/0.0006771, allocations: 95.8 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002955/0.0002955, allocations: 12 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1889/0.1892, allocations: 47.57 MB / 374.5 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002195/0.1914, allocations: 2.528 MB / 377.1 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.1928, allocations: 1.159 MB / 378.2 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.193, allocations: 8.219 kB / 378.2 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002802/0.1933, allocations: 53.5 kB / 378.3 MB, free: 42.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001398/0.1934, allocations: 107 kB / 378.4 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005953/0.194, allocations: 325.2 kB / 378.7 MB, free: 42.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004699/0.1945, allocations: 0.6853 MB / 379.4 MB, free: 41.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.1947, allocations: 82.05 kB / 379.5 MB, free: 41.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003334/0.195, allocations: 314.6 kB / 379.8 MB, free: 41.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.1962, allocations: 1.426 MB / 381.2 MB, free: 40.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.1963, allocations: 38.75 kB / 381.3 MB, free: 40.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001892/0.1965, allocations: 75.56 kB / 381.3 MB, free: 40.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.1967, allocations: 201.9 kB / 381.5 MB, free: 40.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.778e-05/0.1968, allocations: 126.6 kB / 381.6 MB, free: 40.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004214/0.1972, allocations: 0.6026 MB / 382.3 MB, free: 40.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1972, allocations: 1.375 kB / 382.3 MB, free: 40.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1972, allocations: 0 / 382.3 MB, free: 40.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.1973, allocations: 0 / 382.3 MB, free: 40.25 MB / 298.7 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.003176/0.2004, allocations: 1.32 MB / 383.6 MB, free: 39.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2005, allocations: 13.59 kB / 383.6 MB, free: 39.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.2006, allocations: 77.03 kB / 383.7 MB, free: 39.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.201, allocations: 404.6 kB / 384.1 MB, free: 38.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.544e-05/0.2011, allocations: 29.03 kB / 384.1 MB, free: 38.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.235e-05/0.2012, allocations: 34.91 kB / 384.1 MB, free: 38.92 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.2027, allocations: 1.17 MB / 385.3 MB, free: 37.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.2027, allocations: 3.906 kB / 385.3 MB, free: 37.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.926e-05/0.2028, allocations: 16 kB / 385.3 MB, free: 37.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.315e-06/0.2028, allocations: 8 kB / 385.3 MB, free: 37.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002124/0.205, allocations: 1.783 MB / 387.1 MB, free: 36.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003418/0.2084, allocations: 2.551 MB / 389.7 MB, free: 33.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.2097, allocations: 0.942 MB / 390.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000893/0.2106, allocations: 0.724 MB / 391.3 MB, free: 31.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.985e-05/0.2107, allocations: 8 kB / 391.3 MB, free: 31.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001192/0.2119, allocations: 0.9162 MB / 392.2 MB, free: 30.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 2.074e-06/0.2119, allocations: 0 / 392.2 MB, free: 30.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.009242/0.2212, allocations: 6.039 MB / 398.3 MB, free: 24.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.524e-05/0.2212, allocations: 85.05 kB / 398.4 MB, free: 24.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000886/0.2221, allocations: 0.9103 MB / 399.3 MB, free: 23.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.239e-05/0.2222, allocations: 45.7 kB / 399.3 MB, free: 23.63 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.2223, allocations: 304.3 kB / 399.6 MB, free: 23.33 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.2224, allocations: 165.9 kB / 399.8 MB, free: 23.17 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.271e-05/0.2225, allocations: 11.94 kB / 399.8 MB, free: 23.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.062e-05/0.2226, allocations: 386.7 kB / 400.2 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/0.2236, allocations: 0.8603 MB / 401 MB, free: 21.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.2246, allocations: 0.9519 MB / 402 MB, free: 20.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008677/0.2255, allocations: 0.7754 MB / 402.8 MB, free: 20.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2255, allocations: 4 kB / 402.8 MB, free: 20.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002863/0.2284, allocations: 2.483 MB / 405.2 MB, free: 17.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.2284, allocations: 8 kB / 405.2 MB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2284, allocations: 0 / 405.2 MB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001413/0.2298, allocations: 1.9 MB / 407.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004711/0.2303, allocations: 119.8 kB / 407.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005512/0.2358, allocations: 6.451 MB / 413.7 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001303/0.2371, allocations: 299.7 kB / 414 MB, free: 8.574 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.394e-05/0.2372, allocations: 23.98 kB / 414 MB, free: 8.551 MB / 298.7 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,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.000314/0.2375, allocations: 259.9 kB / 414.3 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.602e-05/0.2376, allocations: 71.16 kB / 414.4 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000143/0.2378, allocations: 106.1 kB / 414.5 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2378, allocations: 11.94 kB / 414.5 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2378, allocations: 0 / 414.5 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.2378, allocations: 8.016 kB / 414.5 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003091/0.2409, allocations: 3.127 MB / 417.6 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.2409, allocations: 4 kB / 417.6 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004499/0.2414, allocations: 87.92 kB / 417.7 MB, free: 4.797 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/0.2427, allocations: 1.865 MB / 419.6 MB, free: 2.922 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.308e-05/0.2428, allocations: 31.95 kB / 419.6 MB, free: 2.891 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005708/0.2485, allocations: 6.152 MB / 425.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.2485, allocations: 3.953 kB / 425.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004637/0.2532, allocations: 3.272 MB / 429 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002949/0.2535, allocations: 208.2 kB / 429.2 MB, free: 8.922 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.2536, allocations: 23.98 kB / 429.2 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001696/0.2553, allocations: 347.6 kB / 429.6 MB, free: 8.559 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001342/0.2567, allocations: 0.6432 MB / 430.2 MB, free: 7.914 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.512e-05/0.2567, allocations: 31.95 kB / 430.3 MB, free: 7.883 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006939/0.2575, allocations: 0.6709 MB / 430.9 MB, free: 7.215 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2575, allocations: 0 / 430.9 MB, free: 7.215 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007461/0.2582, allocations: 196 kB / 431.1 MB, free: 7.023 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002523/0.2585, allocations: 147.2 kB / 431.3 MB, free: 6.871 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002822/0.2613, allocations: 1.957 MB / 433.2 MB, free: 4.883 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.2613, allocations: 0 / 433.2 MB, free: 4.883 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001504/0.2628, allocations: 1.052 MB / 434.3 MB, free: 3.805 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005639/0.2634, allocations: 74.91 kB / 434.3 MB, free: 3.734 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004058/0.2675, allocations: 2.337 MB / 436.7 MB, free: 1.363 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004515/0.2679, allocations: 0.9297 MB / 437.6 MB, free: 420 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.2681, allocations: 35.42 kB / 437.6 MB, free: 384 kB / 314.7 MB Notification: Performance of SimCode: time 5.52e-07/0.2681, allocations: 3.938 kB / 437.7 MB, free: 380 kB / 314.7 MB Notification: Performance of Templates: time 0.01623/0.2843, allocations: 13.6 MB / 451.3 MB, free: 2.762 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches