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.001673/0.001673, allocations: 109 kB / 16.41 MB, free: 6.508 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.001889/0.001889, allocations: 189.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.581/1.581, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2135/0.2135, allocations: 43.52 MB / 314.1 MB, free: 448 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.001816/0.001816, allocations: 73.47 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1215, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Translational.TestBraking): time 0.004075/0.1256, allocations: 2.784 MB / 0.4901 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001841/0.1275, allocations: 0.9859 MB / 0.4911 GB, free: 8.512 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002682/0.1278, allocations: 11.94 kB / 0.4911 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000206/0.128, allocations: 55.44 kB / 0.4911 GB, free: 8.445 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00028/0.1283, allocations: 99.12 kB / 0.4912 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000557/0.1289, allocations: 147.6 kB / 0.4914 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004985/0.1294, allocations: 386.2 kB / 0.4917 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002102/0.1296, allocations: 97.11 kB / 0.4918 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001907/0.1298, allocations: 139.5 kB / 0.4919 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002438/0.1301, allocations: 155.2 kB / 0.4921 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.803e-05/0.1301, allocations: 28 kB / 0.4921 GB, free: 7.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.1303, allocations: 47.92 kB / 0.4922 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.604e-05/0.1303, allocations: 59.77 kB / 0.4922 GB, free: 7.305 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.1305, allocations: 167.2 kB / 0.4924 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000453/0.1309, allocations: 374.4 kB / 0.4927 GB, free: 6.773 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.131, allocations: 0 / 0.4927 GB, free: 6.773 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.131, allocations: 4 kB / 0.4927 GB, free: 6.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.567e-05/0.131, allocations: 0 / 0.4927 GB, free: 6.77 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.001073/0.1321, allocations: 0.6272 MB / 0.4934 GB, free: 6.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.1321, allocations: 15.89 kB / 0.4934 GB, free: 6.074 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.016e-05/0.1322, allocations: 66.72 kB / 0.4934 GB, free: 6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002192/0.1324, allocations: 52.69 kB / 0.4935 GB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.1328, allocations: 271.8 kB / 0.4937 GB, free: 5.645 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.1329, allocations: 21.03 kB / 0.4938 GB, free: 5.625 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.88e-05/0.1329, allocations: 32.38 kB / 0.4938 GB, free: 5.594 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004807/0.1334, allocations: 310.4 kB / 0.4941 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.8e-05/0.1335, allocations: 7.953 kB / 0.4941 GB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.509e-05/0.1335, allocations: 12 kB / 0.4941 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/0.1335, allocations: 4 kB / 0.4941 GB, free: 5.246 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003687/0.1339, allocations: 211.7 kB / 0.4943 GB, free: 5.039 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.1359, allocations: 1.281 MB / 0.4956 GB, free: 3.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006063/0.1365, allocations: 333.3 kB / 0.4959 GB, free: 3.289 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.1367, allocations: 112.2 kB / 0.496 GB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.924e-05/0.1367, allocations: 7.938 kB / 0.496 GB, free: 3.156 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.867e-05/0.1368, allocations: 38.56 kB / 0.496 GB, free: 3.109 MB / 382.1 MB Notification: Performance of pre-optimization done (n=36): time 2.876e-06/0.1368, allocations: 336 / 0.496 GB, free: 3.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.00299/0.1398, allocations: 1.591 MB / 0.4976 GB, free: 1.309 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.1399, allocations: 162.2 kB / 0.4977 GB, free: 1.113 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002586/0.1402, allocations: 224.9 kB / 0.498 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.093e-05/0.1402, allocations: 33.7 kB / 0.498 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.1404, allocations: 184.5 kB / 0.4982 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.1405, allocations: 158.6 kB / 0.4983 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/0.1406, allocations: 86.2 kB / 0.4984 GB, free: 424 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.1408, allocations: 342.8 kB / 0.4987 GB, free: 72 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.141, allocations: 101 kB / 0.4988 GB, free: 15.97 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003084/0.1413, allocations: 243.6 kB / 0.4991 GB, free: 15.67 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005104/0.1419, allocations: 361.7 kB / 0.4994 GB, free: 15.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.1419, allocations: 4 kB / 0.4994 GB, free: 15.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006777/0.1426, allocations: 425.5 kB / 0.4998 GB, free: 14.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1426, allocations: 4 kB / 0.4998 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.1426, allocations: 8 kB / 0.4998 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.771e-05/0.1426, allocations: 7.938 kB / 0.4998 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003936/0.143, allocations: 111.8 kB / 0.4999 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.86e-05/0.1431, allocations: 8 kB / 0.4999 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002081/0.1433, allocations: 19.98 kB / 0.5 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.813e-05/0.1433, allocations: 20.34 kB / 0.5 GB, free: 14.65 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.0001783/0.1435, allocations: 169.6 kB / 0.5001 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.1437, allocations: 31.81 kB / 0.5002 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002653/0.1439, allocations: 123.2 kB / 0.5003 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.1439, allocations: 7.938 kB / 0.5003 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.144, allocations: 4 kB / 0.5003 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.144, allocations: 0 / 0.5003 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002052/0.146, allocations: 1.034 MB / 0.5013 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.1461, allocations: 8.031 kB / 0.5013 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004573/0.1465, allocations: 91.89 kB / 0.5014 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.068e-05/0.1466, allocations: 8 kB / 0.5014 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.804e-05/0.1466, allocations: 15.94 kB / 0.5014 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/0.1466, allocations: 4 kB / 0.5014 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.1466, allocations: 7.984 kB / 0.5014 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.1477, allocations: 0.8223 MB / 0.5022 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001558/0.1479, allocations: 108.9 kB / 0.5024 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.001e-05/0.148, allocations: 19.98 kB / 0.5024 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00033/0.1483, allocations: 8 kB / 0.5024 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.904e-05/0.1484, allocations: 31.95 kB / 0.5024 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.746e-05/0.1484, allocations: 19.94 kB / 0.5024 GB, free: 11.97 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001838/0.1486, allocations: 160.5 kB / 0.5026 GB, free: 11.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1486, allocations: 0 / 0.5026 GB, free: 11.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006957/0.1493, allocations: 84 kB / 0.5027 GB, free: 11.73 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.001299/0.1506, allocations: 1.388 MB / 0.504 GB, free: 10.3 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005762/0.1512, allocations: 280.4 kB / 0.5043 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1512, allocations: 0 / 0.5043 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001935/0.1514, allocations: 133.4 kB / 0.5044 GB, free: 9.895 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000913/0.1524, allocations: 81.69 kB / 0.5045 GB, free: 9.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005853/0.1582, allocations: 4.01 MB / 0.5084 GB, free: 5.547 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.1587, allocations: 0.7841 MB / 0.5092 GB, free: 4.738 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001844/0.1589, allocations: 47.27 kB / 0.5092 GB, free: 4.688 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/0.1591, allocations: 103.4 kB / 0.5093 GB, free: 4.586 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1591, allocations: 0 / 0.5093 GB, free: 4.586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02795/0.187, allocations: 6.42 MB / 0.5156 GB, free: 14.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.356/8.543, allocations: 8.266 kB / 0.5156 GB, free: 14.15 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