Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002122/0.002122, allocations: 124.8 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002502/0.002502, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 51.92 kB / 365.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08821/0.08963, allocations: 52.13 MB / 417.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004087/0.09372, allocations: 3.015 MB / 420.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002047/0.09576, allocations: 1.165 MB / 421.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.09593, allocations: 4 kB / 421.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003639/0.09629, allocations: 87.22 kB / 422 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002204/0.09651, allocations: 115 kB / 422.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008302/0.09734, allocations: 414.2 kB / 422.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008005/0.09814, allocations: 0.8074 MB / 423.4 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.0983, allocations: 58.3 kB / 423.4 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004836/0.09879, allocations: 371 kB / 423.8 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001439/0.1002, allocations: 1.338 MB / 425.1 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.1003, allocations: 68 kB / 425.2 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002182/0.1006, allocations: 119.9 kB / 425.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000214/0.1008, allocations: 231.8 kB / 425.5 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003238/0.1011, allocations: 346.1 kB / 425.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009305/0.102, allocations: 0.8716 MB / 426.7 MB, free: 3.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.102, allocations: 4 kB / 426.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.102, allocations: 0 / 426.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.1021, allocations: 0 / 426.7 MB, free: 3.641 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003527/0.1056, allocations: 1.355 MB / 428.1 MB, free: 2.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.1056, allocations: 12.03 kB / 428.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001096/0.1057, allocations: 74.66 kB / 428.2 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.1059, allocations: 80.47 kB / 428.3 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006222/0.1065, allocations: 432.1 kB / 428.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.421e-05/0.1065, allocations: 33.38 kB / 428.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.1067, allocations: 44.31 kB / 428.8 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/0.1085, allocations: 1.153 MB / 429.9 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.1085, allocations: 4 kB / 429.9 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.281e-05/0.1086, allocations: 16 kB / 429.9 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.1086, allocations: 8 kB / 429.9 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00267/0.1112, allocations: 1.748 MB / 431.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004275/0.1155, allocations: 2.475 MB / 434.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001619/0.1171, allocations: 0.8913 MB / 435 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/0.1183, allocations: 0.7089 MB / 435.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.463e-05/0.1183, allocations: 11.94 kB / 435.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00146/0.1198, allocations: 0.9005 MB / 436.7 MB, free: 9.461 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.094e-06/0.1198, allocations: 4 kB / 436.7 MB, free: 9.457 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.01105/0.1308, allocations: 5.782 MB / 442.5 MB, free: 3.516 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.1309, allocations: 89.05 kB / 442.5 MB, free: 3.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001174/0.1321, allocations: 0.9142 MB / 443.5 MB, free: 2.488 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001187/0.1322, allocations: 49.69 kB / 443.5 MB, free: 2.434 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002454/0.1324, allocations: 296.7 kB / 443.8 MB, free: 2.137 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001833/0.1326, allocations: 174.7 kB / 444 MB, free: 1.965 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002791/0.1329, allocations: 122.3 kB / 444.1 MB, free: 1.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.1331, allocations: 378.8 kB / 444.5 MB, free: 1.461 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001296/0.1344, allocations: 0.8447 MB / 445.3 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.163/0.2974, allocations: 0.9354 MB / 446.2 MB, free: 31.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001739/0.2991, allocations: 1.464 MB / 447.7 MB, free: 31.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2991, allocations: 0 / 447.7 MB, free: 31.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00314/0.3023, allocations: 2.48 MB / 450.2 MB, free: 31.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.3023, allocations: 5.594 kB / 450.2 MB, free: 31.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.3023, allocations: 3.219 kB / 450.2 MB, free: 31.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00204/0.3043, allocations: 1.892 MB / 452.1 MB, free: 31.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004901/0.3048, allocations: 117 kB / 452.2 MB, free: 31.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006502/0.3113, allocations: 6.718 MB / 458.9 MB, free: 27.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00131/0.3126, allocations: 232.5 kB / 459.1 MB, free: 27.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.856e-05/0.3127, allocations: 21.88 kB / 459.2 MB, free: 27.44 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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003299/0.313, allocations: 255.8 kB / 459.4 MB, free: 27.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.3131, allocations: 74.72 kB / 459.5 MB, free: 27.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001512/0.3133, allocations: 104.2 kB / 459.6 MB, free: 27.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.3133, allocations: 9.156 kB / 459.6 MB, free: 27.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.3133, allocations: 5.188 kB / 459.6 MB, free: 27.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.3133, allocations: 2.625 kB / 459.6 MB, free: 27.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003836/0.3171, allocations: 3.086 MB / 462.7 MB, free: 26.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.3171, allocations: 1.219 kB / 462.7 MB, free: 26.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004344/0.3176, allocations: 87.34 kB / 462.8 MB, free: 26.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/0.3194, allocations: 1.868 MB / 464.6 MB, free: 26.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.658e-05/0.3195, allocations: 22.83 kB / 464.7 MB, free: 26.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005677/0.3252, allocations: 6.334 MB / 471 MB, free: 21.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3252, allocations: 4.812 kB / 471 MB, free: 21.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003909/0.3291, allocations: 3.221 MB / 474.2 MB, free: 20.26 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003138/0.3294, allocations: 216.1 kB / 474.4 MB, free: 20.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.973e-05/0.3295, allocations: 20.84 kB / 474.5 MB, free: 20.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001442/0.3309, allocations: 274.6 kB / 474.7 MB, free: 19.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001241/0.3322, allocations: 0.5572 MB / 475.3 MB, free: 19.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.952e-05/0.3323, allocations: 30.47 kB / 475.3 MB, free: 19.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005319/0.3328, allocations: 0.6734 MB / 476 MB, free: 18.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3328, allocations: 0 / 476 MB, free: 18.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006766/0.3335, allocations: 185.2 kB / 476.2 MB, free: 18.73 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.003899/0.3374, allocations: 3.813 MB / 480 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002292/0.3396, allocations: 1.874 MB / 481.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.3397, allocations: 5.438 kB / 481.9 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001277/0.3409, allocations: 1.075 MB / 482.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005745/0.3415, allocations: 77.81 kB / 483 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01245/0.354, allocations: 11.59 MB / 494.6 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004201/0.3544, allocations: 0.922 MB / 495.5 MB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002209/0.3546, allocations: 43.28 kB / 495.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/0.3549, allocations: 207.4 kB / 495.8 MB, free: 15.41 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3549, allocations: 0 / 495.8 MB, free: 15.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5349/0.8898, allocations: 30.64 MB / 0.5141 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.8, allocations: 18.19 kB / 0.5141 GB, free: 0.9336 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.63401789870113]