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.001486/0.001486, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.001667/0.001667, allocations: 212 kB / 24.47 MB, free: 3.547 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.322/1.322, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 179] 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.001743/0.001743, allocations: 55.92 kB / 347.2 MB, free: 9.891 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2306, allocations: 49.16 MB / 396.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003314/0.2339, allocations: 2.765 MB / 399.1 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001629/0.2355, allocations: 1.168 MB / 400.3 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.2357, allocations: 4.344 kB / 400.3 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003316/0.236, allocations: 86.53 kB / 400.4 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001667/0.2362, allocations: 117 kB / 400.5 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007312/0.2369, allocations: 419.2 kB / 400.9 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006205/0.2375, allocations: 0.8075 MB / 401.7 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.2377, allocations: 71.52 kB / 401.8 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003815/0.238, allocations: 361.8 kB / 402.1 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001317/0.2394, allocations: 1.318 MB / 403.4 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001225/0.2395, allocations: 67.19 kB / 403.5 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000218/0.2397, allocations: 120.2 kB / 403.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.2399, allocations: 228.4 kB / 403.8 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002349/0.2401, allocations: 290.1 kB / 404.1 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008166/0.2409, allocations: 0.883 MB / 405 MB, free: 4.453 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2409, allocations: 1.719 kB / 405 MB, free: 4.453 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2409, allocations: 0 / 405 MB, free: 4.453 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.241, allocations: 0 / 405 MB, free: 4.453 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.003304/0.2443, allocations: 1.415 MB / 406.4 MB, free: 3.703 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.2443, allocations: 12.2 kB / 406.4 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.815e-05/0.2444, allocations: 83.67 kB / 406.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001269/0.2445, allocations: 78.97 kB / 406.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004859/0.245, allocations: 373.5 kB / 407 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.508e-05/0.245, allocations: 33.19 kB / 407 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.489e-05/0.2451, allocations: 38.83 kB / 407 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/0.2467, allocations: 1.157 MB / 408.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.2467, allocations: 1.219 kB / 408.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.086e-05/0.2468, allocations: 19.08 kB / 408.2 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.2468, allocations: 13.16 kB / 408.2 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002332/0.2491, allocations: 1.743 MB / 410 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003597/0.2527, allocations: 2.293 MB / 412.3 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/0.2541, allocations: 0.889 MB / 413.1 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009925/0.2551, allocations: 0.7014 MB / 413.8 MB, free: 320 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.122e-05/0.2552, allocations: 3.875 kB / 413.8 MB, free: 320 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001309/0.2565, allocations: 0.9012 MB / 414.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 2.335e-06/0.2565, allocations: 1.25 kB / 414.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.01122/0.2677, allocations: 5.426 MB / 420.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/0.2678, allocations: 85.11 kB / 420.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001222/0.269, allocations: 0.918 MB / 421.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.495e-05/0.2691, allocations: 45.7 kB / 421.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002527/0.2693, allocations: 308.6 kB / 421.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/0.2695, allocations: 166.7 kB / 421.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002447/0.2698, allocations: 118.2 kB / 421.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002082/0.27, allocations: 382.8 kB / 422.2 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001427/0.2714, allocations: 0.8486 MB / 423 MB, free: 8.109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001537/0.2729, allocations: 0.944 MB / 424 MB, free: 7.133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002297/0.2752, allocations: 1.465 MB / 425.4 MB, free: 5.637 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.2752, allocations: 4 kB / 425.4 MB, free: 5.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003994/0.2792, allocations: 2.479 MB / 427.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.2792, allocations: 8 kB / 427.9 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.2793, allocations: 4 kB / 427.9 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002268/0.2815, allocations: 1.904 MB / 429.8 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000548/0.2821, allocations: 111.8 kB / 429.9 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008525/0.2906, allocations: 6.471 MB / 436.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001607/0.2922, allocations: 231.7 kB / 436.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.368e-05/0.2923, allocations: 23.98 kB / 436.7 MB, free: 10.13 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.00047/0.2928, allocations: 264.2 kB / 436.9 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.2929, allocations: 67.58 kB / 437 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002127/0.2931, allocations: 106.2 kB / 437.1 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.2931, allocations: 4 kB / 437.1 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.2931, allocations: 0 / 437.1 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.2931, allocations: 7.984 kB / 437.1 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004355/0.2975, allocations: 2.945 MB / 440 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.2975, allocations: 0 / 440 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004836/0.298, allocations: 87.94 kB / 440.1 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002108/0.3001, allocations: 1.865 MB / 442 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.976e-05/0.3001, allocations: 23.97 kB / 442 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007263/0.3074, allocations: 6.1 MB / 448.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3074, allocations: 32 / 448.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005067/0.3125, allocations: 3.225 MB / 451.3 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000362/0.3128, allocations: 131.5 kB / 451.5 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.3129, allocations: 24 kB / 451.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00165/0.3146, allocations: 267.6 kB / 451.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001354/0.3159, allocations: 0.5849 MB / 452.3 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.514e-05/0.316, allocations: 27.95 kB / 452.4 MB, free: 10.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007484/0.3168, allocations: 0.6709 MB / 453 MB, free: 9.367 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3168, allocations: 0 / 453 MB, free: 9.367 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007312/0.3175, allocations: 195.9 kB / 453.2 MB, free: 9.176 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.005548/0.323, allocations: 3.815 MB / 457 MB, free: 5.312 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003184/0.3262, allocations: 1.871 MB / 458.9 MB, free: 3.418 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.3262, allocations: 4.062 kB / 458.9 MB, free: 3.414 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001862/0.3281, allocations: 1.076 MB / 460 MB, free: 2.312 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006622/0.3288, allocations: 67.33 kB / 460.1 MB, free: 2.242 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01922/0.348, allocations: 11.61 MB / 471.7 MB, free: 6.449 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003752/0.3483, allocations: 326.6 kB / 472 MB, free: 6.109 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000243/0.3486, allocations: 47.27 kB / 472 MB, free: 6.062 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003111/0.3489, allocations: 203.4 kB / 472.2 MB, free: 5.863 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3489, allocations: 0 / 472.2 MB, free: 5.863 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07227/0.4212, allocations: 26.51 MB / 498.8 MB, free: 11.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/14.03, allocations: 4 kB / 498.8 MB, free: 11.18 MB / 414.1 MB " [Timeout remaining time 646] (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.288519404362887]