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.0008317/0.0008317, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0009133/0.0009133, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8374/0.8374, allocations: 177.1 MB / 204.3 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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 1.703e-06/1.703e-06, allocations: 0 / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.918e-05/2.088e-05, allocations: 14.16 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002926/0.002947, allocations: 2.906 MB / 327.5 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.004455, allocations: 1.308 MB / 328.8 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001562/0.004611, allocations: 7.938 kB / 328.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004138/0.005025, allocations: 107.1 kB / 328.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.005195, allocations: 122.9 kB / 329 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005783/0.005773, allocations: 443.9 kB / 329.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005449/0.006318, allocations: 0.8307 MB / 330.3 MB, free: 10.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.00646, allocations: 65.7 kB / 330.3 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004949/0.006955, allocations: 0.4914 MB / 330.8 MB, free: 9.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000924/0.007879, allocations: 1.416 MB / 332.2 MB, free: 8.242 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.633e-05/0.007956, allocations: 68 kB / 332.3 MB, free: 8.176 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.008133, allocations: 139.8 kB / 332.4 MB, free: 8.039 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001558/0.008289, allocations: 239.8 kB / 332.7 MB, free: 7.805 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001563/0.008445, allocations: 247.3 kB / 332.9 MB, free: 7.562 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006667/0.009112, allocations: 0.9815 MB / 333.9 MB, free: 6.578 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.009115, allocations: 3.984 kB / 333.9 MB, free: 6.574 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.009117, allocations: 0 / 333.9 MB, free: 6.574 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.009126, allocations: 0 / 333.9 MB, free: 6.574 MB / 298.7 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.001891/0.01102, allocations: 1.422 MB / 335.3 MB, free: 5.109 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.01105, allocations: 16.02 kB / 335.3 MB, free: 5.094 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.794e-05/0.01113, allocations: 74.72 kB / 335.4 MB, free: 5.012 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002557/0.01138, allocations: 104.4 kB / 335.5 MB, free: 4.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003895/0.01177, allocations: 389.3 kB / 335.9 MB, free: 4.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.367e-05/0.01181, allocations: 45.3 kB / 335.9 MB, free: 4.457 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-05/0.01187, allocations: 36.38 kB / 336 MB, free: 4.422 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008316/0.0127, allocations: 0.6268 MB / 336.6 MB, free: 3.781 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.01272, allocations: 12.14 kB / 336.6 MB, free: 3.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.491e-05/0.01276, allocations: 19.92 kB / 336.6 MB, free: 3.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.01277, allocations: 12 kB / 336.6 MB, free: 3.738 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009953/0.01376, allocations: 0.6856 MB / 337.3 MB, free: 3.051 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001885/0.01565, allocations: 1.472 MB / 338.8 MB, free: 1.508 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.01666, allocations: 483.3 kB / 339.3 MB, free: 1.016 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004983/0.01716, allocations: 285.6 kB / 339.6 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.824e-05/0.01721, allocations: 4 kB / 339.6 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007127/0.01792, allocations: 491.1 kB / 340 MB, free: 236 kB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 2.395e-06/0.01792, allocations: 0 / 340 MB, free: 236 kB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.004808/0.02273, allocations: 2.443 MB / 342.5 MB, free: 13.72 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.02277, allocations: 81.11 kB / 342.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006463/0.02342, allocations: 0.9258 MB / 343.5 MB, free: 12.69 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.393e-05/0.02348, allocations: 45.7 kB / 343.5 MB, free: 12.64 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.02364, allocations: 308.7 kB / 343.8 MB, free: 12.33 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.02376, allocations: 174.7 kB / 344 MB, free: 12.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.02391, allocations: 118.3 kB / 344.1 MB, free: 12.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.02403, allocations: 378.8 kB / 344.5 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004939/0.02452, allocations: 325.1 kB / 344.8 MB, free: 11.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005115/0.02504, allocations: 411 kB / 345.2 MB, free: 10.91 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007488/0.02578, allocations: 0.519 MB / 345.7 MB, free: 10.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.02579, allocations: 0 / 345.7 MB, free: 10.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001535/0.02732, allocations: 0.9834 MB / 346.7 MB, free: 9.363 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.02735, allocations: 10.97 kB / 346.7 MB, free: 9.355 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-06/0.02735, allocations: 4 kB / 346.7 MB, free: 9.352 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007185/0.02807, allocations: 0.549 MB / 347.3 MB, free: 8.793 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002663/0.02834, allocations: 115.8 kB / 347.4 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003841/0.03218, allocations: 4.494 MB / 351.9 MB, free: 3.926 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006601/0.03284, allocations: 227.8 kB / 352.1 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.007e-05/0.03288, allocations: 31.98 kB / 352.1 MB, free: 3.672 MB / 314.7 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.0002873/0.03317, allocations: 252.3 kB / 352.4 MB, free: 3.414 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.578e-05/0.03325, allocations: 79.47 kB / 352.5 MB, free: 3.336 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.385e-05/0.03335, allocations: 98.2 kB / 352.5 MB, free: 3.238 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.03335, allocations: 7.938 kB / 352.6 MB, free: 3.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.03336, allocations: 4.188 kB / 352.6 MB, free: 3.227 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.03336, allocations: 7.922 kB / 352.6 MB, free: 3.219 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001707/0.03507, allocations: 1.274 MB / 353.8 MB, free: 1.879 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.03507, allocations: 0 / 353.8 MB, free: 1.879 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002204/0.03529, allocations: 87.81 kB / 353.9 MB, free: 1.793 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005751/0.03587, allocations: 0.5139 MB / 354.4 MB, free: 1.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.872e-05/0.03591, allocations: 19.97 kB / 354.5 MB, free: 1.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003609/0.03951, allocations: 4.125 MB / 358.6 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.03952, allocations: 0 / 358.6 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001905/0.04142, allocations: 1.255 MB / 359.8 MB, free: 11.58 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002019/0.04162, allocations: 139.4 kB / 360 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.762e-05/0.04169, allocations: 23.98 kB / 360 MB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007132/0.0424, allocations: 267.6 kB / 360.3 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008658/0.04327, allocations: 0.581 MB / 360.8 MB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.342e-05/0.04331, allocations: 31.97 kB / 360.9 MB, free: 10.55 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005282/0.04384, allocations: 0.667 MB / 361.5 MB, free: 9.883 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.04384, allocations: 3.938 kB / 361.5 MB, free: 9.879 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006682/0.04451, allocations: 180 kB / 361.7 MB, free: 9.703 MB / 330.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: 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.002804/0.04731, allocations: 2.119 MB / 363.8 MB, free: 7.695 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001438/0.04875, allocations: 0.9249 MB / 364.8 MB, free: 6.746 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.04876, allocations: 0 / 364.8 MB, free: 6.746 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008173/0.04957, allocations: 0.6537 MB / 365.4 MB, free: 6.066 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004259/0.05, allocations: 86.7 kB / 365.5 MB, free: 5.988 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007729/0.05773, allocations: 6.672 MB / 372.2 MB, free: 15.13 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002288/0.05796, allocations: 322.9 kB / 372.5 MB, free: 14.79 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000149/0.05811, allocations: 51.25 kB / 372.5 MB, free: 14.74 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002046/0.05831, allocations: 212.4 kB / 372.7 MB, free: 14.54 MB / 346.7 MB Notification: Performance of SimCode: time 1.413e-06/0.05831, allocations: 0 / 372.7 MB, free: 14.54 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03312/0.09143, allocations: 21.47 MB / 394.2 MB, free: 9.148 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.854/7.945, allocations: 3.984 kB / 394.2 MB, free: 9.145 MB / 362.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/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: 9.679979551583529]