Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.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.Utilities.TestFiles,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestFiles",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.001086/0.001086, allocations: 106.5 kB / 16.41 MB, free: 6.449 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.001059/0.00106, allocations: 190.9 kB / 17.34 MB, free: 5.715 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.371/1.371, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2232/0.2232, allocations: 43.53 MB / 314.1 MB, free: 440 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.001663/0.001663, allocations: 73.44 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1366, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.002332/0.139, allocations: 498.9 kB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002386/0.1414, allocations: 1.275 MB / 0.4891 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.989e-05/0.1414, allocations: 4 kB / 0.4891 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.073e-05/0.1415, allocations: 0 / 0.4891 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002328/0.1418, allocations: 0 / 0.4891 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001618/0.1434, allocations: 257.6 kB / 0.4893 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.208e-05/0.1435, allocations: 11.94 kB / 0.4893 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.324e-05/0.1435, allocations: 0 / 0.4893 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.402e-05/0.1436, allocations: 3.938 kB / 0.4894 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.419e-05/0.1437, allocations: 15.97 kB / 0.4894 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.688e-06/0.1437, allocations: 4 kB / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003213/0.1469, allocations: 0.6644 MB / 0.49 GB, free: 9.641 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.488e-06/0.1469, allocations: 4 kB / 0.49 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.472e-05/0.1469, allocations: 4 kB / 0.49 GB, free: 9.633 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003979/0.1474, allocations: 187.6 kB / 0.4902 GB, free: 9.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1474, allocations: 0 / 0.4902 GB, free: 9.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1474, allocations: 0 / 0.4902 GB, free: 9.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1474, allocations: 0 / 0.4902 GB, free: 9.449 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004933/0.1479, allocations: 385.1 kB / 0.4906 GB, free: 9.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.1479, allocations: 15.89 kB / 0.4906 GB, free: 9.004 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.495e-05/0.148, allocations: 30.75 kB / 0.4906 GB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.148, allocations: 0.9375 kB / 0.4906 GB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.1482, allocations: 160.4 kB / 0.4908 GB, free: 8.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.1482, allocations: 8.375 kB / 0.4908 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.905e-06/0.1482, allocations: 384 / 0.4908 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.049e-05/0.1483, allocations: 33.62 kB / 0.4908 GB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.1483, allocations: 3.938 kB / 0.4908 GB, free: 8.719 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.116e-06/0.1484, allocations: 4 kB / 0.4908 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.1484, allocations: 0 / 0.4908 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.096e-05/0.1484, allocations: 3.984 kB / 0.4908 GB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001612/0.1486, allocations: 149.7 kB / 0.491 GB, free: 8.516 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.767e-05/0.1486, allocations: 22.56 kB / 0.491 GB, free: 8.484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.608e-05/0.1486, allocations: 4.859 kB / 0.491 GB, free: 8.477 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-06/0.1486, allocations: 11.94 kB / 0.491 GB, free: 8.465 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.898e-05/0.1487, allocations: 56.27 kB / 0.4911 GB, free: 8.395 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.333e-06/0.1487, allocations: 0 / 0.4911 GB, free: 8.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001982/0.1489, allocations: 71.33 kB / 0.4911 GB, free: 8.312 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.934e-05/0.149, allocations: 77.11 kB / 0.4912 GB, free: 8.219 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.527e-05/0.1491, allocations: 97.98 kB / 0.4913 GB, free: 8.113 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.1491, allocations: 29.7 kB / 0.4913 GB, free: 8.078 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.451e-05/0.1491, allocations: 80.14 kB / 0.4914 GB, free: 7.996 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.1491, allocations: 7.906 kB / 0.4914 GB, free: 7.988 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.981e-05/0.1492, allocations: 9.719 kB / 0.4914 GB, free: 7.973 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.1493, allocations: 314.8 kB / 0.4917 GB, free: 7.656 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.518e-05/0.1493, allocations: 11.94 kB / 0.4917 GB, free: 7.645 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.901e-05/0.1494, allocations: 4.141 kB / 0.4917 GB, free: 7.641 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.144e-05/0.1494, allocations: 68.2 kB / 0.4918 GB, free: 7.559 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1494, allocations: 0 / 0.4918 GB, free: 7.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.264e-05/0.1495, allocations: 63.34 kB / 0.4919 GB, free: 7.484 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/0.1496, allocations: 33.69 kB / 0.4919 GB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1496, allocations: 0 / 0.4919 GB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.1496, allocations: 4 kB / 0.4919 GB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.1496, allocations: 0 / 0.4919 GB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.1496, allocations: 0 / 0.4919 GB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.085e-05/0.1496, allocations: 4.094 kB / 0.4919 GB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.1496, allocations: 0 / 0.4919 GB, free: 7.438 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 9.508e-05/0.1497, allocations: 139.5 kB / 0.492 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.217e-05/0.1498, allocations: 3.938 kB / 0.492 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.65e-05/0.1498, allocations: 7.125 kB / 0.492 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1498, allocations: 0 / 0.492 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.1498, allocations: 0 / 0.492 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1498, allocations: 7.984 kB / 0.492 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001048/0.1499, allocations: 141.7 kB / 0.4922 GB, free: 7.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1499, allocations: 3.938 kB / 0.4922 GB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.112e-06/0.1499, allocations: 4 kB / 0.4922 GB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.1499, allocations: 0 / 0.4922 GB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-06/0.15, allocations: 7.938 kB / 0.4922 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.15, allocations: 3.984 kB / 0.4922 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.15, allocations: 0 / 0.4922 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001053/0.1501, allocations: 90.86 kB / 0.4923 GB, free: 6.941 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.415e-05/0.1501, allocations: 81.05 kB / 0.4924 GB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.1502, allocations: 8.016 kB / 0.4924 GB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.434e-05/0.1502, allocations: 4 kB / 0.4924 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.218e-05/0.1502, allocations: 0 / 0.4924 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-06/0.1502, allocations: 0 / 0.4924 GB, free: 6.832 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.73e-05/0.1502, allocations: 79.22 kB / 0.4925 GB, free: 6.754 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1502, allocations: 0 / 0.4925 GB, free: 6.754 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003444/0.1506, allocations: 71.98 kB / 0.4925 GB, free: 6.684 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0009303/0.1515, allocations: 0.8589 MB / 0.4934 GB, free: 5.785 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001084/0.1517, allocations: 63.41 kB / 0.4934 GB, free: 5.711 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1517, allocations: 0 / 0.4934 GB, free: 5.711 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.423e-05/0.1517, allocations: 55.41 kB / 0.4935 GB, free: 5.645 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.1518, allocations: 7.984 kB / 0.4935 GB, free: 5.637 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004154/0.1523, allocations: 138.5 kB / 0.4936 GB, free: 5.461 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.1525, allocations: 0.6805 MB / 0.4943 GB, free: 4.754 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.009e-05/0.1525, allocations: 0 / 0.4943 GB, free: 4.754 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.906e-05/0.1526, allocations: 11.42 kB / 0.4943 GB, free: 4.742 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1526, allocations: 4.125 kB / 0.4943 GB, free: 4.738 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02269/0.1753, allocations: 2.535 MB / 0.4968 GB, free: 2.172 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.957/8.132, allocations: 0 / 0.4968 GB, free: 2.172 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches