Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_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.001236/0.001236, allocations: 108.5 kB / 17.05 MB, free: 6.09 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.001345/0.001345, allocations: 192 kB / 17.99 MB, free: 5.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 55.91 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.274, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004552/0.2786, allocations: 3 MB / 403.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002064/0.2807, allocations: 1.157 MB / 404.4 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.2809, allocations: 11.88 kB / 404.4 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003701/0.2813, allocations: 75.31 kB / 404.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001951/0.2815, allocations: 122.9 kB / 404.6 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007868/0.2823, allocations: 409.3 kB / 405 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007948/0.2831, allocations: 0.7997 MB / 405.8 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.2833, allocations: 97.58 kB / 405.9 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004758/0.2838, allocations: 359.1 kB / 406.2 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001368/0.2851, allocations: 1.342 MB / 407.6 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001095/0.2853, allocations: 68 kB / 407.6 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002079/0.2855, allocations: 119.9 kB / 407.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002122/0.2857, allocations: 227.8 kB / 408 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003111/0.286, allocations: 350 kB / 408.3 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009197/0.2869, allocations: 0.8747 MB / 409.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.287, allocations: 0 / 409.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.287, allocations: 4 kB / 409.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.287, allocations: 4 kB / 409.2 MB, free: 15.82 MB / 334.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.003723/0.2907, allocations: 1.347 MB / 410.5 MB, free: 14.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.2908, allocations: 12.03 kB / 410.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000133/0.2909, allocations: 74.72 kB / 410.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001556/0.2911, allocations: 80.47 kB / 410.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007804/0.2919, allocations: 432.1 kB / 411.1 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.699e-05/0.2919, allocations: 29.38 kB / 411.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.32e-05/0.292, allocations: 40.33 kB / 411.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001815/0.2939, allocations: 1.153 MB / 412.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.2939, allocations: 8 kB / 412.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-05/0.294, allocations: 19.98 kB / 412.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.294, allocations: 8 kB / 412.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002716/0.2967, allocations: 1.74 MB / 414.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00427/0.301, allocations: 2.479 MB / 416.6 MB, free: 8.215 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001596/0.3026, allocations: 0.903 MB / 417.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001099/0.3037, allocations: 0.7162 MB / 418.2 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.738e-05/0.3038, allocations: 12.47 kB / 418.2 MB, free: 6.559 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001443/0.3053, allocations: 0.9044 MB / 419.1 MB, free: 5.633 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 2.825e-06/0.3053, allocations: 0 / 419.1 MB, free: 5.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.011/0.3163, allocations: 5.8 MB / 424.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.3164, allocations: 89.05 kB / 425 MB, free: 15.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.3175, allocations: 0.918 MB / 425.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.895e-05/0.3176, allocations: 45.7 kB / 426 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002229/0.3178, allocations: 300.7 kB / 426.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001595/0.318, allocations: 174.6 kB / 426.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002342/0.3182, allocations: 118.3 kB / 426.6 MB, free: 14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.3184, allocations: 378.8 kB / 426.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.3197, allocations: 0.8486 MB / 427.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001272/0.3209, allocations: 0.9324 MB / 428.7 MB, free: 11.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002038/0.323, allocations: 1.469 MB / 430.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.323, allocations: 4 kB / 430.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003658/0.3267, allocations: 2.492 MB / 432.7 MB, free: 7.797 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.3267, allocations: 4 kB / 432.7 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.3267, allocations: 4 kB / 432.7 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00207/0.3288, allocations: 1.904 MB / 434.6 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005072/0.3293, allocations: 107.9 kB / 434.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008172/0.3375, allocations: 6.716 MB / 441.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00148/0.339, allocations: 223.8 kB / 441.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.3391, allocations: 20 kB / 441.7 MB, free: 14.51 MB / 366.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.0004833/0.3396, allocations: 255.9 kB / 441.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000169/0.3398, allocations: 79.52 kB / 442 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002182/0.34, allocations: 106.2 kB / 442.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.3401, allocations: 8 kB / 442.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3401, allocations: 4.125 kB / 442.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.3401, allocations: 3.984 kB / 442.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004397/0.3445, allocations: 3.095 MB / 445.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.3445, allocations: 4 kB / 445.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004985/0.345, allocations: 83.94 kB / 445.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002068/0.3471, allocations: 1.865 MB / 447.1 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.782e-05/0.3472, allocations: 27.91 kB / 447.2 MB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006828/0.354, allocations: 6.331 MB / 453.5 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3541, allocations: 0 / 453.5 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004825/0.3589, allocations: 3.229 MB / 456.7 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004124/0.3593, allocations: 216.6 kB / 456.9 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.3595, allocations: 20 kB / 457 MB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001669/0.3612, allocations: 267.6 kB / 457.2 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001424/0.3626, allocations: 0.5616 MB / 457.8 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.31e-05/0.3627, allocations: 35.95 kB / 457.8 MB, free: 13.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007482/0.3635, allocations: 0.6747 MB / 458.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3635, allocations: 0 / 458.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008191/0.3643, allocations: 191.9 kB / 458.7 MB, free: 13.03 MB / 382.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.00533/0.3696, allocations: 3.823 MB / 462.5 MB, free: 9.164 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003116/0.3728, allocations: 1.93 MB / 464.4 MB, free: 7.211 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.3728, allocations: 0 / 464.4 MB, free: 7.211 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001839/0.3747, allocations: 1.087 MB / 465.5 MB, free: 6.098 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007842/0.3755, allocations: 69.28 kB / 465.6 MB, free: 6.027 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01774/0.3932, allocations: 11.62 MB / 477.2 MB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005538/0.3938, allocations: 0.9182 MB / 478.1 MB, free: 9.285 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002272/0.3941, allocations: 47.27 kB / 478.2 MB, free: 9.238 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002829/0.3943, allocations: 203.4 kB / 478.4 MB, free: 9.043 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3944, allocations: 0 / 478.4 MB, free: 9.043 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06532/0.4597, allocations: 30.52 MB / 0.497 GB, free: 10.67 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.87, allocations: 15.5 kB / 0.497 GB, free: 10.66 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches