Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001707/0.001707, allocations: 118.6 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001989/0.001989, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001741/0.001741, allocations: 63.89 kB / 373.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0976/0.09934, allocations: 53.32 MB / 426.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004347/0.1037, allocations: 3.123 MB / 429.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002161/0.1058, allocations: 1.344 MB / 431.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.106, allocations: 7.938 kB / 431.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004127/0.1064, allocations: 99.2 kB / 431.2 MB, free: 432 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002145/0.1066, allocations: 126.9 kB / 431.4 MB, free: 304 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1969/0.3035, allocations: 418.3 kB / 431.8 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001214/0.3047, allocations: 0.8174 MB / 432.6 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002073/0.3049, allocations: 64.98 kB / 432.6 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00065/0.3056, allocations: 373.3 kB / 433 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001579/0.3072, allocations: 1.474 MB / 434.5 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001513/0.3073, allocations: 69.47 kB / 434.6 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003232/0.3076, allocations: 134.3 kB / 434.7 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002381/0.3079, allocations: 232.9 kB / 434.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003316/0.3082, allocations: 355.6 kB / 435.3 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001283/0.3095, allocations: 0.9107 MB / 436.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3095, allocations: 1.156 kB / 436.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3095, allocations: 0.5312 kB / 436.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.727e-05/0.3095, allocations: 1.469 kB / 436.2 MB, free: 7.184 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.003806/0.3133, allocations: 1.371 MB / 437.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.3134, allocations: 10.92 kB / 437.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000108/0.3135, allocations: 75.22 kB / 437.6 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004854/0.314, allocations: 104.2 kB / 437.7 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006425/0.3146, allocations: 446.8 kB / 438.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.663e-05/0.3147, allocations: 28.16 kB / 438.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.671e-05/0.3148, allocations: 36.34 kB / 438.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.3162, allocations: 0.64 MB / 438.9 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.3162, allocations: 6.062 kB / 438.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.002e-05/0.3163, allocations: 15.66 kB / 438.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.3163, allocations: 11.78 kB / 438.9 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001851/0.3182, allocations: 0.6904 MB / 439.6 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003805/0.322, allocations: 1.66 MB / 441.3 MB, free: 5.137 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/0.3233, allocations: 486.8 kB / 441.7 MB, free: 4.941 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000738/0.324, allocations: 283.3 kB / 442 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.699e-05/0.3241, allocations: 5.938 kB / 442 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001069/0.3251, allocations: 490.1 kB / 442.5 MB, free: 4.633 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.815e-06/0.3252, allocations: 0 / 442.5 MB, free: 4.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.008242/0.3334, allocations: 2.812 MB / 445.3 MB, free: 3.199 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/0.3334, allocations: 84.64 kB / 445.4 MB, free: 3.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/0.3345, allocations: 0.917 MB / 446.3 MB, free: 2.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.3346, allocations: 52.12 kB / 446.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.3348, allocations: 304.6 kB / 446.6 MB, free: 2.469 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.335, allocations: 179.3 kB / 446.8 MB, free: 2.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002235/0.3352, allocations: 121.8 kB / 446.9 MB, free: 2.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.3353, allocations: 386.7 kB / 447.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008268/0.3361, allocations: 320.8 kB / 447.6 MB, free: 1.824 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008629/0.337, allocations: 419.1 kB / 448 MB, free: 1.613 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.3383, allocations: 0.5059 MB / 448.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.3383, allocations: 0 / 448.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002595/0.3409, allocations: 0.99 MB / 449.5 MB, free: 1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.3409, allocations: 13.98 kB / 449.6 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.3409, allocations: 2.75 kB / 449.6 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.3419, allocations: 0.5434 MB / 450.1 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005314/0.3425, allocations: 113.3 kB / 450.2 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006623/0.3491, allocations: 4.742 MB / 454.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/0.3507, allocations: 227.5 kB / 455.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.239e-05/0.3507, allocations: 34.34 kB / 455.2 MB, free: 12.69 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.0006073/0.3514, allocations: 252.4 kB / 455.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001646/0.3515, allocations: 83.73 kB / 455.5 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001948/0.3517, allocations: 100.3 kB / 455.6 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/0.3517, allocations: 6.047 kB / 455.6 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.3517, allocations: 4 kB / 455.6 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.3517, allocations: 4.234 kB / 455.6 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003274/0.355, allocations: 1.417 MB / 457.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.355, allocations: 1.312 kB / 457.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004815/0.3555, allocations: 91.45 kB / 457.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/0.3565, allocations: 0.5076 MB / 457.7 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.409e-05/0.3566, allocations: 34.73 kB / 457.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006031/0.3626, allocations: 4.359 MB / 462.1 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.3626, allocations: 5.25 kB / 462.1 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003695/0.3663, allocations: 1.26 MB / 463.3 MB, free: 6.348 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000504/0.3668, allocations: 213.4 kB / 463.5 MB, free: 6.148 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001315/0.367, allocations: 21.06 kB / 463.5 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001591/0.3685, allocations: 266.6 kB / 463.8 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0015/0.37, allocations: 0.5667 MB / 464.4 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.3701, allocations: 32.48 kB / 464.4 MB, free: 5.656 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009124/0.3711, allocations: 0.6745 MB / 465.1 MB, free: 5.328 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3711, allocations: 0 / 465.1 MB, free: 5.328 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001039/0.3721, allocations: 179.1 kB / 465.3 MB, free: 5.309 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.005084/0.3772, allocations: 2.086 MB / 467.3 MB, free: 3.941 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002436/0.3796, allocations: 0.9275 MB / 468.3 MB, free: 3.379 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.3796, allocations: 1.031 kB / 468.3 MB, free: 3.379 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001443/0.3811, allocations: 0.6497 MB / 468.9 MB, free: 2.938 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007109/0.3818, allocations: 83.7 kB / 469 MB, free: 2.879 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01312/0.3949, allocations: 6.801 MB / 475.8 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006213/0.3955, allocations: 0.9297 MB / 476.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002533/0.3958, allocations: 47.27 kB / 476.8 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003067/0.3961, allocations: 211.3 kB / 477 MB, free: 12.66 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3961, allocations: 0 / 477 MB, free: 12.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09122/0.4873, allocations: 22.22 MB / 499.2 MB, free: 6.566 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/13.8, allocations: 6.094 kB / 499.2 MB, free: 6.562 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 16.660032268147916]