Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002052/0.002052, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.002653/0.002653, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.559/1.559, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002075/0.002075, allocations: 47.92 kB / 347.2 MB, free: 10.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.341, allocations: 49.17 MB / 396.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004088/0.3451, allocations: 3 MB / 399.3 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002298/0.3474, allocations: 1.225 MB / 400.6 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002458/0.3476, allocations: 5.312 kB / 400.6 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004615/0.3481, allocations: 84.75 kB / 400.7 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002399/0.3483, allocations: 125.2 kB / 400.8 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.3493, allocations: 407.4 kB / 401.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009528/0.3503, allocations: 0.8084 MB / 402 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002028/0.3505, allocations: 79.52 kB / 402.1 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005849/0.3511, allocations: 368.1 kB / 402.4 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001941/0.353, allocations: 1.345 MB / 403.8 MB, free: 4.863 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001701/0.3532, allocations: 72 kB / 403.8 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002996/0.3535, allocations: 119 kB / 404 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002454/0.3537, allocations: 229.1 kB / 404.2 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003532/0.3541, allocations: 354 kB / 404.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.3553, allocations: 0.8747 MB / 405.4 MB, free: 4.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.3553, allocations: 0.5625 kB / 405.4 MB, free: 4.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3553, allocations: 0 / 405.4 MB, free: 4.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.3553, allocations: 1.375 kB / 405.4 MB, free: 4.145 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003957/0.3593, allocations: 1.409 MB / 406.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/0.3593, allocations: 13.58 kB / 406.8 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001215/0.3594, allocations: 80.58 kB / 406.9 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001684/0.3596, allocations: 78.11 kB / 407 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005493/0.3601, allocations: 382.5 kB / 407.4 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.002e-05/0.3602, allocations: 24.5 kB / 407.4 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.205e-05/0.3603, allocations: 49.06 kB / 407.4 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001799/0.3621, allocations: 1.154 MB / 408.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.3621, allocations: 1.375 kB / 408.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.725e-05/0.3622, allocations: 15.78 kB / 408.6 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.3622, allocations: 9.125 kB / 408.6 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002678/0.3649, allocations: 1.749 MB / 410.4 MB, free: 1.871 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004454/0.3693, allocations: 2.431 MB / 412.8 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001595/0.3709, allocations: 0.8911 MB / 413.7 MB, free: 140 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/0.3721, allocations: 0.7044 MB / 414.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.956e-05/0.3721, allocations: 4.906 kB / 414.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001745/0.3739, allocations: 0.8995 MB / 415.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 3.006e-06/0.3739, allocations: 0 / 415.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.012/0.3859, allocations: 5.418 MB / 420.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.446e-05/0.386, allocations: 85.11 kB / 420.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001401/0.3874, allocations: 0.918 MB / 421.7 MB, free: 9.668 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001177/0.3875, allocations: 45.69 kB / 421.7 MB, free: 9.617 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002788/0.3878, allocations: 296.8 kB / 422 MB, free: 9.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001908/0.388, allocations: 174.7 kB / 422.2 MB, free: 9.148 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002406/0.3882, allocations: 122.2 kB / 422.3 MB, free: 9.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002331/0.3884, allocations: 378.8 kB / 422.7 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001348/0.3898, allocations: 0.8524 MB / 423.6 MB, free: 7.793 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001392/0.3912, allocations: 0.9363 MB / 424.5 MB, free: 6.824 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002259/0.3934, allocations: 1.461 MB / 425.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3934, allocations: 0 / 425.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004092/0.3975, allocations: 2.494 MB / 428.4 MB, free: 2.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.3976, allocations: 8 kB / 428.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3976, allocations: 0 / 428.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002298/0.3999, allocations: 1.896 MB / 430.3 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005209/0.4004, allocations: 115.8 kB / 430.5 MB, free: 0.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008464/0.4088, allocations: 6.498 MB / 437 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001505/0.4103, allocations: 231.8 kB / 437.2 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.713e-05/0.4104, allocations: 20 kB / 437.2 MB, free: 9.797 MB / 350.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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005597/0.411, allocations: 268.1 kB / 437.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.4111, allocations: 75.53 kB / 437.5 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002186/0.4114, allocations: 98.17 kB / 437.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.4114, allocations: 8 kB / 437.6 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.4114, allocations: 0 / 437.6 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.4114, allocations: 3.984 kB / 437.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004516/0.4159, allocations: 3.054 MB / 440.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.4159, allocations: 0 / 440.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004752/0.4164, allocations: 87.88 kB / 440.8 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002086/0.4185, allocations: 1.865 MB / 442.7 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.672e-05/0.4185, allocations: 27.97 kB / 442.7 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007347/0.4259, allocations: 6.127 MB / 448.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4259, allocations: 0 / 448.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005222/0.4311, allocations: 3.229 MB / 452 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004645/0.4316, allocations: 131.4 kB / 452.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.4317, allocations: 24 kB / 452.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001552/0.4332, allocations: 271.6 kB / 452.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00136/0.4346, allocations: 0.5771 MB / 453 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.193e-05/0.4347, allocations: 31.95 kB / 453.1 MB, free: 9.551 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008285/0.4355, allocations: 0.6709 MB / 453.7 MB, free: 8.887 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4355, allocations: 0 / 453.7 MB, free: 8.887 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008608/0.4364, allocations: 187.9 kB / 453.9 MB, free: 8.703 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005439/0.4418, allocations: 3.804 MB / 457.7 MB, free: 4.852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003144/0.445, allocations: 1.883 MB / 459.6 MB, free: 2.945 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.445, allocations: 448 / 459.6 MB, free: 2.945 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001823/0.4468, allocations: 1.084 MB / 460.7 MB, free: 1.836 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007142/0.4475, allocations: 59.28 kB / 460.7 MB, free: 1.773 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01876/0.4663, allocations: 11.62 MB / 472.4 MB, free: 5.969 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006237/0.4669, allocations: 0.9144 MB / 473.3 MB, free: 5.027 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002475/0.4671, allocations: 47.25 kB / 473.3 MB, free: 4.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003115/0.4674, allocations: 203.4 kB / 473.5 MB, free: 4.781 MB / 382.1 MB Notification: Performance of SimCode: time 1.313e-06/0.4674, allocations: 0 / 473.5 MB, free: 4.781 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08392/0.5514, allocations: 31.26 MB / 0.493 GB, free: 5.426 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.87/14.43, allocations: 8.062 kB / 0.493 GB, free: 5.418 MB / 414.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 17.32418976491317]