Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 106.4 kB / 17.58 MB, free: 5.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 184.2 kB / 18.5 MB, free: 4.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.354/2.354, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 55.92 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.166, allocations: 46.63 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.01004/0.1761, allocations: 2.972 MB / 330.4 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00422/0.1805, allocations: 1.213 MB / 331.6 MB, free: 168 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004748/0.181, allocations: 7.938 kB / 331.6 MB, free: 160 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005735/0.1816, allocations: 83.28 kB / 331.7 MB, free: 76 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004533/0.1821, allocations: 107 kB / 331.8 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001515/0.1836, allocations: 411.2 kB / 332.2 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00127/0.1849, allocations: 0.8035 MB / 333 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000352/0.1853, allocations: 93.84 kB / 333.1 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009887/0.1863, allocations: 363.1 kB / 333.4 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002289/0.1886, allocations: 1.338 MB / 334.7 MB, free: 12.97 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002018/0.1888, allocations: 68 kB / 334.8 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004106/0.1893, allocations: 112 kB / 334.9 MB, free: 12.79 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003055/0.1896, allocations: 231.8 kB / 335.2 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004342/0.19, allocations: 350.1 kB / 335.5 MB, free: 12.22 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.1912, allocations: 0.8566 MB / 336.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1912, allocations: 0 / 336.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.1912, allocations: 0 / 336.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.759e-05/0.1912, allocations: 0 / 336.3 MB, free: 11.36 MB / 286.1 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.004005/0.1952, allocations: 1.332 MB / 337.7 MB, free: 9.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.1953, allocations: 8.031 kB / 337.7 MB, free: 9.973 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001246/0.1954, allocations: 74.72 kB / 337.8 MB, free: 9.891 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001951/0.1956, allocations: 80 kB / 337.8 MB, free: 9.812 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006178/0.1962, allocations: 431.4 kB / 338.3 MB, free: 9.352 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.978e-05/0.1963, allocations: 29.38 kB / 338.3 MB, free: 9.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.1964, allocations: 36.38 kB / 338.3 MB, free: 9.285 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002017/0.1984, allocations: 1.157 MB / 339.5 MB, free: 8.113 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.1985, allocations: 7.906 kB / 339.5 MB, free: 8.105 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.647e-05/0.1986, allocations: 12 kB / 339.5 MB, free: 8.094 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.1986, allocations: 8 kB / 339.5 MB, free: 8.086 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002973/0.2016, allocations: 1.748 MB / 341.3 MB, free: 6.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00492/0.2065, allocations: 2.486 MB / 343.7 MB, free: 3.773 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001998/0.2085, allocations: 0.9069 MB / 344.7 MB, free: 2.848 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001157/0.2097, allocations: 0.7123 MB / 345.4 MB, free: 2.129 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.559e-05/0.2098, allocations: 4 kB / 345.4 MB, free: 2.125 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001674/0.2115, allocations: 0.9082 MB / 346.3 MB, free: 1.195 MB / 286.1 MB Notification: Performance of pre-optimization done (n=47): time 2.255e-06/0.2115, allocations: 0 / 346.3 MB, free: 1.195 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.01259/0.2241, allocations: 5.777 MB / 352.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.2242, allocations: 96.94 kB / 352.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0014/0.2257, allocations: 0.9103 MB / 353.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.2258, allocations: 49.69 kB / 353.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003042/0.2261, allocations: 292.3 kB / 353.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002098/0.2263, allocations: 169.8 kB / 353.6 MB, free: 9.715 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002927/0.2266, allocations: 122.1 kB / 353.7 MB, free: 9.586 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002241/0.2268, allocations: 374.8 kB / 354 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001442/0.2283, allocations: 0.8486 MB / 354.9 MB, free: 8.363 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001721/0.23, allocations: 0.9324 MB / 355.8 MB, free: 7.398 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003/0.2331, allocations: 1.461 MB / 357.3 MB, free: 5.906 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.814e-06/0.2331, allocations: 4 kB / 357.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.005178/0.2383, allocations: 2.486 MB / 359.8 MB, free: 3.398 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/0.2383, allocations: 7.125 kB / 359.8 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.2383, allocations: 4 kB / 359.8 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002317/0.2407, allocations: 1.916 MB / 361.7 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006631/0.2413, allocations: 107.9 kB / 361.8 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01153/0.2529, allocations: 6.699 MB / 368.5 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002408/0.2554, allocations: 231.7 kB / 368.7 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001396/0.2555, allocations: 23.98 kB / 368.8 MB, free: 10.1 MB / 318.1 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,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0007694/0.2563, allocations: 256 kB / 369 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002267/0.2566, allocations: 71.16 kB / 369.1 MB, free: 9.773 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002777/0.2569, allocations: 98.17 kB / 369.2 MB, free: 9.672 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.188e-05/0.2569, allocations: 8 kB / 369.2 MB, free: 9.664 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.2569, allocations: 0 / 369.2 MB, free: 9.664 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.2569, allocations: 7.922 kB / 369.2 MB, free: 9.656 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005629/0.2626, allocations: 3.09 MB / 372.3 MB, free: 6.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.2626, allocations: 8.125 kB / 372.3 MB, free: 6.488 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005149/0.2631, allocations: 87.86 kB / 372.4 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002156/0.2653, allocations: 1.861 MB / 374.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.786e-05/0.2654, allocations: 27.95 kB / 374.3 MB, free: 4.504 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3089/0.5742, allocations: 6.329 MB / 380.6 MB, free: 54.12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.5743, allocations: 1.375 kB / 380.6 MB, free: 54.12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009524/0.5839, allocations: 3.225 MB / 383.8 MB, free: 53.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008559/0.5848, allocations: 212.5 kB / 384 MB, free: 53.78 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002071/0.585, allocations: 26.42 kB / 384 MB, free: 53.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002769/0.5878, allocations: 262.7 kB / 384.3 MB, free: 53.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002553/0.5904, allocations: 0.5699 MB / 384.9 MB, free: 53.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001563/0.5906, allocations: 30.55 kB / 384.9 MB, free: 53.62 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001505/0.5921, allocations: 0.6745 MB / 385.6 MB, free: 53.38 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5921, allocations: 0 / 385.6 MB, free: 53.38 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001625/0.5937, allocations: 189.9 kB / 385.8 MB, free: 53.36 MB / 318.1 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,5), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009276/0.603, allocations: 3.818 MB / 389.6 MB, free: 52.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005411/0.6085, allocations: 1.941 MB / 391.5 MB, free: 51.51 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/0.6085, allocations: 1.031 kB / 391.5 MB, free: 51.51 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002775/0.6113, allocations: 1.079 MB / 392.6 MB, free: 51.08 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/0.6127, allocations: 73.33 kB / 392.7 MB, free: 51.05 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02508/0.6378, allocations: 11.72 MB / 404.4 MB, free: 40.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007918/0.6387, allocations: 0.922 MB / 405.3 MB, free: 39.3 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004413/0.6391, allocations: 43.28 kB / 405.4 MB, free: 39.26 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004397/0.6396, allocations: 203.4 kB / 405.6 MB, free: 39.06 MB / 318.1 MB Notification: Performance of SimCode: time 1.483e-06/0.6396, allocations: 0 / 405.6 MB, free: 39.06 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1008/0.7404, allocations: 30.25 MB / 435.8 MB, free: 8.762 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.36/20.1, allocations: 4.828 kB / 435.8 MB, free: 8.758 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches