Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.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.001301/0.001301, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.0013/0.0013, allocations: 218.9 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.4/1.4, allocations: 230.6 MB / 254.8 MB, free: 15.22 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.CompareBrakingForce,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 47.92 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09916/0.1006, allocations: 53.32 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003551/0.1042, allocations: 2.378 MB / 429.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.1057, allocations: 0.7712 MB / 430.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.1059, allocations: 11.94 kB / 430.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.106, allocations: 39.58 kB / 430.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002818/0.1063, allocations: 87.33 kB / 430.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003452/0.1066, allocations: 111.7 kB / 430.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003855/0.107, allocations: 310.6 kB / 430.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.1072, allocations: 40.73 kB / 430.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001528/0.1073, allocations: 119.6 kB / 430.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001867/0.1075, allocations: 131.4 kB / 431 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.611e-05/0.1075, allocations: 20 kB / 431 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.791e-05/0.1076, allocations: 20 kB / 431 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.105e-05/0.1076, allocations: 55.78 kB / 431.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.1078, allocations: 131.3 kB / 431.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003306/0.1081, allocations: 270.8 kB / 431.5 MB, free: 300 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1081, allocations: 0 / 431.5 MB, free: 300 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1081, allocations: 3.938 kB / 431.5 MB, free: 296 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.954e-06/0.1081, allocations: 0 / 431.5 MB, free: 296 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001008/0.1091, allocations: 0.561 MB / 432 MB, free: 15.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1092, allocations: 8.031 kB / 432.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.021e-05/0.1092, allocations: 4.625 kB / 432.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.914e-05/0.1093, allocations: 62.67 kB / 432.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.883e-05/0.1093, allocations: 32.75 kB / 432.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004373/0.1098, allocations: 248.8 kB / 432.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.611e-05/0.1098, allocations: 20.81 kB / 432.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.182e-05/0.1098, allocations: 24.38 kB / 432.4 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004927/0.1103, allocations: 246.5 kB / 432.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.1104, allocations: 3.953 kB / 432.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.1104, allocations: 12 kB / 432.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.1104, allocations: 4 kB / 432.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003875/0.1108, allocations: 166.6 kB / 432.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.1123, allocations: 1.016 MB / 433.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006028/0.1129, allocations: 278.2 kB / 434.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.1131, allocations: 95.39 kB / 434.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.1131, allocations: 4 kB / 434.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.372e-05/0.1132, allocations: 38.5 kB / 434.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 2.084e-06/0.1132, allocations: 0 / 434.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002173/0.1153, allocations: 1.337 MB / 435.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.796e-05/0.1154, allocations: 132.5 kB / 435.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002225/0.1157, allocations: 210.7 kB / 436 MB, free: 11.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/0.1157, allocations: 37.64 kB / 436 MB, free: 11.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.1158, allocations: 152.7 kB / 436.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.1159, allocations: 130.9 kB / 436.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.116, allocations: 66.12 kB / 436.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.1162, allocations: 334.8 kB / 436.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002138/0.1164, allocations: 76.84 kB / 436.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002966/0.1167, allocations: 202 kB / 436.9 MB, free: 10.28 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005062/0.1172, allocations: 306 kB / 437.2 MB, free: 9.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.1172, allocations: 4 kB / 437.2 MB, free: 9.926 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000709/0.1179, allocations: 345.5 kB / 437.6 MB, free: 9.582 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.1179, allocations: 12.03 kB / 437.6 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.118, allocations: 7.938 kB / 437.6 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.709e-05/0.118, allocations: 4 kB / 437.6 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003727/0.1184, allocations: 95.83 kB / 437.7 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.1184, allocations: 11.94 kB / 437.7 MB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001834/0.1186, allocations: 12 kB / 437.7 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.994e-05/0.1186, allocations: 23.94 kB / 437.7 MB, free: 9.418 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001728/0.1188, allocations: 149.6 kB / 437.9 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.1189, allocations: 27.86 kB / 437.9 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.182e-05/0.1189, allocations: 33.39 kB / 437.9 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.1189, allocations: 4 kB / 437.9 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.119, allocations: 7.938 kB / 438 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.119, allocations: 0 / 438 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001522/0.1205, allocations: 0.9634 MB / 438.9 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.1205, allocations: 0 / 438.9 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003741/0.1209, allocations: 83.89 kB / 439 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.313e-06/0.1209, allocations: 4 kB / 439 MB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.227e-05/0.1209, allocations: 12.25 kB / 439 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.1209, allocations: 4 kB / 439 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.73e-06/0.1209, allocations: 7.938 kB / 439 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008906/0.1218, allocations: 0.7048 MB / 439.7 MB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.201e-05/0.1219, allocations: 101.1 kB / 439.8 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.176e-05/0.1219, allocations: 20 kB / 439.8 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.1222, allocations: 11.98 kB / 439.9 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.971e-05/0.1223, allocations: 27.91 kB / 439.9 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.141e-05/0.1223, allocations: 11.98 kB / 439.9 MB, free: 7.094 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001412/0.1224, allocations: 148.6 kB / 440 MB, free: 6.949 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1224, allocations: 0 / 440 MB, free: 6.949 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000495/0.1229, allocations: 60 kB / 440.1 MB, free: 6.891 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00125/0.1242, allocations: 1.249 MB / 441.4 MB, free: 5.586 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005806/0.1247, allocations: 231.6 kB / 441.6 MB, free: 5.359 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.1247, allocations: 3.938 kB / 441.6 MB, free: 5.355 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000245/0.125, allocations: 120.8 kB / 441.7 MB, free: 5.238 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007786/0.1258, allocations: 63.16 kB / 441.8 MB, free: 5.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005039/0.1308, allocations: 3.5 MB / 445.3 MB, free: 1.457 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005916/0.1314, allocations: 0.7606 MB / 446 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.1316, allocations: 34.95 kB / 446.1 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001501/0.1317, allocations: 83.41 kB / 446.1 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1317, allocations: 0 / 446.1 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2093/0.3411, allocations: 5.826 MB / 452 MB, free: 24.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.228/8.569, allocations: 7.922 kB / 452 MB, free: 24.32 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_CompareBrakingForce_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_CompareBrakingForce.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/CompareBrakingForce/CompareBrakingForce.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 13.00786331598647]