Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestReadFile",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.005365/0.005365, allocations: 99.86 kB / 15.87 MB, free: 6.309 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.001161/0.001161, allocations: 190.4 kB / 16.78 MB, free: 6.238 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.244/1.244, allocations: 205.1 MB / 222.6 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3016/0.3016, allocations: 43.49 MB / 313.5 MB, free: 8.664 MB / 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.001608/0.001608, allocations: 63.91 kB / 382.1 MB, free: 8.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.116, allocations: 57.78 MB / 439.9 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001613/0.1177, allocations: 0.5542 MB / 440.5 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.1189, allocations: 0.7651 MB / 441.2 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.126e-05/0.1189, allocations: 0 / 441.2 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.253e-05/0.1189, allocations: 0 / 441.2 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001193/0.119, allocations: 4 kB / 441.2 MB, free: 13.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005236/0.1196, allocations: 43.89 kB / 441.3 MB, free: 13.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.265e-05/0.1196, allocations: 15.98 kB / 441.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.907e-05/0.1197, allocations: 3.938 kB / 441.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.094e-05/0.1197, allocations: 4 kB / 441.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.479e-05/0.1198, allocations: 0 / 441.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.312e-06/0.1198, allocations: 0 / 441.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.1199, allocations: 55.89 kB / 441.3 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.493e-06/0.1199, allocations: 0 / 441.3 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.865e-05/0.1199, allocations: 3.984 kB / 441.4 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001111/0.12, allocations: 51.88 kB / 441.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1201, allocations: 0 / 441.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.31e-07/0.1201, allocations: 0 / 441.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.1201, allocations: 4 kB / 441.4 MB, free: 13.22 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.0003773/0.1205, allocations: 357.2 kB / 441.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.1205, allocations: 8.031 kB / 441.8 MB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.915e-05/0.1205, allocations: 38.69 kB / 441.8 MB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.054e-05/0.1206, allocations: 0.9375 kB / 441.8 MB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.1207, allocations: 164.4 kB / 442 MB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-06/0.1207, allocations: 384 / 442 MB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.676e-06/0.1207, allocations: 384 / 442 MB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.77e-05/0.1208, allocations: 38.2 kB / 442 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.1208, allocations: 3.938 kB / 442 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.732e-06/0.1208, allocations: 0 / 442 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.1208, allocations: 0 / 442 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.481e-05/0.1208, allocations: 4 kB / 442 MB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001386/0.121, allocations: 150 kB / 442.2 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.233e-05/0.121, allocations: 14.58 kB / 442.2 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.627e-05/0.121, allocations: 12.94 kB / 442.2 MB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.041e-06/0.1211, allocations: 4 kB / 442.2 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.924e-05/0.1211, allocations: 60.2 kB / 442.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.1211, allocations: 0 / 442.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001462/0.1213, allocations: 71.33 kB / 442.3 MB, free: 12.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.1213, allocations: 81.11 kB / 442.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.462e-05/0.1214, allocations: 89.86 kB / 442.5 MB, free: 11.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.1214, allocations: 25.95 kB / 442.5 MB, free: 11.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.716e-05/0.1214, allocations: 88.08 kB / 442.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.323e-05/0.1215, allocations: 3.938 kB / 442.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.1215, allocations: 17.72 kB / 442.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.1216, allocations: 310.8 kB / 442.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.057e-05/0.1216, allocations: 3.984 kB / 442.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.753e-06/0.1216, allocations: 4 kB / 442.9 MB, free: 11.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.102e-05/0.1217, allocations: 64.2 kB / 443 MB, free: 11.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1217, allocations: 4.062 kB / 443 MB, free: 11.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.965e-05/0.1218, allocations: 59.41 kB / 443.1 MB, free: 11.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.862e-05/0.1218, allocations: 41.62 kB / 443.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-06/0.1218, allocations: 0 / 443.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.346e-06/0.1218, allocations: 0 / 443.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.1218, allocations: 0 / 443.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.1219, allocations: 0 / 443.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.377e-05/0.1219, allocations: 0 / 443.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-06/0.1219, allocations: 4 kB / 443.1 MB, free: 11.25 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 7.5e-05/0.122, allocations: 135.6 kB / 443.2 MB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.979e-06/0.122, allocations: 7.938 kB / 443.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.797e-06/0.122, allocations: 3.125 kB / 443.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.122, allocations: 0 / 443.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.122, allocations: 0 / 443.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.122, allocations: 3.984 kB / 443.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.656e-05/0.1221, allocations: 149.6 kB / 443.4 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1221, allocations: 4 kB / 443.4 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.8e-07/0.1221, allocations: 3.938 kB / 443.4 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.1221, allocations: 7.938 kB / 443.4 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.209e-06/0.1221, allocations: 4 kB / 443.4 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.1221, allocations: 0 / 443.4 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.1221, allocations: 0 / 443.4 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.211e-05/0.1222, allocations: 94.73 kB / 443.5 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.759e-05/0.1223, allocations: 77.11 kB / 443.6 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.1223, allocations: 7.938 kB / 443.6 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.099e-05/0.1223, allocations: 3.984 kB / 443.6 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.236e-06/0.1223, allocations: 0 / 443.6 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-06/0.1223, allocations: 4.031 kB / 443.6 MB, free: 10.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.849e-05/0.1224, allocations: 75.28 kB / 443.7 MB, free: 10.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1224, allocations: 3.938 kB / 443.7 MB, free: 10.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000211/0.1226, allocations: 20 kB / 443.7 MB, free: 10.55 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.0005412/0.1231, allocations: 0.7248 MB / 444.4 MB, free: 9.809 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.321e-05/0.1232, allocations: 63.39 kB / 444.5 MB, free: 9.734 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1232, allocations: 0 / 444.5 MB, free: 9.734 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.135e-05/0.1233, allocations: 59.47 kB / 444.5 MB, free: 9.664 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001169/0.1234, allocations: 3.938 kB / 444.5 MB, free: 9.66 MB / 382.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002885/0.1237, allocations: 120.3 kB / 444.7 MB, free: 9.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.1239, allocations: 0.677 MB / 445.3 MB, free: 8.797 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.176e-06/0.1239, allocations: 0 / 445.3 MB, free: 8.797 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.681e-05/0.124, allocations: 11.42 kB / 445.3 MB, free: 8.785 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.124, allocations: 0 / 445.3 MB, free: 8.785 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.32/2.444, allocations: 1.35 MB / 446.7 MB, free: 7.426 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003046/2.444, allocations: 225.4 kB / 446.9 MB, free: 7.172 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/4.151, allocations: 0 / 446.9 MB, free: 7.172 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches