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.001231/0.001231, allocations: 114.6 kB / 17.73 MB, free: 5.203 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.001299/0.001299, allocations: 188.2 kB / 18.67 MB, free: 4.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.442/1.442, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001422/0.001422, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0942/0.09563, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005247/0.1009, allocations: 2.976 MB / 377.6 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002779/0.1038, allocations: 1.209 MB / 378.8 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004882/0.1043, allocations: 4 kB / 378.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006188/0.105, allocations: 87.22 kB / 378.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004875/0.1055, allocations: 111 kB / 379 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001084/0.1066, allocations: 411.2 kB / 379.4 MB, free: 272 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2149/0.3215, allocations: 0.7988 MB / 380.2 MB, free: 9.285 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002709/0.3219, allocations: 105.7 kB / 380.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006433/0.3225, allocations: 364.2 kB / 380.7 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002145/0.3247, allocations: 1.339 MB / 382 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001458/0.3248, allocations: 67.56 kB / 382.1 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002773/0.3251, allocations: 123 kB / 382.2 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002478/0.3254, allocations: 222.2 kB / 382.4 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000324/0.3257, allocations: 351.4 kB / 382.8 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001104/0.3268, allocations: 0.8753 MB / 383.6 MB, free: 8.879 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3268, allocations: 0 / 383.6 MB, free: 8.879 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.3268, allocations: 6.266 kB / 383.6 MB, free: 8.875 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.947e-05/0.3269, allocations: 0 / 383.6 MB, free: 8.875 MB / 318.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.004121/0.331, allocations: 1.337 MB / 385 MB, free: 8.211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/0.3311, allocations: 17.22 kB / 385 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001238/0.3312, allocations: 75.77 kB / 385.1 MB, free: 8.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002159/0.3314, allocations: 81.92 kB / 385.2 MB, free: 8.125 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007355/0.3322, allocations: 437.8 kB / 385.6 MB, free: 7.832 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.957e-05/0.3322, allocations: 30.19 kB / 385.6 MB, free: 7.832 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.3324, allocations: 39.86 kB / 385.6 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002227/0.3346, allocations: 1.164 MB / 386.8 MB, free: 7.754 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.844e-05/0.3346, allocations: 5.547 kB / 386.8 MB, free: 7.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.65e-05/0.3347, allocations: 15.05 kB / 386.8 MB, free: 7.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.3347, allocations: 8.297 kB / 386.8 MB, free: 7.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00291/0.3377, allocations: 1.742 MB / 388.6 MB, free: 7.488 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004945/0.3426, allocations: 2.467 MB / 391 MB, free: 6.523 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001698/0.3443, allocations: 0.9023 MB / 392 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/0.3455, allocations: 0.7128 MB / 392.7 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.665e-05/0.3456, allocations: 8.125 kB / 392.7 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001529/0.3471, allocations: 0.9099 MB / 393.6 MB, free: 5.867 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.856e-06/0.3472, allocations: 0 / 393.6 MB, free: 5.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.01145/0.3586, allocations: 5.801 MB / 399.4 MB, free: 4.113 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.3587, allocations: 88.98 kB / 399.5 MB, free: 4.012 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/0.3598, allocations: 0.913 MB / 400.4 MB, free: 3.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.744e-05/0.3599, allocations: 51.2 kB / 400.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.3601, allocations: 298.7 kB / 400.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.3602, allocations: 175.3 kB / 400.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002103/0.3604, allocations: 117.8 kB / 401 MB, free: 3.137 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.933e-05/0.3605, allocations: 382.9 kB / 401.4 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.3617, allocations: 0.8458 MB / 402.2 MB, free: 2.512 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.3628, allocations: 0.9378 MB / 403.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/0.3644, allocations: 1.467 MB / 404.6 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3644, allocations: 0 / 404.6 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003542/0.368, allocations: 2.487 MB / 407.1 MB, free: 14.03 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.368, allocations: 8.625 kB / 407.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.368, allocations: 3.938 kB / 407.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001843/0.3699, allocations: 1.903 MB / 409 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005082/0.3704, allocations: 111.8 kB / 409.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00752/0.3779, allocations: 6.711 MB / 415.9 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/0.3795, allocations: 231 kB / 416.1 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.97e-05/0.3796, allocations: 24 kB / 416.1 MB, free: 4.793 MB / 334.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.000481/0.3801, allocations: 263.3 kB / 416.4 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.3802, allocations: 79.45 kB / 416.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001836/0.3804, allocations: 106.2 kB / 416.5 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.3804, allocations: 4 kB / 416.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.3804, allocations: 0 / 416.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.3804, allocations: 3.984 kB / 416.6 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004016/0.3844, allocations: 3.099 MB / 419.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.3845, allocations: 4 kB / 419.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000499/0.385, allocations: 87.19 kB / 419.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001879/0.3869, allocations: 1.861 MB / 421.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.661e-05/0.3869, allocations: 23.97 kB / 421.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006868/0.3938, allocations: 6.339 MB / 428 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3939, allocations: 3.094 kB / 428 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005056/0.3989, allocations: 3.227 MB / 431.2 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004621/0.3994, allocations: 212.6 kB / 431.4 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001708/0.3996, allocations: 24 kB / 431.4 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001769/0.4014, allocations: 267.6 kB / 431.7 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001289/0.4027, allocations: 0.5689 MB / 432.3 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.4028, allocations: 27.95 kB / 432.3 MB, free: 4.227 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008264/0.4036, allocations: 0.6709 MB / 433 MB, free: 3.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4036, allocations: 0 / 433 MB, free: 3.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009067/0.4045, allocations: 195.9 kB / 433.1 MB, free: 3.371 MB / 350.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.005314/0.4099, allocations: 3.814 MB / 437 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00322/0.4131, allocations: 1.924 MB / 438.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.4131, allocations: 4 kB / 438.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001866/0.415, allocations: 1.091 MB / 440 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008228/0.4158, allocations: 71.92 kB / 440 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0188/0.4347, allocations: 11.62 MB / 451.7 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006968/0.4354, allocations: 0.9259 MB / 452.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000262/0.4357, allocations: 39.28 kB / 452.6 MB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003304/0.4361, allocations: 203.4 kB / 452.8 MB, free: 15.43 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4361, allocations: 0 / 452.8 MB, free: 15.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07018/0.5063, allocations: 30.5 MB / 483.3 MB, free: 0.8438 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13.13, allocations: 11.83 kB / 483.3 MB, free: 0.832 MB / 398.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