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.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.00127/0.00127, allocations: 119.8 kB / 18.45 MB, free: 4.457 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.001245/0.001245, allocations: 190.9 kB / 21.39 MB, free: 1.52 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.411/1.411, allocations: 207.6 MB / 231.8 MB, free: 3.996 MB / 174.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.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_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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 51.92 kB / 342.2 MB, free: 10.03 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09498/0.09663, allocations: 49.13 MB / 391.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004533/0.1012, allocations: 2.991 MB / 394.4 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.1033, allocations: 1.216 MB / 395.6 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.1035, allocations: 4 kB / 395.6 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003726/0.1038, allocations: 75.3 kB / 395.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002127/0.104, allocations: 122.9 kB / 395.8 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008196/0.1049, allocations: 411.2 kB / 396.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008245/0.1057, allocations: 0.8036 MB / 397 MB, free: 3.098 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/0.1059, allocations: 69.59 kB / 397 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004919/0.1064, allocations: 367 kB / 397.4 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001543/0.1079, allocations: 1.338 MB / 398.7 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001191/0.108, allocations: 72 kB / 398.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002191/0.1083, allocations: 115.9 kB / 398.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002326/0.1085, allocations: 231.8 kB / 399.2 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003295/0.1088, allocations: 350 kB / 399.5 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009913/0.1098, allocations: 0.8716 MB / 400.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.343e-06/0.1098, allocations: 4 kB / 400.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1098, allocations: 4 kB / 400.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.1098, allocations: 0 / 400.4 MB, free: 15.69 MB / 334.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.003688/0.1135, allocations: 1.339 MB / 401.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.1136, allocations: 12.03 kB / 401.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001261/0.1137, allocations: 78.7 kB / 401.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001477/0.1138, allocations: 80.42 kB / 401.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006597/0.1145, allocations: 440 kB / 402.3 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.638e-05/0.1145, allocations: 29.38 kB / 402.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.777e-05/0.1146, allocations: 44.31 kB / 402.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001903/0.1165, allocations: 1.153 MB / 403.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.176e-05/0.1166, allocations: 12 kB / 403.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.183e-05/0.1166, allocations: 12 kB / 403.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.1166, allocations: 11.98 kB / 403.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002765/0.1194, allocations: 1.744 MB / 405.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004331/0.1237, allocations: 2.467 MB / 407.8 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/0.1254, allocations: 0.9069 MB / 408.7 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001135/0.1265, allocations: 0.7006 MB / 409.4 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.179e-05/0.1266, allocations: 4 kB / 409.4 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001517/0.1281, allocations: 0.9049 MB / 410.3 MB, free: 5.523 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 2.114e-06/0.1281, allocations: 0 / 410.3 MB, free: 5.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.01135/0.1394, allocations: 5.794 MB / 416.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.346e-05/0.1395, allocations: 81.11 kB / 416.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001326/0.1408, allocations: 0.9181 MB / 417.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.033e-05/0.1409, allocations: 45.7 kB / 417.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002744/0.1412, allocations: 300.6 kB / 417.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001833/0.1414, allocations: 174.7 kB / 417.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002326/0.1416, allocations: 122.3 kB / 417.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002168/0.1418, allocations: 378.8 kB / 418.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.1431, allocations: 0.8408 MB / 418.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001383/0.1445, allocations: 0.9479 MB / 419.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002172/0.1467, allocations: 1.461 MB / 421.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1467, allocations: 0 / 421.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003829/0.1505, allocations: 2.479 MB / 423.8 MB, free: 7.711 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.1505, allocations: 8 kB / 423.8 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.1506, allocations: 0 / 423.8 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002246/0.1528, allocations: 1.9 MB / 425.7 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005032/0.1533, allocations: 115.8 kB / 425.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008356/0.1617, allocations: 6.715 MB / 432.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.163, allocations: 235.7 kB / 432.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-05/0.1631, allocations: 20 kB / 432.8 MB, free: 14.41 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.0004002/0.1635, allocations: 255.9 kB / 433.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.1636, allocations: 75.52 kB / 433.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002004/0.1638, allocations: 106.2 kB / 433.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.1638, allocations: 4 kB / 433.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1638, allocations: 0 / 433.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.1638, allocations: 4 kB / 433.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004217/0.1681, allocations: 3.091 MB / 436.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.1681, allocations: 0 / 436.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004669/0.1685, allocations: 83.94 kB / 436.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002047/0.1706, allocations: 1.873 MB / 438.3 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.667e-05/0.1706, allocations: 19.97 kB / 438.3 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007496/0.1781, allocations: 6.335 MB / 444.6 MB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.1781, allocations: 4.062 kB / 444.6 MB, free: 2.156 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005058/0.1832, allocations: 3.217 MB / 447.9 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003724/0.1836, allocations: 212.6 kB / 448.1 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.1837, allocations: 24 kB / 448.1 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00153/0.1852, allocations: 263.6 kB / 448.3 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001397/0.1866, allocations: 0.5694 MB / 448.9 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.58e-05/0.1867, allocations: 31.95 kB / 448.9 MB, free: 13.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007661/0.1874, allocations: 0.667 MB / 449.6 MB, free: 13.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1874, allocations: 3.938 kB / 449.6 MB, free: 13.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000799/0.1882, allocations: 199.9 kB / 449.8 MB, free: 12.94 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005549/0.1938, allocations: 3.808 MB / 453.6 MB, free: 9.086 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003144/0.1969, allocations: 1.878 MB / 455.5 MB, free: 7.184 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.1969, allocations: 0 / 455.5 MB, free: 7.184 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001777/0.1987, allocations: 1.072 MB / 456.6 MB, free: 6.086 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006441/0.1994, allocations: 75.34 kB / 456.6 MB, free: 6.012 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1906/0.39, allocations: 11.59 MB / 468.2 MB, free: 66.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004087/0.3904, allocations: 0.9197 MB / 469.2 MB, free: 65.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002363/0.3906, allocations: 42.48 kB / 469.2 MB, free: 65.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000251/0.3909, allocations: 203.3 kB / 469.4 MB, free: 65.95 MB / 382.1 MB Notification: Performance of SimCode: time 1.422e-06/0.3909, allocations: 0 / 469.4 MB, free: 65.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05889/0.4498, allocations: 30.61 MB / 0.4883 GB, free: 42.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13/13.45, allocations: 9.125 kB / 0.4883 GB, free: 42.61 MB / 382.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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 16.289487978443503]