Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.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.001736/0.001736, allocations: 100.3 kB / 19.69 MB, free: 1.805 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.002055/0.002055, allocations: 212.7 kB / 22.99 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.471/1.471, allocations: 207.7 MB / 233.8 MB, free: 9.789 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2315/0.2315, allocations: 44.25 MB / 330.3 MB, free: 9.324 MB / 270.1 MB " [Timeout remaining time 180] 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.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(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002305/0.002305, allocations: 75.88 kB / 467.5 MB, free: 4.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1258, allocations: 61.04 MB / 0.5161 GB, free: 7.223 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001713/0.1275, allocations: 0.495 MB / 0.5166 GB, free: 6.727 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006012/0.1281, allocations: 213.1 kB / 0.5168 GB, free: 6.52 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.215e-05/0.1281, allocations: 0 / 0.5168 GB, free: 6.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.563e-05/0.1281, allocations: 4 kB / 0.5168 GB, free: 6.516 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.031e-06/0.1282, allocations: 0 / 0.5168 GB, free: 6.516 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002709/0.1284, allocations: 43.83 kB / 0.5169 GB, free: 6.473 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.843e-05/0.1285, allocations: 0 / 0.5169 GB, free: 6.473 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.288e-05/0.1285, allocations: 4 kB / 0.5169 GB, free: 6.469 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.709e-05/0.1285, allocations: 7.984 kB / 0.5169 GB, free: 6.461 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.617e-05/0.1286, allocations: 3.938 kB / 0.5169 GB, free: 6.457 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.059e-06/0.1286, allocations: 0 / 0.5169 GB, free: 6.457 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.1287, allocations: 43.97 kB / 0.5169 GB, free: 6.414 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.745e-06/0.1287, allocations: 0 / 0.5169 GB, free: 6.414 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.267e-05/0.1287, allocations: 7.969 kB / 0.5169 GB, free: 6.406 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001191/0.1288, allocations: 47.83 kB / 0.517 GB, free: 6.359 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1288, allocations: 4 kB / 0.517 GB, free: 6.355 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1288, allocations: 0 / 0.517 GB, free: 6.355 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.1289, allocations: 0 / 0.517 GB, free: 6.355 MB / 398.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.0003603/0.1292, allocations: 276 kB / 0.5172 GB, free: 6.047 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.1293, allocations: 15.97 kB / 0.5173 GB, free: 6.031 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.548e-05/0.1293, allocations: 34.73 kB / 0.5173 GB, free: 5.988 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.576e-05/0.1293, allocations: 4.891 kB / 0.5173 GB, free: 5.984 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.1294, allocations: 106.5 kB / 0.5174 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.685e-06/0.1294, allocations: 384 / 0.5174 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.018e-05/0.1294, allocations: 4.312 kB / 0.5174 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001093/0.1295, allocations: 59.95 kB / 0.5175 GB, free: 5.781 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.1296, allocations: 3.938 kB / 0.5175 GB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-06/0.1296, allocations: 0 / 0.5175 GB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.1296, allocations: 0 / 0.5175 GB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.714e-05/0.1296, allocations: 41.64 kB / 0.5175 GB, free: 5.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001395/0.1297, allocations: 112.8 kB / 0.5176 GB, free: 5.578 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.455e-05/0.1298, allocations: 44.31 kB / 0.5176 GB, free: 5.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4e-05/0.1298, allocations: 34.55 kB / 0.5177 GB, free: 5.477 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.685e-06/0.1299, allocations: 0 / 0.5177 GB, free: 5.477 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.025e-05/0.1299, allocations: 64.33 kB / 0.5177 GB, free: 5.398 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.61e-07/0.1299, allocations: 0 / 0.5177 GB, free: 5.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001969/0.1301, allocations: 122.7 kB / 0.5179 GB, free: 5.254 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.845e-05/0.1302, allocations: 77.11 kB / 0.5179 GB, free: 5.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.994e-05/0.1302, allocations: 93.86 kB / 0.518 GB, free: 5.059 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.1302, allocations: 29.83 kB / 0.518 GB, free: 5.023 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.436e-05/0.1303, allocations: 80.14 kB / 0.5181 GB, free: 4.941 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.1303, allocations: 4 kB / 0.5181 GB, free: 4.938 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.679e-05/0.1303, allocations: 9.719 kB / 0.5181 GB, free: 4.922 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1305, allocations: 310.8 kB / 0.5184 GB, free: 4.609 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.709e-05/0.1305, allocations: 29.7 kB / 0.5185 GB, free: 4.574 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.858e-05/0.1305, allocations: 25.7 kB / 0.5185 GB, free: 4.543 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.1307, allocations: 68.25 kB / 0.5186 GB, free: 4.461 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1307, allocations: 0 / 0.5186 GB, free: 4.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.255e-05/0.1308, allocations: 93.11 kB / 0.5186 GB, free: 4.352 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.1308, allocations: 29.7 kB / 0.5187 GB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.1308, allocations: 7.922 kB / 0.5187 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.1308, allocations: 4 kB / 0.5187 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.1308, allocations: 0 / 0.5187 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.1308, allocations: 0 / 0.5187 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.437e-05/0.1308, allocations: 0 / 0.5187 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.1308, allocations: 0 / 0.5187 GB, free: 4.305 MB / 398.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 0.0001312/0.131, allocations: 139.5 kB / 0.5188 GB, free: 4.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.193e-06/0.131, allocations: 0 / 0.5188 GB, free: 4.152 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.307e-06/0.131, allocations: 10.97 kB / 0.5188 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.131, allocations: 0 / 0.5188 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.131, allocations: 7.938 kB / 0.5188 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.131, allocations: 3.938 kB / 0.5188 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.929e-05/0.1311, allocations: 120.8 kB / 0.519 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1311, allocations: 0 / 0.519 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1311, allocations: 0 / 0.519 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.1311, allocations: 0 / 0.519 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.447e-06/0.1311, allocations: 3.938 kB / 0.519 GB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1311, allocations: 4 kB / 0.519 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1311, allocations: 0 / 0.519 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001293/0.1312, allocations: 128.5 kB / 0.5191 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.797e-06/0.1312, allocations: 0 / 0.5191 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.1313, allocations: 3.938 kB / 0.5191 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.296e-05/0.1313, allocations: 4 kB / 0.5191 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.311e-05/0.1313, allocations: 4 kB / 0.5191 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.1313, allocations: 0 / 0.5191 GB, free: 3.797 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.679e-05/0.1313, allocations: 83.27 kB / 0.5192 GB, free: 3.715 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1313, allocations: 0 / 0.5192 GB, free: 3.715 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002242/0.1315, allocations: 19.88 kB / 0.5192 GB, free: 3.695 MB / 398.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.0008608/0.1324, allocations: 0.7526 MB / 0.5199 GB, free: 2.922 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001304/0.1325, allocations: 114.8 kB / 0.52 GB, free: 2.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1325, allocations: 4 kB / 0.52 GB, free: 2.781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.176e-05/0.1326, allocations: 81.09 kB / 0.5201 GB, free: 2.684 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.1327, allocations: 6.188 kB / 0.5201 GB, free: 2.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003104/0.133, allocations: 148.1 kB / 0.5203 GB, free: 2.488 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.514e-05/0.1331, allocations: 55.36 kB / 0.5203 GB, free: 2.414 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.9e-06/0.1331, allocations: 0 / 0.5203 GB, free: 2.414 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.363e-05/0.1331, allocations: 7.438 kB / 0.5203 GB, free: 2.406 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1331, allocations: 0 / 0.5203 GB, free: 2.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02874/0.1618, allocations: 1.937 MB / 0.5222 GB, free: 472 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.51, allocations: 3.938 kB / 0.5222 GB, free: 468 kB / 398.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.566646379884332]