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.001553/0.001553, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001382/0.001382, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.443/1.443, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001555/0.001555, allocations: 55.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09997/0.1015, allocations: 53.32 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005025/0.1066, allocations: 3.125 MB / 429.4 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002595/0.1091, allocations: 1.352 MB / 430.8 MB, free: 304 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002927/0.1094, allocations: 7.938 kB / 430.8 MB, free: 296 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005205/0.11, allocations: 103.1 kB / 430.9 MB, free: 192 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003553/0.1103, allocations: 126.9 kB / 431 MB, free: 64 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1889/0.2992, allocations: 406.3 kB / 431.4 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.3002, allocations: 0.819 MB / 432.2 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.3004, allocations: 70.38 kB / 432.3 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005698/0.301, allocations: 380.2 kB / 432.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001615/0.3026, allocations: 1.465 MB / 434.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001402/0.3027, allocations: 69.34 kB / 434.2 MB, free: 7.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000296/0.303, allocations: 136.5 kB / 434.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003092/0.3033, allocations: 236.3 kB / 434.6 MB, free: 7.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003378/0.3037, allocations: 353.2 kB / 434.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001141/0.3048, allocations: 0.9133 MB / 435.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.3048, allocations: 2.625 kB / 435.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3048, allocations: 1.125 kB / 435.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.56e-05/0.3048, allocations: 0 / 435.8 MB, free: 7.168 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.004252/0.3091, allocations: 1.371 MB / 437.2 MB, free: 6.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.3091, allocations: 10.59 kB / 437.2 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001258/0.3093, allocations: 75.22 kB / 437.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005215/0.3098, allocations: 105.4 kB / 437.4 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000667/0.3104, allocations: 444.9 kB / 437.8 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.453e-05/0.3105, allocations: 30.19 kB / 437.8 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.3106, allocations: 39.94 kB / 437.9 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.3123, allocations: 0.6343 MB / 438.5 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.3123, allocations: 5.141 kB / 438.5 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.258e-05/0.3124, allocations: 15.41 kB / 438.5 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.3124, allocations: 8.812 kB / 438.5 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00197/0.3143, allocations: 0.6955 MB / 439.2 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004174/0.3185, allocations: 1.653 MB / 440.9 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/0.3199, allocations: 495.5 kB / 441.4 MB, free: 4.809 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008247/0.3207, allocations: 282 kB / 441.7 MB, free: 4.695 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.464e-05/0.3208, allocations: 5.75 kB / 441.7 MB, free: 4.695 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001221/0.322, allocations: 489 kB / 442.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.204e-06/0.322, allocations: 0 / 442.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009635/0.3317, allocations: 2.814 MB / 445 MB, free: 3.066 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.3317, allocations: 81.98 kB / 445 MB, free: 2.973 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001166/0.3329, allocations: 0.9176 MB / 446 MB, free: 2.629 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001607/0.333, allocations: 48.73 kB / 446 MB, free: 2.586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.3332, allocations: 307.6 kB / 446.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.3334, allocations: 181 kB / 446.5 MB, free: 2.207 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002472/0.3336, allocations: 116.2 kB / 446.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.3337, allocations: 387.8 kB / 447 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009336/0.3347, allocations: 329 kB / 447.3 MB, free: 1.691 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009688/0.3356, allocations: 418.1 kB / 447.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001435/0.3371, allocations: 0.5048 MB / 448.2 MB, free: 1.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3371, allocations: 1.406 kB / 448.2 MB, free: 1.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002799/0.3399, allocations: 0.9827 MB / 449.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.3399, allocations: 9.906 kB / 449.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.3399, allocations: 6.5 kB / 449.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/0.3409, allocations: 0.5437 MB / 449.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005419/0.3415, allocations: 115.7 kB / 449.9 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006968/0.3484, allocations: 4.743 MB / 454.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.3501, allocations: 224.1 kB / 454.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.3502, allocations: 28.02 kB / 454.8 MB, free: 12.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.0006213/0.3509, allocations: 264.3 kB / 455.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001958/0.3511, allocations: 78.53 kB / 455.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002561/0.3513, allocations: 103.9 kB / 455.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.3513, allocations: 5.219 kB / 455.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.3513, allocations: 1.406 kB / 455.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.3513, allocations: 0 / 455.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003419/0.3548, allocations: 1.419 MB / 456.7 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/0.3548, allocations: 5.891 kB / 456.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005069/0.3553, allocations: 89.81 kB / 456.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001074/0.3563, allocations: 0.5084 MB / 457.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.028e-05/0.3564, allocations: 26.59 kB / 457.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006002/0.3624, allocations: 4.367 MB / 461.7 MB, free: 6.867 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.3624, allocations: 7.406 kB / 461.7 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00393/0.3664, allocations: 1.257 MB / 463 MB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000494/0.3669, allocations: 214.7 kB / 463.2 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.367, allocations: 20.41 kB / 463.2 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001786/0.3688, allocations: 270.4 kB / 463.5 MB, free: 5.793 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001437/0.3702, allocations: 0.5707 MB / 464 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.899e-05/0.3703, allocations: 24.28 kB / 464.1 MB, free: 5.434 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009406/0.3712, allocations: 0.6711 MB / 464.7 MB, free: 5.109 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3712, allocations: 0 / 464.7 MB, free: 5.109 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009584/0.3722, allocations: 186.8 kB / 464.9 MB, free: 5.082 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.00542/0.3776, allocations: 2.087 MB / 467 MB, free: 3.719 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002628/0.3802, allocations: 0.9314 MB / 467.9 MB, free: 3.148 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.3802, allocations: 1.312 kB / 467.9 MB, free: 3.148 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001569/0.3818, allocations: 0.651 MB / 468.6 MB, free: 2.707 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007791/0.3826, allocations: 75.86 kB / 468.7 MB, free: 2.652 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01468/0.3973, allocations: 6.802 MB / 475.5 MB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006138/0.3979, allocations: 0.9336 MB / 476.4 MB, free: 12.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002598/0.3981, allocations: 47.27 kB / 476.4 MB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003413/0.3985, allocations: 203.4 kB / 476.6 MB, free: 12.42 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3985, allocations: 0 / 476.6 MB, free: 12.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07001/0.4685, allocations: 22.23 MB / 498.9 MB, free: 6.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.09, allocations: 19.69 kB / 498.9 MB, free: 6.32 MB / 398.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.746583582134917]