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.0017/0.0017, allocations: 111.7 kB / 19.69 MB, free: 2.188 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.002208/0.002208, allocations: 210.7 kB / 23 MB, free: 5.008 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.545/1.545, allocations: 207.6 MB / 233.8 MB, free: 10.01 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.2285/0.2285, allocations: 44.24 MB / 330.3 MB, free: 9.617 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.002246/0.002246, allocations: 79.89 kB / 467.5 MB, free: 4.551 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1248, allocations: 61.04 MB / 0.5161 GB, free: 7.379 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001835/0.1267, allocations: 0.4951 MB / 0.5166 GB, free: 6.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006512/0.1273, allocations: 217.1 kB / 0.5168 GB, free: 6.672 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.646e-05/0.1274, allocations: 0 / 0.5168 GB, free: 6.672 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.595e-05/0.1274, allocations: 0 / 0.5168 GB, free: 6.672 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.356e-06/0.1274, allocations: 8 kB / 0.5168 GB, free: 6.664 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003544/0.1277, allocations: 39.84 kB / 0.5169 GB, free: 6.625 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.121e-05/0.1278, allocations: 7.984 kB / 0.5169 GB, free: 6.617 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.896e-05/0.1279, allocations: 7.984 kB / 0.5169 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.355e-05/0.1279, allocations: 0 / 0.5169 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.552e-05/0.1279, allocations: 0 / 0.5169 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.313e-06/0.1279, allocations: 0 / 0.5169 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.1281, allocations: 47.95 kB / 0.5169 GB, free: 6.562 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.276e-06/0.1281, allocations: 3.938 kB / 0.5169 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.402e-05/0.1281, allocations: 0 / 0.5169 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.1282, allocations: 51.81 kB / 0.517 GB, free: 6.508 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1282, allocations: 4 kB / 0.517 GB, free: 6.504 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1282, allocations: 4 kB / 0.517 GB, free: 6.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.1282, allocations: 0 / 0.517 GB, free: 6.5 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.0004309/0.1287, allocations: 276 kB / 0.5172 GB, free: 6.191 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.1287, allocations: 8.031 kB / 0.5173 GB, free: 6.184 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.822e-05/0.1288, allocations: 34.69 kB / 0.5173 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.152e-05/0.1288, allocations: 4.891 kB / 0.5173 GB, free: 6.137 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.824e-05/0.1289, allocations: 110.5 kB / 0.5174 GB, free: 6.004 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.1289, allocations: 384 / 0.5174 GB, free: 6.004 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.005e-06/0.1289, allocations: 4.375 kB / 0.5174 GB, free: 6 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001018/0.129, allocations: 30.27 kB / 0.5174 GB, free: 5.965 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.129, allocations: 3.938 kB / 0.5174 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.615e-06/0.129, allocations: 0 / 0.5174 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.129, allocations: 0 / 0.5174 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.95e-05/0.1291, allocations: 0 / 0.5174 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001462/0.1292, allocations: 120.8 kB / 0.5175 GB, free: 5.801 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.781e-05/0.1293, allocations: 22.5 kB / 0.5176 GB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.422e-05/0.1293, allocations: 8.859 kB / 0.5176 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.755e-06/0.1293, allocations: 96 / 0.5176 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.279e-05/0.1293, allocations: 60.27 kB / 0.5176 GB, free: 5.684 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1293, allocations: 3.938 kB / 0.5176 GB, free: 5.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001931/0.1295, allocations: 67.34 kB / 0.5177 GB, free: 5.602 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.213e-05/0.1296, allocations: 85.03 kB / 0.5178 GB, free: 5.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.789e-05/0.1297, allocations: 89.86 kB / 0.5179 GB, free: 5.402 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.1297, allocations: 29.83 kB / 0.5179 GB, free: 5.367 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.1297, allocations: 80.14 kB / 0.518 GB, free: 5.285 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/0.1297, allocations: 0 / 0.518 GB, free: 5.285 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.1298, allocations: 13.72 kB / 0.518 GB, free: 5.266 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1299, allocations: 314.8 kB / 0.5183 GB, free: 4.949 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.848e-06/0.1299, allocations: 0 / 0.5183 GB, free: 4.949 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.654e-06/0.1299, allocations: 4 kB / 0.5183 GB, free: 4.945 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.49e-05/0.13, allocations: 60.33 kB / 0.5184 GB, free: 4.871 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.13, allocations: 7.984 kB / 0.5184 GB, free: 4.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.98e-05/0.1301, allocations: 59.34 kB / 0.5184 GB, free: 4.793 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.049e-05/0.1301, allocations: 37.7 kB / 0.5185 GB, free: 4.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.1301, allocations: 3.938 kB / 0.5185 GB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.1301, allocations: 0 / 0.5185 GB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.825e-06/0.1301, allocations: 3.984 kB / 0.5185 GB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.1301, allocations: 0 / 0.5185 GB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.751e-05/0.1302, allocations: 7.938 kB / 0.5185 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.1302, allocations: 4 kB / 0.5185 GB, free: 4.73 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 9.963e-05/0.1303, allocations: 139.6 kB / 0.5186 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.464e-06/0.1303, allocations: 0 / 0.5186 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.058e-05/0.1303, allocations: 6.938 kB / 0.5186 GB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.1303, allocations: 4 kB / 0.5186 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1303, allocations: 0 / 0.5186 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1303, allocations: 0 / 0.5186 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001051/0.1304, allocations: 116.8 kB / 0.5187 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1304, allocations: 0 / 0.5187 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1304, allocations: 0 / 0.5187 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.1304, allocations: 4 kB / 0.5187 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.1304, allocations: 7.938 kB / 0.5187 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.1304, allocations: 0 / 0.5187 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1304, allocations: 0 / 0.5187 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001154/0.1305, allocations: 94.77 kB / 0.5188 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.835e-06/0.1305, allocations: 8 kB / 0.5188 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.39e-05/0.1305, allocations: 7.875 kB / 0.5188 GB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.697e-06/0.1306, allocations: 0 / 0.5188 GB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.411e-05/0.1306, allocations: 8.031 kB / 0.5188 GB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.1306, allocations: 0 / 0.5188 GB, free: 4.262 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.972e-05/0.1306, allocations: 75.28 kB / 0.5189 GB, free: 4.188 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1306, allocations: 0 / 0.5189 GB, free: 4.188 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002343/0.1308, allocations: 23.86 kB / 0.5189 GB, free: 4.164 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.0009321/0.1318, allocations: 0.7159 MB / 0.5196 GB, free: 3.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001229/0.1319, allocations: 67.33 kB / 0.5197 GB, free: 3.352 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1319, allocations: 4 kB / 0.5197 GB, free: 3.348 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.394e-05/0.1319, allocations: 51.41 kB / 0.5198 GB, free: 3.285 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001397/0.1321, allocations: 4 kB / 0.5198 GB, free: 3.281 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003424/0.1324, allocations: 118.5 kB / 0.5199 GB, free: 3.125 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.1328, allocations: 0.6728 MB / 0.5205 GB, free: 2.426 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.551e-06/0.1328, allocations: 0 / 0.5205 GB, free: 2.426 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.591e-05/0.1328, allocations: 7.438 kB / 0.5205 GB, free: 2.418 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1328, allocations: 4.125 kB / 0.5205 GB, free: 2.414 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02949/0.1623, allocations: 1.515 MB / 0.522 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11, allocations: 16 kB / 0.522 GB, free: 0.8828 MB / 398.1 MB " [Timeout remaining time 649] (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.041555183001037]