Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Translational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Translational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Translational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Translational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Translational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 110 kB / 16.41 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 185.5 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2081/0.2081, allocations: 43.52 MB / 314.1 MB, free: 476 kB / 254.1 MB 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.001348/0.001348, allocations: 67.91 kB / 441.3 MB, free: 6.207 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1123, allocations: 57.79 MB / 499.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Translational.TestBraking): time 0.004439/0.1168, allocations: 2.784 MB / 0.4901 GB, free: 9.551 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.1188, allocations: 0.99 MB / 0.4911 GB, free: 8.551 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003099/0.1191, allocations: 7.938 kB / 0.4911 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002244/0.1193, allocations: 51.45 kB / 0.4911 GB, free: 8.492 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003502/0.1197, allocations: 103.1 kB / 0.4912 GB, free: 8.391 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005975/0.1203, allocations: 155.6 kB / 0.4914 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005675/0.1209, allocations: 374.2 kB / 0.4917 GB, free: 7.871 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/0.1212, allocations: 97.11 kB / 0.4918 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002443/0.1214, allocations: 139.5 kB / 0.4919 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002633/0.1217, allocations: 155.2 kB / 0.4921 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.557e-05/0.1217, allocations: 28 kB / 0.4921 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001414/0.1219, allocations: 47.92 kB / 0.4922 GB, free: 7.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.041e-05/0.122, allocations: 59.77 kB / 0.4922 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002061/0.1222, allocations: 163.2 kB / 0.4924 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005423/0.1227, allocations: 378.4 kB / 0.4927 GB, free: 6.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1228, allocations: 0 / 0.4927 GB, free: 6.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1228, allocations: 4 kB / 0.4927 GB, free: 6.816 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.1228, allocations: 0 / 0.4927 GB, free: 6.816 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0013/0.1241, allocations: 0.6311 MB / 0.4934 GB, free: 6.133 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.1241, allocations: 15.89 kB / 0.4934 GB, free: 6.117 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.139e-05/0.1242, allocations: 58.73 kB / 0.4934 GB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002504/0.1245, allocations: 52.69 kB / 0.4935 GB, free: 6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004413/0.1249, allocations: 283.5 kB / 0.4937 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.125, allocations: 21.03 kB / 0.4938 GB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.349e-05/0.1251, allocations: 36.36 kB / 0.4938 GB, free: 5.629 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005105/0.1256, allocations: 306.5 kB / 0.4941 GB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.789e-05/0.1256, allocations: 7.953 kB / 0.4941 GB, free: 5.301 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.1256, allocations: 12 kB / 0.4941 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.1257, allocations: 8 kB / 0.4941 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003648/0.126, allocations: 203.8 kB / 0.4943 GB, free: 5.082 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001913/0.1279, allocations: 1.277 MB / 0.4956 GB, free: 3.707 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004988/0.1285, allocations: 329 kB / 0.4959 GB, free: 3.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.1286, allocations: 108.3 kB / 0.496 GB, free: 3.219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.1287, allocations: 11.92 kB / 0.496 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.1287, allocations: 38.56 kB / 0.496 GB, free: 3.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=36): time 1.583e-06/0.1287, allocations: 336 / 0.496 GB, free: 3.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.002471/0.1312, allocations: 1.599 MB / 0.4976 GB, free: 1.352 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.86e-05/0.1313, allocations: 158.2 kB / 0.4977 GB, free: 1.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.1315, allocations: 224.9 kB / 0.498 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.1315, allocations: 33.7 kB / 0.498 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.1316, allocations: 184.5 kB / 0.4982 GB, free: 0.707 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.1318, allocations: 158.6 kB / 0.4983 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.1319, allocations: 82.22 kB / 0.4984 GB, free: 476 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.132, allocations: 346.8 kB / 0.4987 GB, free: 120 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.1322, allocations: 101 kB / 0.4988 GB, free: 20 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002617/0.1324, allocations: 239.6 kB / 0.499 GB, free: 15.72 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004463/0.1329, allocations: 371.1 kB / 0.4994 GB, free: 15.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.1329, allocations: 4 kB / 0.4994 GB, free: 15.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005887/0.1335, allocations: 416.9 kB / 0.4998 GB, free: 14.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.1335, allocations: 4 kB / 0.4998 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.1335, allocations: 8 kB / 0.4998 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.1336, allocations: 8.172 kB / 0.4998 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003693/0.1339, allocations: 119.8 kB / 0.4999 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.134, allocations: 8 kB / 0.4999 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000181/0.1342, allocations: 12 kB / 0.5 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.678e-05/0.1342, allocations: 20.38 kB / 0.5 GB, free: 14.7 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (62): * Single equations (assignments): 62 * 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.0001509/0.1344, allocations: 169.6 kB / 0.5001 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.1345, allocations: 35.8 kB / 0.5002 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002201/0.1347, allocations: 123.2 kB / 0.5003 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.1347, allocations: 11.94 kB / 0.5003 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.1347, allocations: 0 / 0.5003 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.1348, allocations: 3.984 kB / 0.5003 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001421/0.1362, allocations: 1.034 MB / 0.5013 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.1362, allocations: 8.062 kB / 0.5013 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004143/0.1366, allocations: 87.91 kB / 0.5014 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.186e-05/0.1366, allocations: 11.98 kB / 0.5014 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.1367, allocations: 15.94 kB / 0.5014 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.708e-06/0.1367, allocations: 4 kB / 0.5014 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1367, allocations: 4 kB / 0.5014 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007421/0.1374, allocations: 0.8299 MB / 0.5023 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.635e-05/0.1375, allocations: 104.9 kB / 0.5024 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.653e-05/0.1376, allocations: 20 kB / 0.5024 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002967/0.1379, allocations: 8 kB / 0.5024 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.1379, allocations: 35.94 kB / 0.5024 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/0.1379, allocations: 23.92 kB / 0.5024 GB, free: 12.01 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001289/0.1381, allocations: 156.5 kB / 0.5026 GB, free: 11.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1381, allocations: 0 / 0.5026 GB, free: 11.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005309/0.1386, allocations: 84 kB / 0.5027 GB, free: 11.77 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 11 (mass5.s,mass5.v,heatCapacitor.T,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 (41): * Single equations (assignments): 41 * 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.0009488/0.1396, allocations: 1.38 MB / 0.504 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004506/0.14, allocations: 284 kB / 0.5043 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1401, allocations: 0 / 0.5043 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.1402, allocations: 137.7 kB / 0.5044 GB, free: 9.934 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008263/0.1411, allocations: 78.75 kB / 0.5045 GB, free: 9.863 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004316/0.1454, allocations: 4.004 MB / 0.5084 GB, free: 5.598 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003607/0.1458, allocations: 0.7842 MB / 0.5092 GB, free: 4.789 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001556/0.1459, allocations: 47.27 kB / 0.5092 GB, free: 4.738 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.1461, allocations: 107.4 kB / 0.5093 GB, free: 4.633 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1461, allocations: 0 / 0.5093 GB, free: 4.633 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02413/0.1702, allocations: 6.418 MB / 0.5156 GB, free: 14.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.799/7.969, allocations: 11.86 kB / 0.5156 GB, free: 14.19 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Translational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Translational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Translational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Translational.TestBraking.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Translational.TestBraking_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_3_2_3_ModelicaTest_Translational_TestBraking.fmu > ModelicaTest_3.2.3_ModelicaTest.Translational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Translational.TestBraking_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Translational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Translational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches