Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Friction.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.096/1.096, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.871e-05/1.869e-05, allocations: 0 / 148.2 MB, free: 6.121 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06544/0.06551, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2182/0.2837, allocations: 36.72 MB / 210.1 MB, free: 4.926 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002568/0.2841, allocations: 64.69 kB / 210.2 MB, free: 4.926 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06461/0.3487, allocations: 12.75 MB / 222.9 MB, free: 1.148 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3487, allocations: 0 / 222.9 MB, free: 1.148 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.698e-05/0.3488, allocations: 7.656 kB / 222.9 MB, free: 1.148 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.004898/0.3537, allocations: 1.114 MB / 224 MB, free: 408 kB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/0.3538, allocations: 15.22 kB / 224 MB, free: 404 kB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005547/0.3544, allocations: 83.94 kB / 224.1 MB, free: 364 kB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001581/0.356, allocations: 0.5796 MB / 224.7 MB, free: 20 kB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.565e-05/0.3561, allocations: 11.62 kB / 224.7 MB, free: 20 kB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00033/0.3564, allocations: 26.88 kB / 224.7 MB, free: 20 kB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006484/0.3629, allocations: 2.227 MB / 227 MB, free: 0 / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004714/0.3677, allocations: 1.439 MB / 228.4 MB, free: 15.8 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.477e-05/0.3678, allocations: 7.688 kB / 228.4 MB, free: 15.79 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002247/0.368, allocations: 11.61 kB / 228.4 MB, free: 15.79 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.699e-05/0.3681, allocations: 11.59 kB / 228.4 MB, free: 15.79 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01183/0.3799, allocations: 3.034 MB / 231.5 MB, free: 14.16 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003552/0.3835, allocations: 0.9853 MB / 232.5 MB, free: 13.38 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003686/0.3873, allocations: 0.835 MB / 233.3 MB, free: 12.71 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002806/0.3876, allocations: 11.3 kB / 233.3 MB, free: 12.71 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004724/0.3924, allocations: 1.179 MB / 234.5 MB, free: 11.69 MB / 186.7 MB Notification: Performance of pre-optimization done (n=44): time 6.963e-06/0.3924, allocations: 4 kB / 234.5 MB, free: 11.69 MB / 186.7 MB Notification: Performance of matching and sorting (n=46): time 0.02665/0.4191, allocations: 5.6 MB / 240.1 MB, free: 6.797 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001339/0.4193, allocations: 132.5 kB / 240.2 MB, free: 6.637 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003114/0.4225, allocations: 0.7474 MB / 241 MB, free: 6.016 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007116/0.4232, allocations: 49.69 kB / 241 MB, free: 5.961 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005377/0.4238, allocations: 310.7 kB / 241.3 MB, free: 5.656 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007765/0.4246, allocations: 153.9 kB / 241.5 MB, free: 5.508 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003807/0.4251, allocations: 8 kB / 241.5 MB, free: 5.5 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0002323/0.4253, allocations: 334.8 kB / 241.8 MB, free: 5.164 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004006/0.4294, allocations: 1.021 MB / 242.8 MB, free: 4.145 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004263/0.4337, allocations: 1.108 MB / 243.9 MB, free: 3.004 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00397/0.4378, allocations: 0.9464 MB / 244.9 MB, free: 2.059 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.678e-05/0.4378, allocations: 0 / 244.9 MB, free: 2.059 MB / 186.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.01534/0.4532, allocations: 3.158 MB / 248 MB, free: 14.88 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.4534, allocations: 63.44 kB / 248.1 MB, free: 14.81 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.154e-05/0.4534, allocations: 4 kB / 248.1 MB, free: 14.8 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03551/0.489, allocations: 11.42 MB / 259.5 MB, free: 3.363 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001765/0.4908, allocations: 131.8 kB / 259.7 MB, free: 3.234 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02582/0.5167, allocations: 7.359 MB / 267 MB, free: 11.62 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004856/0.5216, allocations: 299.7 kB / 267.3 MB, free: 11.32 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007467/0.5224, allocations: 112 kB / 267.4 MB, free: 11.21 MB / 218.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 2 * 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.00101/0.5235, allocations: 198.8 kB / 267.6 MB, free: 11 MB / 218.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01359/0.5371, allocations: 2.779 MB / 270.4 MB, free: 8.211 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007999/0.538, allocations: 87.09 kB / 270.5 MB, free: 8.125 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000559/0.5386, allocations: 94.47 kB / 270.6 MB, free: 8.031 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.685e-05/0.5386, allocations: 7.938 kB / 270.6 MB, free: 8.023 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/0.5387, allocations: 4 kB / 270.6 MB, free: 8.02 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.744e-05/0.5387, allocations: 3.984 kB / 270.6 MB, free: 8.016 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02255/0.5613, allocations: 4.358 MB / 274.9 MB, free: 3.609 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-05/0.5614, allocations: 128 / 274.9 MB, free: 3.609 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001554/0.563, allocations: 95.94 kB / 275 MB, free: 3.516 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03551/0.5985, allocations: 11.32 MB / 286.3 MB, free: 8.168 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005271/0.5991, allocations: 35.97 kB / 286.4 MB, free: 8.133 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0239/0.6231, allocations: 7.024 MB / 293.4 MB, free: 0.8516 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.464e-05/0.6231, allocations: 7.969 kB / 293.4 MB, free: 0.8438 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2167/0.8398, allocations: 4.158 MB / 297.6 MB, free: 82.31 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002244/0.8421, allocations: 399.3 kB / 298 MB, free: 82.21 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008302/0.843, allocations: 25.75 kB / 298 MB, free: 82.21 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00498/0.848, allocations: 305.5 kB / 298.3 MB, free: 82.21 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004385/0.8525, allocations: 0.6585 MB / 298.9 MB, free: 82.21 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006147/0.8532, allocations: 98.48 kB / 299 MB, free: 82.21 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001693/0.8549, allocations: 0.5854 MB / 299.6 MB, free: 82.12 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.754e-06/0.855, allocations: 2.875 kB / 299.6 MB, free: 82.12 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.002342/0.8574, allocations: 195.5 kB / 299.8 MB, free: 82.12 MB / 234.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: 11 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,$whenCondition2,stop2.mode,stop2.startBackward,stop2.startForward,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * 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.008908/0.8663, allocations: 3.566 MB / 303.4 MB, free: 81.16 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.004114/0.8705, allocations: 1.704 MB / 305.1 MB, free: 80.75 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/0.8706, allocations: 0 / 305.1 MB, free: 80.75 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002542/0.8732, allocations: 0.9809 MB / 306.1 MB, free: 80.25 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001316/0.8745, allocations: 61.47 kB / 306.1 MB, free: 80.23 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01277/0.8874, allocations: 2.136 MB / 308.3 MB, free: 79.68 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007459/0.8882, allocations: 0.9251 MB / 309.2 MB, free: 78.96 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007769/0.889, allocations: 213.8 kB / 309.4 MB, free: 78.8 MB / 234.7 MB Notification: Performance of SimCode: time 1.463e-06/0.889, allocations: 3.5 kB / 309.4 MB, free: 78.8 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.456/4.345, allocations: 16.33 MB / 325.7 MB, free: 65.39 MB / 234.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat