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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 110.7 kB / 16.41 MB, free: 6.48 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.001284/0.001284, allocations: 185.5 kB / 17.34 MB, free: 5.742 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.57/1.57, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2082/0.2082, allocations: 43.53 MB / 314.1 MB, free: 452 kB / 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.001916/0.001916, allocations: 65.47 kB / 441.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1214, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001704/0.1231, allocations: 495 kB / 499.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006595/0.1238, allocations: 226.2 kB / 499.8 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.952e-05/0.1239, allocations: 0 / 499.8 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.993e-05/0.1239, allocations: 0 / 499.8 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.853e-06/0.124, allocations: 0 / 499.8 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.1243, allocations: 43.84 kB / 499.8 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.64e-05/0.1244, allocations: 0 / 499.8 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.48e-05/0.1245, allocations: 3.984 kB / 499.8 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.909e-05/0.1245, allocations: 0 / 499.8 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.678e-05/0.1245, allocations: 4 kB / 499.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.144e-06/0.1245, allocations: 0 / 499.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001591/0.1247, allocations: 51.94 kB / 499.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.066e-05/0.1247, allocations: 4 kB / 499.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.626e-05/0.1248, allocations: 7.938 kB / 499.9 MB, free: 11.51 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000149/0.1249, allocations: 39.89 kB / 499.9 MB, free: 11.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1249, allocations: 4 kB / 499.9 MB, free: 11.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1249, allocations: 0 / 499.9 MB, free: 11.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.1249, allocations: 0 / 499.9 MB, free: 11.47 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.0003982/0.1253, allocations: 353.2 kB / 0.4885 GB, free: 11.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.1254, allocations: 11.89 kB / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.804e-05/0.1254, allocations: 30.75 kB / 0.4886 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.85e-05/0.1255, allocations: 4.938 kB / 0.4886 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.1256, allocations: 168.4 kB / 0.4888 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.1256, allocations: 384 / 0.4888 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.625e-06/0.1256, allocations: 4.312 kB / 0.4888 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.403e-05/0.1257, allocations: 34.27 kB / 0.4888 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.1258, allocations: 3.938 kB / 0.4888 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.1258, allocations: 0 / 0.4888 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.1258, allocations: 3.938 kB / 0.4888 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.36e-05/0.1258, allocations: 0 / 0.4888 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001668/0.126, allocations: 149.7 kB / 0.4889 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.889e-05/0.126, allocations: 18.58 kB / 0.489 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.675e-05/0.1261, allocations: 8.797 kB / 0.489 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.368e-06/0.1261, allocations: 4.094 kB / 0.489 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/0.1261, allocations: 60.27 kB / 0.489 GB, free: 10.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.863e-06/0.1261, allocations: 0 / 0.489 GB, free: 10.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002056/0.1263, allocations: 67.33 kB / 0.4891 GB, free: 10.37 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.1264, allocations: 81.23 kB / 0.4892 GB, free: 10.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.222e-05/0.1265, allocations: 89.86 kB / 0.4893 GB, free: 10.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.1265, allocations: 25.7 kB / 0.4893 GB, free: 10.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.641e-05/0.1265, allocations: 80.14 kB / 0.4894 GB, free: 10.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.476e-05/0.1265, allocations: 7.984 kB / 0.4894 GB, free: 10.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.001e-05/0.1266, allocations: 13.72 kB / 0.4894 GB, free: 10.03 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.1267, allocations: 310.8 kB / 0.4897 GB, free: 9.719 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.436e-05/0.1267, allocations: 3.938 kB / 0.4897 GB, free: 9.715 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.705e-06/0.1268, allocations: 8 kB / 0.4897 GB, free: 9.707 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.579e-05/0.1268, allocations: 64.25 kB / 0.4897 GB, free: 9.629 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1268, allocations: 0 / 0.4897 GB, free: 9.629 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.674e-05/0.1269, allocations: 59.41 kB / 0.4898 GB, free: 9.559 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.952e-05/0.1269, allocations: 33.7 kB / 0.4898 GB, free: 9.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.127, allocations: 3.938 kB / 0.4898 GB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.127, allocations: 0 / 0.4898 GB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.283e-06/0.127, allocations: 0 / 0.4898 GB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.127, allocations: 3.984 kB / 0.4898 GB, free: 9.512 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.697e-05/0.127, allocations: 4.094 kB / 0.4898 GB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.301e-05/0.127, allocations: 8 kB / 0.4899 GB, free: 9.5 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 9.427e-05/0.1271, allocations: 143.4 kB / 0.49 GB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.506e-06/0.1272, allocations: 0 / 0.49 GB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.926e-05/0.1272, allocations: 11.06 kB / 0.49 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1272, allocations: 0 / 0.49 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1272, allocations: 0 / 0.49 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1272, allocations: 0 / 0.49 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001014/0.1273, allocations: 145.7 kB / 0.4901 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1273, allocations: 4 kB / 0.4901 GB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.212e-06/0.1273, allocations: 3.938 kB / 0.4901 GB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.1273, allocations: 4 kB / 0.4902 GB, free: 9.125 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.1274, allocations: 7.938 kB / 0.4902 GB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.1274, allocations: 0 / 0.4902 GB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1274, allocations: 0 / 0.4902 GB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001108/0.1275, allocations: 90.83 kB / 0.4902 GB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.695e-05/0.1275, allocations: 77.11 kB / 0.4903 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.1276, allocations: 7.969 kB / 0.4903 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.06e-05/0.1276, allocations: 0 / 0.4903 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.265e-05/0.1276, allocations: 0 / 0.4903 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.1276, allocations: 4 kB / 0.4903 GB, free: 8.898 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.218e-05/0.1276, allocations: 79.22 kB / 0.4904 GB, free: 8.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1276, allocations: 0 / 0.4904 GB, free: 8.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002532/0.1279, allocations: 19.98 kB / 0.4904 GB, free: 8.801 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.0006921/0.1286, allocations: 0.7231 MB / 0.4911 GB, free: 8.059 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001004/0.1287, allocations: 59.39 kB / 0.4912 GB, free: 7.988 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1287, allocations: 0 / 0.4912 GB, free: 7.988 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.431e-05/0.1288, allocations: 59.34 kB / 0.4912 GB, free: 7.918 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001431/0.1289, allocations: 8.766 kB / 0.4913 GB, free: 7.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003054/0.1292, allocations: 126.5 kB / 0.4914 GB, free: 7.746 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002083/0.1295, allocations: 0.669 MB / 0.492 GB, free: 7.051 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.797e-06/0.1295, allocations: 128 / 0.492 GB, free: 7.051 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.531e-05/0.1295, allocations: 23.31 kB / 0.492 GB, free: 7.027 MB / 382.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1295, allocations: 0 / 0.492 GB, free: 7.027 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01865/0.1481, allocations: 1.388 MB / 0.4934 GB, free: 5.629 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.389/7.537, allocations: 7.422 kB / 0.4934 GB, free: 5.625 MB / 382.1 MB (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) 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) Reference file matches