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.002776/0.002776, allocations: 184.4 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.732/3.732, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001736/0.001735, allocations: 94.84 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006302/0.0006303, allocations: 12 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4162/0.4169, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.006024/0.423, allocations: 2.42 MB / 376.9 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004295/0.4274, allocations: 1.143 MB / 378.1 MB, free: 42.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006266/0.4281, allocations: 8.438 kB / 378.1 MB, free: 42.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006119/0.4287, allocations: 53.52 kB / 378.1 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.4298, allocations: 144.2 kB / 378.3 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002097/0.4319, allocations: 330.4 kB / 378.6 MB, free: 42.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001742/0.4337, allocations: 469.1 kB / 379.1 MB, free: 41.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004273/0.4342, allocations: 77.16 kB / 379.1 MB, free: 41.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001246/0.4355, allocations: 320.7 kB / 379.5 MB, free: 41.65 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003629/0.4392, allocations: 1.406 MB / 380.9 MB, free: 41.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004329/0.4397, allocations: 35.69 kB / 380.9 MB, free: 41.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005964/0.4404, allocations: 78.02 kB / 381 MB, free: 41.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005242/0.4409, allocations: 197.6 kB / 381.2 MB, free: 40.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005381/0.4415, allocations: 125.6 kB / 381.3 MB, free: 40.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001867/0.4434, allocations: 0.6012 MB / 381.9 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.4435, allocations: 0 / 381.9 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.656e-06/0.4435, allocations: 1.5 kB / 381.9 MB, free: 40.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.186e-05/0.4436, allocations: 4 kB / 381.9 MB, free: 40.46 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.009429/0.4531, allocations: 1.311 MB / 383.2 MB, free: 39.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.475e-05/0.4532, allocations: 13.05 kB / 383.2 MB, free: 39.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005916/0.4538, allocations: 74 kB / 383.3 MB, free: 39.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001375/0.4552, allocations: 403.4 kB / 383.7 MB, free: 39.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.4554, allocations: 28.47 kB / 383.7 MB, free: 39.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002824/0.4557, allocations: 40.14 kB / 383.8 MB, free: 39.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00489/0.4606, allocations: 1.161 MB / 384.9 MB, free: 38.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.038e-05/0.4607, allocations: 11.91 kB / 384.9 MB, free: 38.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001995/0.461, allocations: 19.98 kB / 384.9 MB, free: 38.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.906e-05/0.461, allocations: 8 kB / 385 MB, free: 38.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00658/0.4676, allocations: 1.771 MB / 386.7 MB, free: 36.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01112/0.4788, allocations: 2.559 MB / 389.3 MB, free: 33.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00413/0.483, allocations: 0.9401 MB / 390.2 MB, free: 32.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002044/0.4833, allocations: 4 kB / 390.2 MB, free: 32.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003701/0.487, allocations: 0.9162 MB / 391.1 MB, free: 31.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 8.726e-06/0.4871, allocations: 0 / 391.1 MB, free: 31.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.02818/0.5153, allocations: 6.026 MB / 397.2 MB, free: 25.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.744e-05/0.5154, allocations: 85.11 kB / 397.3 MB, free: 25.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002598/0.518, allocations: 0.9064 MB / 398.2 MB, free: 24.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003697/0.5185, allocations: 49.69 kB / 398.2 MB, free: 24.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003561/0.5189, allocations: 314.8 kB / 398.5 MB, free: 24.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004124/0.5193, allocations: 161.9 kB / 398.7 MB, free: 24.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/0.5194, allocations: 16 kB / 398.7 MB, free: 24.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.5196, allocations: 330.8 kB / 399 MB, free: 23.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003115/0.5227, allocations: 0.8681 MB / 399.9 MB, free: 23.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003272/0.5261, allocations: 0.948 MB / 400.8 MB, free: 22.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002807/0.5289, allocations: 0.7794 MB / 401.6 MB, free: 21.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.491e-05/0.529, allocations: 7.938 kB / 401.6 MB, free: 21.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.009141/0.5382, allocations: 2.452 MB / 404.1 MB, free: 18.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.033e-05/0.5383, allocations: 4 kB / 404.1 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.5383, allocations: 4 kB / 404.1 MB, free: 18.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004477/0.5428, allocations: 1.9 MB / 406 MB, free: 16.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/0.5444, allocations: 119.9 kB / 406.1 MB, free: 16.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01665/0.5611, allocations: 6.482 MB / 412.6 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004109/0.5653, allocations: 307.6 kB / 412.9 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003356/0.5657, allocations: 20 kB / 412.9 MB, free: 9.688 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.0009859/0.5667, allocations: 255.9 kB / 413.1 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003395/0.5671, allocations: 63.25 kB / 413.2 MB, free: 9.363 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004424/0.5676, allocations: 110.2 kB / 413.3 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-05/0.5676, allocations: 7.953 kB / 413.3 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.5676, allocations: 4 kB / 413.3 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.5677, allocations: 0 / 413.3 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.5783, allocations: 3.119 MB / 416.4 MB, free: 6.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.26e-05/0.5783, allocations: 3.984 kB / 416.4 MB, free: 6.043 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001413/0.5798, allocations: 95.94 kB / 416.5 MB, free: 5.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004318/0.5842, allocations: 1.873 MB / 418.4 MB, free: 4.066 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002885/0.5845, allocations: 19.97 kB / 418.4 MB, free: 4.047 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01591/0.6004, allocations: 6.192 MB / 424.6 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.431e-06/0.6005, allocations: 0 / 424.6 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01398/0.6145, allocations: 3.307 MB / 427.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009951/0.6156, allocations: 208.2 kB / 428.1 MB, free: 9.988 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004185/0.6161, allocations: 20 kB / 428.2 MB, free: 9.969 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005118/0.6212, allocations: 355.6 kB / 428.5 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0043/0.6256, allocations: 0.6431 MB / 429.1 MB, free: 8.977 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003759/0.626, allocations: 35.95 kB / 429.2 MB, free: 8.941 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001905/0.628, allocations: 0.667 MB / 429.8 MB, free: 8.277 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.002e-06/0.6281, allocations: 3.938 kB / 429.8 MB, free: 8.273 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002271/0.6303, allocations: 192 kB / 430 MB, free: 8.086 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.0007268/0.6312, allocations: 155.2 kB / 430.2 MB, free: 7.926 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.008034/0.6392, allocations: 1.942 MB / 432.1 MB, free: 5.953 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/0.6393, allocations: 384 / 432.1 MB, free: 5.953 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004358/0.6437, allocations: 1.064 MB / 433.2 MB, free: 4.863 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.645, allocations: 59.42 kB / 433.3 MB, free: 4.809 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.6566, allocations: 2.338 MB / 435.6 MB, free: 2.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001122/0.6578, allocations: 0.9336 MB / 436.5 MB, free: 1.473 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004556/0.6583, allocations: 39.42 kB / 436.6 MB, free: 1.434 MB / 314.7 MB Notification: Performance of SimCode: time 1.773e-06/0.6583, allocations: 0 / 436.6 MB, free: 1.434 MB / 314.7 MB Notification: Performance of Templates: time 0.04261/0.7009, allocations: 13.03 MB / 449.6 MB, free: 4.402 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/jenkins1/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