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.001364/0.001364, allocations: 101.9 kB / 20.48 MB, free: 1.383 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.001442/0.001442, allocations: 213.2 kB / 23.77 MB, free: 4.551 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.481/1.481, allocations: 207.7 MB / 234.6 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.2419/0.2419, allocations: 44.27 MB / 331.1 MB, free: 9.312 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.002249/0.002249, allocations: 65.62 kB / 468.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1261, allocations: 61.06 MB / 0.5169 GB, free: 7.199 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001727/0.1278, allocations: 499 kB / 0.5174 GB, free: 6.711 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000599/0.1284, allocations: 207.5 kB / 0.5176 GB, free: 6.508 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.615e-05/0.1284, allocations: 0 / 0.5176 GB, free: 6.508 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.607e-05/0.1284, allocations: 7.938 kB / 0.5176 GB, free: 6.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.853e-06/0.1285, allocations: 0 / 0.5176 GB, free: 6.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002881/0.1287, allocations: 43.89 kB / 0.5176 GB, free: 6.457 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.802e-05/0.1288, allocations: 3.938 kB / 0.5176 GB, free: 6.453 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.062e-05/0.1288, allocations: 0 / 0.5176 GB, free: 6.453 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.126e-05/0.1289, allocations: 7.938 kB / 0.5176 GB, free: 6.445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.67e-05/0.1289, allocations: 0 / 0.5176 GB, free: 6.445 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.033e-06/0.1289, allocations: 3.938 kB / 0.5176 GB, free: 6.441 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001385/0.129, allocations: 47.94 kB / 0.5177 GB, free: 6.395 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.015e-05/0.129, allocations: 0 / 0.5177 GB, free: 6.395 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.861e-05/0.1291, allocations: 8 kB / 0.5177 GB, free: 6.387 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001402/0.1292, allocations: 47.88 kB / 0.5177 GB, free: 6.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1292, allocations: 0 / 0.5177 GB, free: 6.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1292, allocations: 0 / 0.5177 GB, free: 6.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.1292, allocations: 0 / 0.5177 GB, free: 6.34 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.0003685/0.1296, allocations: 276 kB / 0.518 GB, free: 6.031 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.1296, allocations: 15.97 kB / 0.518 GB, free: 6.016 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.046e-05/0.1297, allocations: 192 / 0.518 GB, free: 6.016 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.582e-05/0.1297, allocations: 30.75 kB / 0.518 GB, free: 5.977 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.787e-05/0.1297, allocations: 4.891 kB / 0.5181 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.769e-05/0.1298, allocations: 106.5 kB / 0.5182 GB, free: 5.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.1298, allocations: 4.375 kB / 0.5182 GB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.035e-06/0.1298, allocations: 384 / 0.5182 GB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001289/0.13, allocations: 67.66 kB / 0.5182 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.13, allocations: 0 / 0.5182 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-06/0.13, allocations: 0 / 0.5182 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.13, allocations: 0 / 0.5182 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.702e-05/0.13, allocations: 29.69 kB / 0.5182 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.1302, allocations: 116.8 kB / 0.5184 GB, free: 5.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.15e-05/0.1302, allocations: 40.28 kB / 0.5184 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.1e-05/0.1303, allocations: 38.66 kB / 0.5184 GB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.699e-06/0.1303, allocations: 4 kB / 0.5184 GB, free: 5.465 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.576e-05/0.1303, allocations: 68.12 kB / 0.5185 GB, free: 5.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.1303, allocations: 0 / 0.5185 GB, free: 5.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002164/0.1305, allocations: 114.8 kB / 0.5186 GB, free: 5.246 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.366e-05/0.1306, allocations: 81.11 kB / 0.5187 GB, free: 5.148 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.837e-05/0.1307, allocations: 89.86 kB / 0.5188 GB, free: 5.051 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.1307, allocations: 25.7 kB / 0.5188 GB, free: 5.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.606e-05/0.1307, allocations: 84.12 kB / 0.5189 GB, free: 4.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.1307, allocations: 3.984 kB / 0.5189 GB, free: 4.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.991e-05/0.1308, allocations: 13.72 kB / 0.5189 GB, free: 4.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1309, allocations: 311 kB / 0.5192 GB, free: 4.598 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.878e-05/0.131, allocations: 33.7 kB / 0.5192 GB, free: 4.559 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.023e-05/0.131, allocations: 25.7 kB / 0.5193 GB, free: 4.527 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.297e-05/0.131, allocations: 68.2 kB / 0.5193 GB, free: 4.445 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.131, allocations: 0 / 0.5193 GB, free: 4.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001078/0.1311, allocations: 89.09 kB / 0.5194 GB, free: 4.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.801e-05/0.1312, allocations: 33.64 kB / 0.5194 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/0.1312, allocations: 0 / 0.5194 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.1312, allocations: 3.938 kB / 0.5194 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.1312, allocations: 0 / 0.5194 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.1312, allocations: 4.094 kB / 0.5194 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.03e-05/0.1312, allocations: 7.938 kB / 0.5194 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-06/0.1313, allocations: 0 / 0.5194 GB, free: 4.285 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.0001211/0.1314, allocations: 143.5 kB / 0.5196 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.23e-05/0.1314, allocations: 7.922 kB / 0.5196 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.648e-06/0.1314, allocations: 3 kB / 0.5196 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-06/0.1314, allocations: 0 / 0.5196 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.1314, allocations: 4 kB / 0.5196 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1314, allocations: 0 / 0.5196 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001055/0.1315, allocations: 124.7 kB / 0.5197 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1315, allocations: 4 kB / 0.5197 GB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.1315, allocations: 0 / 0.5197 GB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1315, allocations: 3.938 kB / 0.5197 GB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.313e-06/0.1315, allocations: 0 / 0.5197 GB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1315, allocations: 0 / 0.5197 GB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1315, allocations: 0 / 0.5197 GB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.1317, allocations: 120.5 kB / 0.5198 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.233e-06/0.1317, allocations: 4 kB / 0.5198 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.1317, allocations: 3.938 kB / 0.5199 GB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.787e-06/0.1317, allocations: 0 / 0.5199 GB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.392e-05/0.1317, allocations: 8.031 kB / 0.5199 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.1317, allocations: 4 kB / 0.5199 GB, free: 3.777 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.796e-05/0.1317, allocations: 76.39 kB / 0.5199 GB, free: 3.703 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1317, allocations: 0 / 0.5199 GB, free: 3.703 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002369/0.132, allocations: 23.86 kB / 0.52 GB, free: 3.68 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.000865/0.1328, allocations: 0.7642 MB / 0.5207 GB, free: 2.895 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001638/0.133, allocations: 110.8 kB / 0.5208 GB, free: 2.762 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.133, allocations: 0 / 0.5208 GB, free: 2.762 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.609e-05/0.1331, allocations: 81.11 kB / 0.5209 GB, free: 2.664 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001501/0.1332, allocations: 10.12 kB / 0.5209 GB, free: 2.656 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003758/0.1336, allocations: 156.2 kB / 0.521 GB, free: 2.457 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.521e-05/0.1336, allocations: 55.36 kB / 0.5211 GB, free: 2.383 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.16e-06/0.1337, allocations: 0 / 0.5211 GB, free: 2.383 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.801e-05/0.1337, allocations: 11.42 kB / 0.5211 GB, free: 2.371 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1337, allocations: 0 / 0.5211 GB, free: 2.371 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02072/0.1544, allocations: 1.573 MB / 0.5226 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/11.8, allocations: 4.062 kB / 0.5226 GB, free: 0.7852 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.742263842956163]