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.001342/0.001342, allocations: 116.7 kB / 20.43 MB, free: 1.457 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.001395/0.001395, allocations: 214.3 kB / 23.75 MB, free: 4.672 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.433/1.433, allocations: 230.5 MB / 257.4 MB, free: 7.988 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.002105/0.002105, allocations: 63.89 kB / 377.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2764, allocations: 53.4 MB / 431.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004894/0.2813, allocations: 3.154 MB / 434.3 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002424/0.2838, allocations: 1.352 MB / 435.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001973/0.2839, allocations: 11.94 kB / 435.7 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004701/0.2844, allocations: 99.2 kB / 435.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002513/0.2847, allocations: 122.9 kB / 435.9 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000943/0.2856, allocations: 426.1 kB / 436.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008945/0.2865, allocations: 0.8309 MB / 437.1 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001755/0.2867, allocations: 73.69 kB / 437.2 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00056/0.2872, allocations: 375.1 kB / 437.6 MB, free: 232 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001803/0.289, allocations: 1.475 MB / 439.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000121/0.2892, allocations: 72 kB / 439.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003011/0.2895, allocations: 124 kB / 439.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002477/0.2897, allocations: 239.8 kB / 439.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003272/0.29, allocations: 362.1 kB / 439.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009894/0.291, allocations: 0.911 MB / 440.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.291, allocations: 0 / 440.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.291, allocations: 0 / 440.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.526e-05/0.2911, allocations: 0 / 440.8 MB, free: 13.05 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.003634/0.2947, allocations: 1.443 MB / 442.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.2947, allocations: 8.031 kB / 442.2 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001157/0.2948, allocations: 78.7 kB / 442.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004644/0.2953, allocations: 104.4 kB / 442.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00065/0.296, allocations: 382.1 kB / 442.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.733e-05/0.296, allocations: 29.38 kB / 442.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.2961, allocations: 44.36 kB / 442.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.2976, allocations: 0.634 MB / 443.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.2976, allocations: 3.953 kB / 443.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.442e-05/0.2976, allocations: 16 kB / 443.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.2976, allocations: 8 kB / 443.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001889/0.2995, allocations: 0.7012 MB / 444.2 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003581/0.3031, allocations: 1.616 MB / 445.8 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.3044, allocations: 484.8 kB / 446.3 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008025/0.3052, allocations: 285.6 kB / 446.6 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.861e-05/0.3053, allocations: 11.92 kB / 446.6 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001148/0.3065, allocations: 494.2 kB / 447 MB, free: 6.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.874e-06/0.3065, allocations: 0 / 447 MB, free: 6.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.008174/0.3146, allocations: 2.44 MB / 449.5 MB, free: 4.043 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.3147, allocations: 81.11 kB / 449.6 MB, free: 3.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000993/0.3157, allocations: 0.9142 MB / 450.5 MB, free: 3.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.324e-05/0.3158, allocations: 49.69 kB / 450.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000259/0.316, allocations: 304.7 kB / 450.8 MB, free: 2.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/0.3162, allocations: 182.6 kB / 451 MB, free: 2.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002342/0.3164, allocations: 130.2 kB / 451.1 MB, free: 2.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002348/0.3167, allocations: 382.7 kB / 451.5 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008784/0.3175, allocations: 317.1 kB / 451.8 MB, free: 1.652 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009234/0.3185, allocations: 418.9 kB / 452.2 MB, free: 1.219 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/0.3199, allocations: 0.5147 MB / 452.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.3199, allocations: 4 kB / 452.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002694/0.3226, allocations: 0.9796 MB / 453.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.3226, allocations: 7.938 kB / 453.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.3226, allocations: 4 kB / 453.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/0.3237, allocations: 0.5452 MB / 454.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005122/0.3242, allocations: 115.8 kB / 454.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006473/0.3307, allocations: 4.524 MB / 458.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001374/0.3321, allocations: 231.8 kB / 459.1 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.819e-05/0.3321, allocations: 24 kB / 459.2 MB, free: 9.969 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.0004166/0.3325, allocations: 264.2 kB / 459.4 MB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.3327, allocations: 71.53 kB / 459.5 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000197/0.3329, allocations: 106.2 kB / 459.6 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3329, allocations: 4 kB / 459.6 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3329, allocations: 0 / 459.6 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.3329, allocations: 4 kB / 459.6 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002958/0.3358, allocations: 1.384 MB / 461 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.3358, allocations: 4 kB / 461 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004547/0.3363, allocations: 91.8 kB / 461.1 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009358/0.3372, allocations: 0.5061 MB / 461.6 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.658e-05/0.3373, allocations: 23.97 kB / 461.6 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00545/0.3427, allocations: 4.16 MB / 465.8 MB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.3427, allocations: 4 kB / 465.8 MB, free: 3.016 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003329/0.3461, allocations: 1.257 MB / 467 MB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003464/0.3464, allocations: 143.8 kB / 467.2 MB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.3465, allocations: 20 kB / 467.2 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001537/0.3481, allocations: 279.6 kB / 467.5 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00136/0.3494, allocations: 0.581 MB / 468 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.04e-05/0.3495, allocations: 27.97 kB / 468.1 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007733/0.3503, allocations: 0.6709 MB / 468.7 MB, free: 12 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3503, allocations: 3.938 kB / 468.8 MB, free: 8 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007919/0.3511, allocations: 176 kB / 468.9 MB, free: 15.83 MB / 382.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.004957/0.356, allocations: 2.085 MB / 471 MB, free: 13.83 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002365/0.3584, allocations: 0.9298 MB / 471.9 MB, free: 12.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3584, allocations: 0 / 471.9 MB, free: 12.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.3598, allocations: 0.6497 MB / 472.6 MB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000654/0.3605, allocations: 79.53 kB / 472.7 MB, free: 12.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01324/0.3737, allocations: 6.814 MB / 479.5 MB, free: 5.133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006389/0.3744, allocations: 0.9259 MB / 480.4 MB, free: 4.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002322/0.3746, allocations: 39.28 kB / 480.4 MB, free: 4.141 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003251/0.3749, allocations: 215.3 kB / 480.7 MB, free: 3.93 MB / 382.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3749, allocations: 4 kB / 480.7 MB, free: 3.926 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07139/0.4463, allocations: 22.91 MB / 0.4918 GB, free: 13.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.51/13.95, allocations: 0 / 0.4918 GB, free: 13.09 MB / 414.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/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_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.6128936749883]