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.0008788/0.0008788, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009785/0.0009785, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8783/0.8783, allocations: 173.3 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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 1.262e-06/1.262e-06, allocations: 0 / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.081e-05/1.207e-05, allocations: 6.281 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002519/0.002531, allocations: 2.773 MB / 321.2 MB, free: 3.57 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.003833, allocations: 1.134 MB / 322.3 MB, free: 2.434 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.003951, allocations: 4 kB / 322.3 MB, free: 2.43 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003362/0.004287, allocations: 87.22 kB / 322.4 MB, free: 2.344 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001374/0.004424, allocations: 122.8 kB / 322.5 MB, free: 2.223 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005306/0.004955, allocations: 430.8 kB / 323 MB, free: 1.805 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004704/0.005425, allocations: 0.8189 MB / 323.8 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.005561, allocations: 65.67 kB / 323.8 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003895/0.00595, allocations: 491.2 kB / 324.3 MB, free: 444 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008526/0.006803, allocations: 1.295 MB / 325.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.308e-05/0.006876, allocations: 68 kB / 325.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.00701, allocations: 119.9 kB / 325.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.007154, allocations: 227.8 kB / 326 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.007306, allocations: 235.4 kB / 326.2 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006194/0.007925, allocations: 0.9543 MB / 327.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.654e-06/0.007927, allocations: 0 / 327.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.007928, allocations: 0 / 327.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.007934, allocations: 0 / 327.2 MB, free: 13.54 MB / 298.7 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.001883/0.009817, allocations: 1.396 MB / 328.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.009857, allocations: 12.92 kB / 328.6 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.649e-05/0.009934, allocations: 86.64 kB / 328.7 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.01004, allocations: 80.42 kB / 328.8 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003686/0.01041, allocations: 373.5 kB / 329.1 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.79e-05/0.01045, allocations: 33.38 kB / 329.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.946e-05/0.01051, allocations: 36.38 kB / 329.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.01164, allocations: 1.154 MB / 330.4 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.01165, allocations: 4.141 kB / 330.4 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.716e-05/0.0117, allocations: 27.86 kB / 330.4 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.01171, allocations: 8 kB / 330.4 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001738/0.01345, allocations: 1.736 MB / 332.1 MB, free: 8.512 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002343/0.01579, allocations: 2.281 MB / 334.4 MB, free: 6.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009354/0.01672, allocations: 0.8912 MB / 335.3 MB, free: 5.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008791/0.0176, allocations: 0.7045 MB / 336 MB, free: 4.539 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.484e-05/0.01765, allocations: 8 kB / 336 MB, free: 4.531 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008221/0.01847, allocations: 0.8974 MB / 336.9 MB, free: 3.613 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 2.966e-06/0.01847, allocations: 3.984 kB / 336.9 MB, free: 3.609 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.00575/0.02422, allocations: 5.432 MB / 342.4 MB, free: 14.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.02426, allocations: 81.11 kB / 342.4 MB, free: 14.01 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009511/0.02521, allocations: 0.9296 MB / 343.4 MB, free: 13.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.225e-05/0.02526, allocations: 45.7 kB / 343.4 MB, free: 13.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.02541, allocations: 292.8 kB / 343.7 MB, free: 12.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.02552, allocations: 182.6 kB / 343.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.02566, allocations: 118.2 kB / 344 MB, free: 12.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.02576, allocations: 382.8 kB / 344.4 MB, free: 12.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007277/0.02649, allocations: 0.8408 MB / 345.2 MB, free: 11.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000758/0.02725, allocations: 0.9402 MB / 346.1 MB, free: 10.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.02841, allocations: 1.461 MB / 347.6 MB, free: 8.742 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.02841, allocations: 4 kB / 347.6 MB, free: 8.738 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002177/0.03059, allocations: 2.486 MB / 350.1 MB, free: 6.238 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.0306, allocations: 8 kB / 350.1 MB, free: 6.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.03061, allocations: 3.984 kB / 350.1 MB, free: 6.227 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001292/0.0319, allocations: 1.9 MB / 352 MB, free: 4.316 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.03216, allocations: 115.8 kB / 352.1 MB, free: 4.203 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004539/0.0367, allocations: 6.45 MB / 358.6 MB, free: 13.49 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006157/0.03731, allocations: 231.8 kB / 358.8 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.771e-05/0.03735, allocations: 24 kB / 358.8 MB, free: 13.24 MB / 330.7 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.0002384/0.03759, allocations: 252.2 kB / 359.1 MB, free: 12.99 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.125e-05/0.03766, allocations: 75.53 kB / 359.1 MB, free: 12.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.296e-05/0.03775, allocations: 110.2 kB / 359.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.03776, allocations: 8 kB / 359.3 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.03776, allocations: 0 / 359.3 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.03776, allocations: 0 / 359.3 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002423/0.04019, allocations: 2.962 MB / 362.2 MB, free: 9.777 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.249e-06/0.04019, allocations: 7.984 kB / 362.2 MB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002385/0.04043, allocations: 96.05 kB / 362.3 MB, free: 9.676 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001601/0.04203, allocations: 1.857 MB / 364.2 MB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.164e-05/0.04207, allocations: 23.97 kB / 364.2 MB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004024/0.0461, allocations: 6.096 MB / 370.3 MB, free: 1.43 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.0461, allocations: 0 / 370.3 MB, free: 1.43 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002978/0.04908, allocations: 3.223 MB / 373.5 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001885/0.04927, allocations: 131.4 kB / 373.6 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.49e-05/0.04933, allocations: 24 kB / 373.7 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007197/0.05005, allocations: 267.6 kB / 373.9 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008742/0.05092, allocations: 0.5771 MB / 374.5 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-05/0.05097, allocations: 31.91 kB / 374.5 MB, free: 13.14 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004037/0.05137, allocations: 0.6787 MB / 375.2 MB, free: 12.47 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05137, allocations: 0 / 375.2 MB, free: 12.47 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000459/0.05183, allocations: 180 kB / 375.4 MB, free: 12.29 MB / 346.7 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.003261/0.05509, allocations: 3.826 MB / 379.2 MB, free: 8.422 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.05677, allocations: 1.879 MB / 381.1 MB, free: 6.52 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.05677, allocations: 0 / 381.1 MB, free: 6.52 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009325/0.0577, allocations: 1.072 MB / 382.2 MB, free: 5.422 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003873/0.05809, allocations: 79.55 kB / 382.2 MB, free: 5.348 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.06838, allocations: 11.47 MB / 393.7 MB, free: 9.691 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.06859, allocations: 322.7 kB / 394 MB, free: 9.355 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001312/0.06872, allocations: 51.22 kB / 394.1 MB, free: 9.309 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002/0.06892, allocations: 208.4 kB / 394.3 MB, free: 9.105 MB / 362.7 MB Notification: Performance of SimCode: time 6.92e-07/0.06892, allocations: 0 / 394.3 MB, free: 9.105 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04368/0.1126, allocations: 26.73 MB / 421 MB, free: 14.48 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.243/8.355, allocations: 4.062 kB / 421 MB, free: 14.48 MB / 394.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 10.180521689355373]