Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_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_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001003/0.001003, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.203/1.203, allocations: 226.6 MB / 244.3 MB, free: 6.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006751/0.0006751, allocations: 104.2 kB / 296.4 MB, free: 6.789 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000188/0.000188, allocations: 8 kB / 356.2 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.177/0.1772, allocations: 51.29 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002039/0.1792, allocations: 2.652 MB / 410.1 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.1805, allocations: 1.235 MB / 411.4 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.1807, allocations: 8 kB / 411.4 MB, free: 23.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003276/0.181, allocations: 75.53 kB / 411.5 MB, free: 23.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.1812, allocations: 107.1 kB / 411.6 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005362/0.1817, allocations: 334 kB / 411.9 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003919/0.1821, allocations: 0.6904 MB / 412.6 MB, free: 22.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.1822, allocations: 80 kB / 412.7 MB, free: 22.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002828/0.1825, allocations: 327 kB / 413 MB, free: 22.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000878/0.1834, allocations: 1.552 MB / 414.5 MB, free: 20.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.806e-05/0.1835, allocations: 36 kB / 414.6 MB, free: 20.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001811/0.1837, allocations: 95.91 kB / 414.7 MB, free: 20.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.1838, allocations: 207.3 kB / 414.9 MB, free: 20.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.122e-05/0.1839, allocations: 125.3 kB / 415 MB, free: 20.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000366/0.1843, allocations: 0.6362 MB / 415.6 MB, free: 19.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1843, allocations: 4 kB / 415.6 MB, free: 19.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1843, allocations: 0 / 415.6 MB, free: 19.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1843, allocations: 0 / 415.6 MB, free: 19.66 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002799/0.1871, allocations: 1.325 MB / 416.9 MB, free: 18.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.752e-05/0.1872, allocations: 8.031 kB / 417 MB, free: 18.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003835/0.1875, allocations: 107 kB / 417.1 MB, free: 18.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003587/0.1879, allocations: 402.8 kB / 417.5 MB, free: 17.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.372e-05/0.188, allocations: 29 kB / 417.5 MB, free: 17.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.391e-05/0.188, allocations: 39.95 kB / 417.5 MB, free: 17.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.1892, allocations: 0.6497 MB / 418.2 MB, free: 17.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.1892, allocations: 3.906 kB / 418.2 MB, free: 17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-05/0.1893, allocations: 16 kB / 418.2 MB, free: 16.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.1893, allocations: 12 kB / 418.2 MB, free: 16.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001561/0.1909, allocations: 0.7172 MB / 418.9 MB, free: 16.26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002708/0.1936, allocations: 1.729 MB / 420.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.1947, allocations: 0.5134 MB / 421.2 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006717/0.1954, allocations: 317.5 kB / 421.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.992e-05/0.1954, allocations: 7.984 kB / 421.5 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009203/0.1964, allocations: 0.4905 MB / 422 MB, free: 13.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 1.794e-06/0.1964, allocations: 0 / 422 MB, free: 13.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.007287/0.2037, allocations: 3.027 MB / 425 MB, free: 9.902 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/0.2037, allocations: 89.06 kB / 425.1 MB, free: 9.797 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006017/0.2043, allocations: 0.9102 MB / 426 MB, free: 8.875 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.506e-05/0.2044, allocations: 49.69 kB / 426 MB, free: 8.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.2045, allocations: 304.3 kB / 426.3 MB, free: 8.516 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.866e-05/0.2046, allocations: 165.8 kB / 426.5 MB, free: 8.352 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.056e-05/0.2047, allocations: 19.92 kB / 426.5 MB, free: 8.332 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.52e-05/0.2047, allocations: 378.8 kB / 426.9 MB, free: 7.953 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007305/0.2055, allocations: 337.1 kB / 427.2 MB, free: 7.621 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000747/0.2062, allocations: 430.8 kB / 427.6 MB, free: 7.172 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006143/0.2069, allocations: 257.4 kB / 427.9 MB, free: 6.922 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2069, allocations: 4 kB / 427.9 MB, free: 6.918 MB / 298.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002212/0.2091, allocations: 1.014 MB / 428.9 MB, free: 5.887 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.2091, allocations: 12.03 kB / 428.9 MB, free: 5.875 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2091, allocations: 3.984 kB / 428.9 MB, free: 5.871 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007871/0.2099, allocations: 0.5256 MB / 429.5 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004364/0.2104, allocations: 123.8 kB / 429.6 MB, free: 5.215 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004301/0.2147, allocations: 4.47 MB / 434 MB, free: 460 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/0.216, allocations: 315.6 kB / 434.4 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.577e-05/0.216, allocations: 23.94 kB / 434.4 MB, free: 120 kB / 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 7,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003239/0.2164, allocations: 255.6 kB / 434.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.2165, allocations: 71.09 kB / 434.7 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001499/0.2166, allocations: 114.2 kB / 434.8 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.2166, allocations: 7.984 kB / 434.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2167, allocations: 0 / 434.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.2167, allocations: 7.953 kB / 434.8 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002619/0.2193, allocations: 1.423 MB / 436.2 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2193, allocations: 8.062 kB / 436.3 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004492/0.2198, allocations: 91.88 kB / 436.3 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000811/0.2206, allocations: 0.4904 MB / 436.8 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.682e-05/0.2207, allocations: 27.97 kB / 436.9 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004745/0.2254, allocations: 4.173 MB / 441 MB, free: 9.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2254, allocations: 0 / 441 MB, free: 9.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003045/0.2285, allocations: 1.307 MB / 442.3 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002695/0.2288, allocations: 212.1 kB / 442.5 MB, free: 7.504 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.683e-05/0.2289, allocations: 20 kB / 442.6 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001564/0.2304, allocations: 355.6 kB / 442.9 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001258/0.2317, allocations: 0.6393 MB / 443.6 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-05/0.2318, allocations: 31.97 kB / 443.6 MB, free: 6.465 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006411/0.2324, allocations: 0.6669 MB / 444.2 MB, free: 5.801 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2324, allocations: 3.938 kB / 444.3 MB, free: 5.797 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007739/0.2332, allocations: 172 kB / 444.4 MB, free: 5.629 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000816/0.234, allocations: 394.9 kB / 444.8 MB, free: 5.352 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002203/0.2363, allocations: 0.9967 MB / 445.8 MB, free: 4.328 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.2363, allocations: 0 / 445.8 MB, free: 4.328 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001172/0.2375, allocations: 0.6342 MB / 446.4 MB, free: 3.668 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005376/0.238, allocations: 69.14 kB / 446.5 MB, free: 3.605 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003807/0.2418, allocations: 2.257 MB / 448.8 MB, free: 1.309 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004479/0.2423, allocations: 0.9261 MB / 449.7 MB, free: 364 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.2424, allocations: 39.36 kB / 449.7 MB, free: 324 kB / 314.7 MB Notification: Performance of SimCode: time 5.31e-07/0.2425, allocations: 0 / 449.7 MB, free: 324 kB / 314.7 MB Notification: Performance of Templates: time 0.01547/0.2579, allocations: 13.99 MB / 463.7 MB, free: 2.32 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches