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.001399/0.001398, allocations: 202.4 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 226.6 MB / 244.7 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008023/0.0008023, allocations: 105 kB / 296.8 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002226/0.0002226, allocations: 12 kB / 356.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1985/0.1988, allocations: 51.29 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002247/0.201, allocations: 2.648 MB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.2025, allocations: 1.242 MB / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.2027, allocations: 5.219 kB / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003276/0.203, allocations: 75.53 kB / 412 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.2032, allocations: 113.7 kB / 412.1 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005844/0.2038, allocations: 333.2 kB / 412.4 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004593/0.2042, allocations: 0.6942 MB / 413.1 MB, free: 22.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.2044, allocations: 73.5 kB / 413.2 MB, free: 22.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003696/0.2048, allocations: 327 kB / 413.5 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001047/0.2058, allocations: 1.552 MB / 415.1 MB, free: 20.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.852e-05/0.2059, allocations: 36 kB / 415.1 MB, free: 20.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001967/0.2061, allocations: 95.98 kB / 415.2 MB, free: 20.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001641/0.2063, allocations: 203.3 kB / 415.4 MB, free: 20.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.2065, allocations: 328 kB / 415.7 MB, free: 20 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004085/0.2069, allocations: 0.6439 MB / 416.4 MB, free: 19.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2069, allocations: 0 / 416.4 MB, free: 19.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.207, allocations: 0 / 416.4 MB, free: 19.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.207, allocations: 0 / 416.4 MB, free: 19.36 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.002813/0.2098, allocations: 1.313 MB / 417.7 MB, free: 17.99 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.2098, allocations: 12.03 kB / 417.7 MB, free: 17.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000386/0.2102, allocations: 111.9 kB / 417.8 MB, free: 17.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003718/0.2106, allocations: 423.5 kB / 418.2 MB, free: 17.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.582e-05/0.2106, allocations: 33.31 kB / 418.3 MB, free: 17.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.945e-05/0.2107, allocations: 44.28 kB / 418.3 MB, free: 17.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.2119, allocations: 0.6499 MB / 418.9 MB, free: 16.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.874e-05/0.212, allocations: 7.969 kB / 419 MB, free: 16.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.519e-05/0.212, allocations: 16 kB / 419 MB, free: 16.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.2121, allocations: 8 kB / 419 MB, free: 16.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.2136, allocations: 0.7172 MB / 419.7 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00284/0.2165, allocations: 1.733 MB / 421.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.2176, allocations: 0.5164 MB / 421.9 MB, free: 13.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007187/0.2183, allocations: 313.6 kB / 422.3 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.528e-05/0.2184, allocations: 7.984 kB / 422.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009504/0.2194, allocations: 498.4 kB / 422.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 2.835e-06/0.2194, allocations: 0 / 422.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.007333/0.2267, allocations: 3.038 MB / 425.8 MB, free: 9.562 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/0.2268, allocations: 93.03 kB / 425.9 MB, free: 9.453 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006993/0.2275, allocations: 0.918 MB / 426.8 MB, free: 8.523 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.735e-05/0.2276, allocations: 45.7 kB / 426.8 MB, free: 8.473 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.2277, allocations: 296.3 kB / 427.1 MB, free: 8.176 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.2278, allocations: 165.9 kB / 427.3 MB, free: 8.012 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.655e-05/0.2279, allocations: 16 kB / 427.3 MB, free: 7.996 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.211e-05/0.228, allocations: 386.7 kB / 427.7 MB, free: 7.609 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007381/0.2287, allocations: 333.1 kB / 428 MB, free: 7.281 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00075/0.2295, allocations: 423 kB / 428.4 MB, free: 6.844 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/0.2307, allocations: 0.5444 MB / 429 MB, free: 6.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2307, allocations: 0 / 429 MB, free: 6.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002311/0.233, allocations: 1.022 MB / 430 MB, free: 5.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.2331, allocations: 4 kB / 430 MB, free: 5.227 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.2331, allocations: 4 kB / 430 MB, free: 5.223 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008986/0.234, allocations: 0.5295 MB / 430.5 MB, free: 4.684 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000452/0.2344, allocations: 127.8 kB / 430.6 MB, free: 4.559 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004769/0.2392, allocations: 4.472 MB / 435.1 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001388/0.2406, allocations: 299.7 kB / 435.4 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.932e-05/0.2407, allocations: 27.98 kB / 435.4 MB, free: 15.47 MB / 314.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.0004234/0.2412, allocations: 256.1 kB / 435.7 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.2413, allocations: 79.03 kB / 435.8 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001867/0.2415, allocations: 102.2 kB / 435.9 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.2415, allocations: 8 kB / 435.9 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.2415, allocations: 7.938 kB / 435.9 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.2415, allocations: 3.984 kB / 435.9 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002998/0.2445, allocations: 1.434 MB / 437.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.2445, allocations: 3.938 kB / 437.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000446/0.245, allocations: 91.98 kB / 437.4 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009671/0.246, allocations: 0.4982 MB / 437.9 MB, free: 12.9 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.82e-05/0.2461, allocations: 23.95 kB / 437.9 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00503/0.2511, allocations: 4.169 MB / 442.1 MB, free: 8.41 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.2511, allocations: 4.031 kB / 442.1 MB, free: 8.406 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003284/0.2544, allocations: 1.296 MB / 443.4 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003485/0.2548, allocations: 212.1 kB / 443.6 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.2549, allocations: 24 kB / 443.6 MB, free: 6.828 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001537/0.2565, allocations: 347.6 kB / 444 MB, free: 6.488 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001429/0.2579, allocations: 0.6471 MB / 444.6 MB, free: 5.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.834e-05/0.258, allocations: 27.95 kB / 444.6 MB, free: 5.812 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006695/0.2587, allocations: 0.6669 MB / 445.3 MB, free: 5.148 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2587, allocations: 0 / 445.3 MB, free: 5.148 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007524/0.2595, allocations: 188 kB / 445.5 MB, free: 4.965 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.0008052/0.2603, allocations: 389.8 kB / 445.9 MB, free: 4.699 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002266/0.2625, allocations: 0.9886 MB / 446.9 MB, free: 3.684 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2626, allocations: 0 / 446.9 MB, free: 3.684 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.2638, allocations: 0.6302 MB / 447.5 MB, free: 3.027 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006473/0.2644, allocations: 82.77 kB / 447.6 MB, free: 2.949 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003901/0.2684, allocations: 2.245 MB / 449.8 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004681/0.2688, allocations: 0.9222 MB / 450.7 MB, free: 15.71 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.269, allocations: 43.41 kB / 450.8 MB, free: 15.67 MB / 330.7 MB Notification: Performance of SimCode: time 9.32e-07/0.269, allocations: 4 kB / 450.8 MB, free: 15.66 MB / 330.7 MB Notification: Performance of Templates: time 0.01626/0.2853, allocations: 13.97 MB / 464.8 MB, free: 1.691 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