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.001305/0.001305, allocations: 110.6 kB / 16.41 MB, free: 6.445 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.001257/0.001258, allocations: 185.5 kB / 17.34 MB, free: 5.738 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.56/1.56, allocations: 205.1 MB / 223.2 MB, free: 12.29 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.2386/0.2386, allocations: 43.52 MB / 314.1 MB, free: 472 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.001963/0.001963, allocations: 67.91 kB / 441.3 MB, free: 6.203 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1052, allocations: 57.78 MB / 499.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00139/0.1066, allocations: 494.6 kB / 499.6 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004913/0.1071, allocations: 218.2 kB / 499.8 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.306e-05/0.1071, allocations: 4 kB / 499.8 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.351e-05/0.1071, allocations: 0 / 499.8 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.959e-06/0.1072, allocations: 0 / 499.8 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002385/0.1074, allocations: 43.84 kB / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.77e-05/0.1075, allocations: 3.984 kB / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.32e-05/0.1075, allocations: 0 / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.235e-05/0.1075, allocations: 0 / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.368e-05/0.1075, allocations: 4 kB / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.629e-06/0.1076, allocations: 0 / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001192/0.1077, allocations: 47.94 kB / 499.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.905e-06/0.1077, allocations: 7.875 kB / 499.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.773e-05/0.1077, allocations: 8 kB / 499.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000106/0.1078, allocations: 47.83 kB / 499.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1078, allocations: 0 / 499.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1078, allocations: 0 / 499.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.1079, allocations: 0 / 499.9 MB, free: 11.49 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.0003415/0.1082, allocations: 353.2 kB / 0.4886 GB, free: 11.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.1082, allocations: 11.89 kB / 0.4886 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.142e-05/0.1083, allocations: 30.75 kB / 0.4886 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.254e-05/0.1083, allocations: 12.88 kB / 0.4886 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.1084, allocations: 164.4 kB / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.728e-06/0.1084, allocations: 384 / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.3e-06/0.1084, allocations: 384 / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.999e-05/0.1085, allocations: 30.27 kB / 0.4888 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.1085, allocations: 3.938 kB / 0.4888 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.79e-06/0.1085, allocations: 3.938 kB / 0.4888 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.1086, allocations: 0 / 0.4888 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.521e-05/0.1086, allocations: 3.938 kB / 0.4888 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000142/0.1087, allocations: 153.7 kB / 0.489 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.606e-05/0.1088, allocations: 18.58 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.218e-05/0.1088, allocations: 4.859 kB / 0.489 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.917e-06/0.1088, allocations: 4.094 kB / 0.489 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.439e-05/0.1088, allocations: 56.27 kB / 0.489 GB, free: 10.47 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.1088, allocations: 0 / 0.489 GB, free: 10.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001593/0.109, allocations: 75.27 kB / 0.4891 GB, free: 10.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.1091, allocations: 77.23 kB / 0.4892 GB, free: 10.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.36e-05/0.1091, allocations: 93.86 kB / 0.4893 GB, free: 10.19 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.1091, allocations: 25.7 kB / 0.4893 GB, free: 10.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.704e-05/0.1092, allocations: 80.14 kB / 0.4894 GB, free: 10.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.145e-05/0.1092, allocations: 0 / 0.4894 GB, free: 10.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.564e-05/0.1092, allocations: 13.72 kB / 0.4894 GB, free: 10.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1094, allocations: 314.8 kB / 0.4897 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.774e-06/0.1094, allocations: 0 / 0.4897 GB, free: 9.738 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.848e-06/0.1094, allocations: 7.984 kB / 0.4897 GB, free: 9.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.455e-05/0.1095, allocations: 64.33 kB / 0.4897 GB, free: 9.652 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.1095, allocations: 0 / 0.4897 GB, free: 9.652 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.494e-05/0.1095, allocations: 59.34 kB / 0.4898 GB, free: 9.582 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.141e-05/0.1096, allocations: 33.7 kB / 0.4898 GB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1096, allocations: 3.938 kB / 0.4898 GB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.1096, allocations: 3.984 kB / 0.4898 GB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.21e-07/0.1096, allocations: 0 / 0.4898 GB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.436e-06/0.1096, allocations: 0 / 0.4898 GB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.472e-05/0.1096, allocations: 7.938 kB / 0.4899 GB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.184e-06/0.1096, allocations: 8.031 kB / 0.4899 GB, free: 9.52 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.295e-05/0.1097, allocations: 143.5 kB / 0.49 GB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.633e-06/0.1097, allocations: 0 / 0.49 GB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.154e-05/0.1098, allocations: 7.062 kB / 0.49 GB, free: 9.352 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.1098, allocations: 4 kB / 0.49 GB, free: 9.348 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.1098, allocations: 0 / 0.49 GB, free: 9.348 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.1098, allocations: 0 / 0.49 GB, free: 9.348 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001081/0.1099, allocations: 149.7 kB / 0.4902 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1099, allocations: 3.938 kB / 0.4902 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1099, allocations: 4 kB / 0.4902 GB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.1099, allocations: 0 / 0.4902 GB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/0.1099, allocations: 7.938 kB / 0.4902 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.1099, allocations: 0 / 0.4902 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-07/0.1099, allocations: 0 / 0.4902 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.288e-05/0.11, allocations: 94.77 kB / 0.4903 GB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.464e-05/0.1101, allocations: 77.11 kB / 0.4903 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.1101, allocations: 3.938 kB / 0.4903 GB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.654e-06/0.1101, allocations: 4.031 kB / 0.4903 GB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.172e-05/0.1101, allocations: 0 / 0.4903 GB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.1101, allocations: 4 kB / 0.4903 GB, free: 8.914 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.38e-05/0.1102, allocations: 83.27 kB / 0.4904 GB, free: 8.832 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1102, allocations: 0 / 0.4904 GB, free: 8.832 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001906/0.1104, allocations: 15.94 kB / 0.4904 GB, free: 8.816 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.0009432/0.1113, allocations: 0.7283 MB / 0.4911 GB, free: 8.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001556/0.1115, allocations: 59.41 kB / 0.4912 GB, free: 8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1115, allocations: 0 / 0.4912 GB, free: 8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.744e-05/0.1116, allocations: 55.41 kB / 0.4913 GB, free: 7.934 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001999/0.1118, allocations: 7.75 kB / 0.4913 GB, free: 7.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004169/0.1122, allocations: 122.4 kB / 0.4914 GB, free: 7.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003895/0.1126, allocations: 0.6728 MB / 0.492 GB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.075e-06/0.1126, allocations: 3.938 kB / 0.492 GB, free: 7.066 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.643e-05/0.1127, allocations: 11.56 kB / 0.4921 GB, free: 7.055 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1127, allocations: 0 / 0.4921 GB, free: 7.055 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02536/0.138, allocations: 1.385 MB / 0.4934 GB, free: 5.652 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.561/8.7, allocations: 11.64 kB / 0.4934 GB, free: 5.645 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