Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001779/0.001779, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002233/0.002233, allocations: 207.2 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.437/1.437, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 47.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2347, allocations: 53.36 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004554/0.2393, allocations: 2.898 MB / 434 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002255/0.2415, allocations: 1.297 MB / 435.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.2417, allocations: 7.938 kB / 435.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004494/0.2421, allocations: 95.2 kB / 435.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002249/0.2424, allocations: 126.9 kB / 435.5 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008338/0.2432, allocations: 438 kB / 435.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000852/0.244, allocations: 0.8192 MB / 436.7 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.2442, allocations: 69.7 kB / 436.8 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005408/0.2448, allocations: 375.1 kB / 437.2 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001773/0.2465, allocations: 1.481 MB / 438.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.2467, allocations: 68 kB / 438.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002361/0.2469, allocations: 135.9 kB / 438.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002731/0.2472, allocations: 235.8 kB / 439.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003183/0.2475, allocations: 302.5 kB / 439.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009933/0.2485, allocations: 0.9106 MB / 440.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.2485, allocations: 4 kB / 440.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2485, allocations: 0 / 440.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.2485, allocations: 0 / 440.3 MB, free: 13.41 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003739/0.2522, allocations: 1.435 MB / 441.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.2523, allocations: 15.97 kB / 441.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001429/0.2524, allocations: 78.7 kB / 441.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004902/0.2529, allocations: 104.4 kB / 441.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000689/0.2536, allocations: 390 kB / 442.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.287e-05/0.2537, allocations: 29.38 kB / 442.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.2538, allocations: 40.36 kB / 442.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.2553, allocations: 0.634 MB / 443 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.2553, allocations: 7.953 kB / 443 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-05/0.2554, allocations: 16 kB / 443 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.2554, allocations: 12 kB / 443 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001985/0.2574, allocations: 0.6895 MB / 443.7 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003543/0.2609, allocations: 1.48 MB / 445.2 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/0.2623, allocations: 481.6 kB / 445.7 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008388/0.2631, allocations: 285.6 kB / 446 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.238e-05/0.2632, allocations: 4 kB / 446 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001193/0.2644, allocations: 494.7 kB / 446.4 MB, free: 7.051 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.164e-06/0.2644, allocations: 0 / 446.4 MB, free: 7.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.008717/0.2731, allocations: 2.439 MB / 448.9 MB, free: 4.547 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.2732, allocations: 85.11 kB / 449 MB, free: 4.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000993/0.2742, allocations: 0.9219 MB / 449.9 MB, free: 3.512 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.874e-05/0.2743, allocations: 45.7 kB / 449.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002469/0.2745, allocations: 304.7 kB / 450.2 MB, free: 3.156 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.2747, allocations: 174.7 kB / 450.4 MB, free: 2.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002481/0.2749, allocations: 118.3 kB / 450.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.2751, allocations: 390.7 kB / 450.9 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009203/0.2761, allocations: 325.1 kB / 451.2 MB, free: 2.152 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009744/0.277, allocations: 411 kB / 451.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/0.2785, allocations: 0.5172 MB / 452.1 MB, free: 1.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.2785, allocations: 0 / 452.1 MB, free: 1.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002817/0.2813, allocations: 0.9871 MB / 453.1 MB, free: 184 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.2813, allocations: 7.938 kB / 453.1 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.2813, allocations: 4 kB / 453.1 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001126/0.2824, allocations: 0.5412 MB / 453.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005229/0.283, allocations: 119.8 kB / 453.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006417/0.2894, allocations: 4.491 MB / 458.3 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/0.2908, allocations: 232 kB / 458.5 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.528e-05/0.2909, allocations: 28 kB / 458.5 MB, free: 10.5 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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004092/0.2913, allocations: 264.2 kB / 458.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.2914, allocations: 79.52 kB / 458.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002139/0.2916, allocations: 106.2 kB / 459 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.2916, allocations: 7.938 kB / 459 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2916, allocations: 0 / 459 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.2916, allocations: 0 / 459 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003063/0.2947, allocations: 1.273 MB / 460.3 MB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.2947, allocations: 4 kB / 460.3 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004972/0.2952, allocations: 87.98 kB / 460.3 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009846/0.2962, allocations: 0.5021 MB / 460.8 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.39e-05/0.2963, allocations: 31.95 kB / 460.9 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005687/0.3019, allocations: 4.12 MB / 465 MB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3019, allocations: 3.938 kB / 465 MB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00363/0.3056, allocations: 1.261 MB / 466.3 MB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003802/0.306, allocations: 139.4 kB / 466.4 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001156/0.3061, allocations: 20 kB / 466.4 MB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/0.3076, allocations: 267.6 kB / 466.7 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001385/0.309, allocations: 0.5849 MB / 467.3 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.92e-05/0.3091, allocations: 27.95 kB / 467.3 MB, free: 1.359 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007772/0.3099, allocations: 0.667 MB / 468 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3099, allocations: 0 / 468 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008119/0.3107, allocations: 184 kB / 468.1 MB, free: 0.5195 MB / 366.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005228/0.3159, allocations: 2.123 MB / 470.3 MB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002383/0.3183, allocations: 0.9256 MB / 471.2 MB, free: 13.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.463e-06/0.3183, allocations: 4 kB / 471.2 MB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.3198, allocations: 0.6459 MB / 471.8 MB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006525/0.3205, allocations: 78.89 kB / 471.9 MB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/0.3333, allocations: 6.812 MB / 478.7 MB, free: 5.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003609/0.3337, allocations: 334.7 kB / 479.1 MB, free: 5.473 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000217/0.3339, allocations: 47.27 kB / 479.1 MB, free: 5.426 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000313/0.3342, allocations: 207.3 kB / 479.3 MB, free: 5.223 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3342, allocations: 0 / 479.3 MB, free: 5.223 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07987/0.4141, allocations: 21.43 MB / 0.489 GB, free: 15.87 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/13.21, allocations: 6.562 kB / 0.489 GB, free: 15.86 MB / 414.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.909542014007457]