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.001841/0.001841, allocations: 109 kB / 20.48 MB, free: 1.492 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.002316/0.002316, allocations: 218.2 kB / 23.79 MB, free: 4.707 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.498/1.498, allocations: 207.6 MB / 234.6 MB, free: 9.992 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.2349/0.2349, allocations: 44.23 MB / 331.1 MB, free: 9.535 MB / 270.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="cs",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.002166/0.002166, allocations: 71.84 kB / 468.3 MB, free: 4.551 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1215, allocations: 61.04 MB / 0.5169 GB, free: 7.371 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001657/0.1231, allocations: 0.4942 MB / 0.5174 GB, free: 6.879 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000586/0.1237, allocations: 223.3 kB / 0.5176 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.029e-05/0.1237, allocations: 0 / 0.5176 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.445e-05/0.1238, allocations: 0 / 0.5176 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.84e-06/0.1238, allocations: 0 / 0.5176 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002748/0.124, allocations: 43.83 kB / 0.5176 GB, free: 6.617 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.533e-05/0.1241, allocations: 4 kB / 0.5176 GB, free: 6.613 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.252e-05/0.1241, allocations: 0 / 0.5176 GB, free: 6.613 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.651e-05/0.1241, allocations: 3.984 kB / 0.5176 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.066e-05/0.1242, allocations: 4 kB / 0.5176 GB, free: 6.605 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.711e-06/0.1242, allocations: 4 kB / 0.5176 GB, free: 6.602 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001254/0.1243, allocations: 47.95 kB / 0.5177 GB, free: 6.555 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.394e-06/0.1243, allocations: 0 / 0.5177 GB, free: 6.555 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.033e-05/0.1243, allocations: 0 / 0.5177 GB, free: 6.555 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001257/0.1245, allocations: 59.8 kB / 0.5177 GB, free: 6.496 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1245, allocations: 0 / 0.5177 GB, free: 6.496 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1245, allocations: 0 / 0.5177 GB, free: 6.496 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.89e-06/0.1245, allocations: 0 / 0.5177 GB, free: 6.496 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.000332/0.1248, allocations: 272 kB / 0.518 GB, free: 6.191 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.1248, allocations: 12.03 kB / 0.518 GB, free: 6.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.388e-05/0.1249, allocations: 192 / 0.518 GB, free: 6.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.774e-05/0.1249, allocations: 38.75 kB / 0.5181 GB, free: 6.133 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.331e-05/0.1249, allocations: 4.891 kB / 0.5181 GB, free: 6.129 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.329e-05/0.125, allocations: 106.5 kB / 0.5182 GB, free: 6 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.125, allocations: 4.375 kB / 0.5182 GB, free: 5.996 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.005e-05/0.125, allocations: 384 / 0.5182 GB, free: 5.996 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.375e-05/0.1251, allocations: 34.02 kB / 0.5182 GB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-06/0.1251, allocations: 0 / 0.5182 GB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.013e-06/0.1251, allocations: 4 kB / 0.5182 GB, free: 5.953 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.1251, allocations: 0 / 0.5182 GB, free: 5.953 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.925e-05/0.1251, allocations: 7.984 kB / 0.5182 GB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000142/0.1253, allocations: 120.7 kB / 0.5183 GB, free: 5.785 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.635e-05/0.1253, allocations: 22.55 kB / 0.5183 GB, free: 5.754 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.38e-05/0.1253, allocations: 4.859 kB / 0.5184 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.857e-06/0.1253, allocations: 0 / 0.5184 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.936e-05/0.1254, allocations: 64.2 kB / 0.5184 GB, free: 5.668 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.01e-07/0.1254, allocations: 3.938 kB / 0.5184 GB, free: 5.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001737/0.1256, allocations: 67.45 kB / 0.5185 GB, free: 5.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.1256, allocations: 77.11 kB / 0.5186 GB, free: 5.492 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.693e-05/0.1257, allocations: 93.86 kB / 0.5186 GB, free: 5.391 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.1257, allocations: 25.7 kB / 0.5187 GB, free: 5.359 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.76e-05/0.1257, allocations: 80.14 kB / 0.5187 GB, free: 5.277 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.689e-05/0.1257, allocations: 3.938 kB / 0.5187 GB, free: 5.273 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.814e-05/0.1258, allocations: 13.84 kB / 0.5188 GB, free: 5.254 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.1259, allocations: 318.8 kB / 0.5191 GB, free: 4.934 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.009e-05/0.1259, allocations: 0 / 0.5191 GB, free: 4.934 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.949e-06/0.1259, allocations: 0 / 0.5191 GB, free: 4.934 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.819e-05/0.126, allocations: 64.27 kB / 0.5191 GB, free: 4.855 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.126, allocations: 0 / 0.5191 GB, free: 4.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.476e-05/0.1261, allocations: 59.41 kB / 0.5192 GB, free: 4.785 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.69e-05/0.1261, allocations: 41.72 kB / 0.5192 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.1261, allocations: 0 / 0.5192 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.1261, allocations: 0 / 0.5192 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.127e-05/0.1261, allocations: 0 / 0.5192 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.1262, allocations: 7.938 kB / 0.5192 GB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.714e-05/0.1262, allocations: 0 / 0.5192 GB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.1262, allocations: 0 / 0.5192 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 0.0001141/0.1263, allocations: 139.5 kB / 0.5194 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.042e-05/0.1263, allocations: 3.938 kB / 0.5194 GB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.117e-05/0.1263, allocations: 7 kB / 0.5194 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.1263, allocations: 0 / 0.5194 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.1263, allocations: 0 / 0.5194 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1263, allocations: 3.984 kB / 0.5194 GB, free: 4.566 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001099/0.1264, allocations: 116.8 kB / 0.5195 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.52e-07/0.1264, allocations: 0 / 0.5195 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.41e-07/0.1264, allocations: 0 / 0.5195 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.1264, allocations: 3.938 kB / 0.5195 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.1264, allocations: 0 / 0.5195 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1264, allocations: 0 / 0.5195 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.1264, allocations: 0 / 0.5195 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001196/0.1266, allocations: 95.97 kB / 0.5196 GB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.923e-06/0.1266, allocations: 4 kB / 0.5196 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.1266, allocations: 15.88 kB / 0.5196 GB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.946e-06/0.1266, allocations: 3.938 kB / 0.5196 GB, free: 4.266 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.005e-05/0.1266, allocations: 11.91 kB / 0.5196 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-06/0.1266, allocations: 0 / 0.5196 GB, free: 4.254 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.762e-05/0.1267, allocations: 75.28 kB / 0.5197 GB, free: 4.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1267, allocations: 4.031 kB / 0.5197 GB, free: 4.176 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002207/0.1269, allocations: 23.88 kB / 0.5197 GB, free: 4.152 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.0008429/0.1277, allocations: 0.7162 MB / 0.5204 GB, free: 3.418 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001212/0.1278, allocations: 59.41 kB / 0.5205 GB, free: 3.348 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.113e-06/0.1278, allocations: 3.938 kB / 0.5205 GB, free: 3.344 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.239e-05/0.1279, allocations: 55.41 kB / 0.5205 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001356/0.128, allocations: 6.312 kB / 0.5205 GB, free: 3.273 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003568/0.1284, allocations: 118.5 kB / 0.5206 GB, free: 3.117 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.1287, allocations: 0.669 MB / 0.5213 GB, free: 2.422 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.422e-06/0.1288, allocations: 0 / 0.5213 GB, free: 2.422 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.383e-05/0.1288, allocations: 7.438 kB / 0.5213 GB, free: 2.414 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1288, allocations: 0 / 0.5213 GB, free: 2.414 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02175/0.1505, allocations: 1.551 MB / 0.5228 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/11.79, allocations: 5.094 kB / 0.5228 GB, free: 0.8594 MB / 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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.776205928006675]