Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.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.001345/0.001345, allocations: 108.8 kB / 19.16 MB, free: 3.871 MB / 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.001284/0.001284, allocations: 205.6 kB / 22.12 MB, free: 0.9297 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.397/1.397, allocations: 207.6 MB / 232.5 MB, free: 3.902 MB / 174.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.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",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.001682/0.001682, allocations: 55.91 kB / 343 MB, free: 9.996 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08662/0.08831, allocations: 49.13 MB / 392.1 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003597/0.0919, allocations: 2.428 MB / 394.5 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009967/0.0929, allocations: 0.5 MB / 395 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.09301, allocations: 11.88 kB / 395.1 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000204/0.09321, allocations: 47.58 kB / 395.1 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001591/0.09337, allocations: 83.27 kB / 395.2 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004465/0.09382, allocations: 199.7 kB / 395.4 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004992/0.09432, allocations: 495 kB / 395.9 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.09446, allocations: 44.72 kB / 395.9 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002448/0.09471, allocations: 223.4 kB / 396.1 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003082/0.09501, allocations: 239.2 kB / 396.4 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.013e-05/0.09507, allocations: 36 kB / 396.4 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001746/0.09525, allocations: 83.95 kB / 396.5 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001218/0.09537, allocations: 99.7 kB / 396.6 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.09555, allocations: 179.2 kB / 396.7 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005278/0.09608, allocations: 478.2 kB / 397.2 MB, free: 3.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.09609, allocations: 3.938 kB / 397.2 MB, free: 3.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.09609, allocations: 0 / 397.2 MB, free: 3.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.0961, allocations: 0 / 397.2 MB, free: 3.57 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001264/0.09736, allocations: 0.6662 MB / 397.9 MB, free: 2.852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.0974, allocations: 8.031 kB / 397.9 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.679e-05/0.09742, allocations: 12.69 kB / 397.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.656e-05/0.09749, allocations: 62.72 kB / 398 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.259e-05/0.09758, allocations: 40.7 kB / 398 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000371/0.09795, allocations: 280.8 kB / 398.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.528e-05/0.09798, allocations: 28.94 kB / 398.3 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.717e-05/0.09805, allocations: 28.33 kB / 398.3 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007147/0.09876, allocations: 381 kB / 398.7 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.09878, allocations: 3.984 kB / 398.7 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.205e-05/0.09882, allocations: 15.98 kB / 398.7 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.09883, allocations: 4 kB / 398.7 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007972/0.09963, allocations: 402 kB / 399.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.1015, allocations: 1.104 MB / 400.2 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005313/0.1021, allocations: 288.4 kB / 400.5 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003747/0.1024, allocations: 193.7 kB / 400.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.485e-05/0.1025, allocations: 7.984 kB / 400.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.1025, allocations: 34.5 kB / 400.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.593e-06/0.1025, allocations: 0 / 400.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004627/0.1071, allocations: 2.031 MB / 402.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.1072, allocations: 59.41 kB / 402.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002503/0.1074, allocations: 233 kB / 403.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.663e-05/0.1075, allocations: 45.69 kB / 403.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.1076, allocations: 153 kB / 403.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.1077, allocations: 154.7 kB / 403.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002443/0.108, allocations: 98.19 kB / 403.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.1082, allocations: 342.8 kB / 403.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004003/0.1086, allocations: 213 kB / 404 MB, free: 12.37 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004492/0.109, allocations: 280.8 kB / 404.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006538/0.1097, allocations: 377.7 kB / 404.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1097, allocations: 0 / 404.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001467/0.1111, allocations: 0.6886 MB / 405.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.1112, allocations: 8 kB / 405.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.1112, allocations: 0 / 405.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008987/0.1121, allocations: 497.5 kB / 405.9 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.1123, allocations: 71.91 kB / 405.9 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/0.1137, allocations: 1.401 MB / 407.3 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004146/0.1141, allocations: 67.89 kB / 407.4 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.329e-05/0.1141, allocations: 20.12 kB / 407.4 MB, free: 8.863 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,7), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002049/0.1143, allocations: 177.8 kB / 407.6 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.824e-05/0.1144, allocations: 31.81 kB / 407.6 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001217/0.1145, allocations: 47.25 kB / 407.7 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.1145, allocations: 4 kB / 407.7 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1145, allocations: 0 / 407.7 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.1146, allocations: 3.984 kB / 407.7 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002769/0.1173, allocations: 1.355 MB / 409 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.1173, allocations: 3.938 kB / 409 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002739/0.1176, allocations: 68.06 kB / 409.1 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007489/0.1183, allocations: 461.3 kB / 409.6 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.328e-05/0.1184, allocations: 23.97 kB / 409.6 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001299/0.1197, allocations: 1.335 MB / 410.9 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1197, allocations: 12.09 kB / 410.9 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001866/0.1216, allocations: 0.9326 MB / 411.9 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.1218, allocations: 156.8 kB / 412 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.312e-05/0.1218, allocations: 20 kB / 412 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003088/0.1221, allocations: 39.95 kB / 412.1 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/0.1223, allocations: 83.86 kB / 412.1 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.911e-05/0.1224, allocations: 19.97 kB / 412.2 MB, free: 3.902 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001602/0.1225, allocations: 168.5 kB / 412.3 MB, free: 3.738 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1225, allocations: 0 / 412.3 MB, free: 3.738 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004499/0.123, allocations: 107.9 kB / 412.4 MB, free: 3.633 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002323/0.1253, allocations: 1.496 MB / 413.9 MB, free: 2.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.1264, allocations: 0.4907 MB / 414.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.1264, allocations: 4.062 kB / 414.4 MB, free: 1.594 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006073/0.127, allocations: 276 kB / 414.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000473/0.1275, allocations: 68.62 kB / 414.8 MB, free: 1.258 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006935/0.1344, allocations: 4.11 MB / 418.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004016/0.1348, allocations: 0.78 MB / 419.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001283/0.135, allocations: 38.97 kB / 419.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001531/0.1351, allocations: 87.41 kB / 419.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1351, allocations: 4 kB / 419.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03422/0.1693, allocations: 11.75 MB / 431.5 MB, free: 244 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/11.77, allocations: 7.938 kB / 431.5 MB, free: 236 kB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.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: 14.194618478999473]