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.001286/0.001286, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.00145/0.00145, allocations: 212 kB / 23.74 MB, free: 4.656 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.451/1.451, allocations: 230.6 MB / 257.5 MB, free: 7.98 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.001645/0.001645, allocations: 47.92 kB / 377.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2803, allocations: 53.37 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005218/0.2855, allocations: 3.147 MB / 434.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002757/0.2882, allocations: 1.36 MB / 435.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003192/0.2886, allocations: 7.938 kB / 435.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005394/0.2891, allocations: 95.16 kB / 435.7 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003971/0.2895, allocations: 126.9 kB / 435.9 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.2905, allocations: 421.7 kB / 436.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00108/0.2916, allocations: 0.8231 MB / 437.1 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002144/0.2918, allocations: 77.69 kB / 437.2 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007431/0.2926, allocations: 379 kB / 437.5 MB, free: 432 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001846/0.2944, allocations: 1.475 MB / 439 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002191/0.2946, allocations: 72 kB / 439.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003349/0.295, allocations: 124 kB / 439.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000289/0.2953, allocations: 239.8 kB / 439.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004531/0.2957, allocations: 358.1 kB / 439.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001255/0.297, allocations: 0.9149 MB / 440.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.297, allocations: 0 / 440.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.297, allocations: 0 / 440.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.497e-05/0.297, allocations: 0 / 440.7 MB, free: 13.25 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.00416/0.3012, allocations: 1.439 MB / 442.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.3012, allocations: 8.031 kB / 442.2 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001375/0.3013, allocations: 74.72 kB / 442.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005187/0.3019, allocations: 108.4 kB / 442.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007219/0.3026, allocations: 386.1 kB / 442.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.904e-05/0.3026, allocations: 33.38 kB / 442.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.873e-05/0.3027, allocations: 36.38 kB / 442.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001564/0.3043, allocations: 0.634 MB / 443.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/0.3043, allocations: 7.891 kB / 443.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.229e-05/0.3044, allocations: 19.98 kB / 443.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.3044, allocations: 8 kB / 443.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001936/0.3063, allocations: 0.6973 MB / 444.1 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003826/0.3102, allocations: 1.616 MB / 445.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/0.3115, allocations: 484.8 kB / 446.2 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000831/0.3124, allocations: 289.6 kB / 446.5 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.055e-05/0.3124, allocations: 11.92 kB / 446.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001194/0.3136, allocations: 490.3 kB / 447 MB, free: 6.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.846e-06/0.3136, allocations: 0 / 447 MB, free: 6.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009016/0.3227, allocations: 2.442 MB / 449.4 MB, free: 4.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.509e-05/0.3227, allocations: 81.11 kB / 449.5 MB, free: 4.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001138/0.3239, allocations: 0.9142 MB / 450.4 MB, free: 3.219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001279/0.324, allocations: 45.7 kB / 450.5 MB, free: 3.168 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002625/0.3243, allocations: 304.6 kB / 450.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000222/0.3245, allocations: 182.6 kB / 451 MB, free: 2.684 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002492/0.3247, allocations: 122.2 kB / 451.1 MB, free: 2.559 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.3249, allocations: 390.7 kB / 451.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009035/0.3258, allocations: 325.1 kB / 451.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009549/0.3268, allocations: 415 kB / 452.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00147/0.3283, allocations: 0.513 MB / 452.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3283, allocations: 0 / 452.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002868/0.3311, allocations: 0.9797 MB / 453.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.3312, allocations: 10.75 kB / 453.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.3312, allocations: 4 kB / 453.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/0.3323, allocations: 0.5489 MB / 454.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000517/0.3328, allocations: 111.9 kB / 454.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00678/0.3396, allocations: 4.533 MB / 458.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001453/0.3411, allocations: 227.8 kB / 459.1 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/0.3412, allocations: 23.98 kB / 459.1 MB, free: 10.17 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.0005096/0.3417, allocations: 272.2 kB / 459.4 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/0.3419, allocations: 71.53 kB / 459.5 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002406/0.3421, allocations: 106.2 kB / 459.6 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.3421, allocations: 4 kB / 459.6 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.3421, allocations: 4.172 kB / 459.6 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.3421, allocations: 0 / 459.6 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00339/0.3455, allocations: 1.388 MB / 461 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.3455, allocations: 0 / 461 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004777/0.346, allocations: 83.88 kB / 461 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001151/0.3472, allocations: 0.51 MB / 461.6 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.3473, allocations: 35.83 kB / 461.6 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006193/0.3534, allocations: 4.152 MB / 465.7 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.3534, allocations: 8 kB / 465.8 MB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003685/0.3571, allocations: 1.253 MB / 467 MB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004772/0.3576, allocations: 143.4 kB / 467.1 MB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/0.3578, allocations: 23.94 kB / 467.2 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/0.3594, allocations: 275.6 kB / 467.4 MB, free: 1.477 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001369/0.3608, allocations: 0.5732 MB / 468 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.3609, allocations: 35.95 kB / 468 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000801/0.3617, allocations: 0.6631 MB / 468.7 MB, free: 216 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3617, allocations: 0 / 468.7 MB, free: 216 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008602/0.3625, allocations: 184 kB / 468.9 MB, free: 32 kB / 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.005189/0.3677, allocations: 2.089 MB / 471 MB, free: 14.03 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002448/0.3702, allocations: 0.9295 MB / 471.9 MB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.3702, allocations: 0 / 471.9 MB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001524/0.3717, allocations: 0.6487 MB / 472.6 MB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006972/0.3724, allocations: 74.95 kB / 472.6 MB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01409/0.3865, allocations: 6.814 MB / 479.4 MB, free: 5.344 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000683/0.3872, allocations: 0.9259 MB / 480.4 MB, free: 4.395 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002545/0.3874, allocations: 51.19 kB / 480.4 MB, free: 4.344 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003336/0.3878, allocations: 215.3 kB / 480.6 MB, free: 4.133 MB / 382.1 MB Notification: Performance of SimCode: time 1.463e-06/0.3878, allocations: 4 kB / 480.6 MB, free: 4.129 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07115/0.4589, allocations: 22.91 MB / 0.4917 GB, free: 13.31 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.78/14.24, allocations: 0 / 0.4917 GB, free: 13.31 MB / 414.1 MB " [Timeout remaining time 646] (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: 16.957349413773045]