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: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002172/0.002172, allocations: 112.1 kB / 16.41 MB, free: 6.492 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.002411/0.002412, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.693/1.693, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2252/0.2252, allocations: 43.53 MB / 314.1 MB, free: 460 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.001646/0.001646, allocations: 67.89 kB / 441.8 MB, free: 5.703 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.121, allocations: 57.79 MB / 499.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001842/0.1229, allocations: 486.9 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005351/0.1235, allocations: 210.2 kB / 0.4885 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.219e-05/0.1235, allocations: 0 / 0.4885 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.891e-05/0.1235, allocations: 0 / 0.4885 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.091e-06/0.1236, allocations: 0 / 0.4885 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003037/0.1239, allocations: 51.83 kB / 0.4886 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.731e-05/0.1239, allocations: 0 / 0.4886 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.008e-05/0.124, allocations: 7.984 kB / 0.4886 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.45e-05/0.124, allocations: 0 / 0.4886 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.398e-05/0.124, allocations: 0 / 0.4886 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.352e-06/0.1241, allocations: 3.938 kB / 0.4886 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.1242, allocations: 51.95 kB / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.724e-06/0.1242, allocations: 0 / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.263e-05/0.1242, allocations: 7.922 kB / 0.4886 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.1244, allocations: 35.95 kB / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1244, allocations: 0 / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1244, allocations: 8 kB / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1244, allocations: 0 / 0.4887 GB, free: 11 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.0003987/0.1248, allocations: 352.7 kB / 0.489 GB, free: 10.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1248, allocations: 15.89 kB / 0.489 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.118e-05/0.1249, allocations: 0.9375 kB / 0.489 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.46e-05/0.125, allocations: 172.2 kB / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.145e-06/0.125, allocations: 384 / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.125, allocations: 384 / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.526e-05/0.1251, allocations: 34.27 kB / 0.4892 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.1251, allocations: 192 / 0.4892 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.1251, allocations: 3.938 kB / 0.4892 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.1251, allocations: 0 / 0.4892 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.008e-05/0.1252, allocations: 4 kB / 0.4892 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001198/0.1253, allocations: 153.5 kB / 0.4894 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.824e-05/0.1253, allocations: 22.5 kB / 0.4894 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.486e-05/0.1254, allocations: 8.953 kB / 0.4894 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.903e-06/0.1254, allocations: 7.984 kB / 0.4894 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.211e-05/0.1254, allocations: 56.27 kB / 0.4895 GB, free: 10.01 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1254, allocations: 0 / 0.4895 GB, free: 10.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001739/0.1256, allocations: 71.33 kB / 0.4895 GB, free: 9.926 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/0.1257, allocations: 77.11 kB / 0.4896 GB, free: 9.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.008e-05/0.1257, allocations: 89.86 kB / 0.4897 GB, free: 9.734 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.1257, allocations: 29.7 kB / 0.4897 GB, free: 9.699 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.366e-05/0.1257, allocations: 80.14 kB / 0.4898 GB, free: 9.617 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.1258, allocations: 4.125 kB / 0.4898 GB, free: 9.613 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.702e-05/0.1258, allocations: 17.66 kB / 0.4898 GB, free: 9.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.572e-05/0.1259, allocations: 314.8 kB / 0.4901 GB, free: 9.273 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.114e-05/0.1259, allocations: 4 kB / 0.4901 GB, free: 9.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.4e-06/0.1259, allocations: 0 / 0.4901 GB, free: 9.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.733e-05/0.126, allocations: 64.25 kB / 0.4902 GB, free: 9.191 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.126, allocations: 0 / 0.4902 GB, free: 9.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.25e-05/0.1261, allocations: 67.47 kB / 0.4903 GB, free: 9.113 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.005e-05/0.1261, allocations: 29.7 kB / 0.4903 GB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1261, allocations: 0 / 0.4903 GB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.1261, allocations: 3.938 kB / 0.4903 GB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.1262, allocations: 0 / 0.4903 GB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.393e-06/0.1262, allocations: 7.938 kB / 0.4903 GB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.674e-05/0.1262, allocations: 3.938 kB / 0.4903 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-06/0.1262, allocations: 3.984 kB / 0.4903 GB, free: 9.059 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.149e-05/0.1263, allocations: 135.5 kB / 0.4904 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.947e-06/0.1263, allocations: 8.031 kB / 0.4904 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.413e-05/0.1263, allocations: 7.062 kB / 0.4905 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1263, allocations: 0 / 0.4905 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1264, allocations: 0 / 0.4905 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.1264, allocations: 0 / 0.4905 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.414e-05/0.1265, allocations: 149.7 kB / 0.4906 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1265, allocations: 0 / 0.4906 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.1265, allocations: 0 / 0.4906 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.1265, allocations: 0 / 0.4906 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.1265, allocations: 7.875 kB / 0.4906 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1265, allocations: 0 / 0.4906 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.1265, allocations: 4 kB / 0.4906 GB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001002/0.1266, allocations: 94.81 kB / 0.4907 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.287e-05/0.1266, allocations: 77.11 kB / 0.4908 GB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.1267, allocations: 3.938 kB / 0.4908 GB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.381e-05/0.1267, allocations: 8 kB / 0.4908 GB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.69e-05/0.1267, allocations: 3.938 kB / 0.4908 GB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-06/0.1267, allocations: 0 / 0.4908 GB, free: 8.457 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.436e-05/0.1267, allocations: 79.31 kB / 0.4909 GB, free: 8.379 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1268, allocations: 0 / 0.4909 GB, free: 8.379 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002351/0.127, allocations: 19.98 kB / 0.4909 GB, free: 8.359 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.0003936/0.1274, allocations: 196.2 kB / 0.4911 GB, free: 8.176 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001065/0.1275, allocations: 59.41 kB / 0.4911 GB, free: 8.105 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1275, allocations: 0 / 0.4911 GB, free: 8.105 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.777e-05/0.1276, allocations: 55.41 kB / 0.4912 GB, free: 8.039 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001448/0.1277, allocations: 7.406 kB / 0.4912 GB, free: 8.039 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002211/0.1279, allocations: 85.03 kB / 0.4913 GB, free: 7.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.1282, allocations: 0.6729 MB / 0.4919 GB, free: 7.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.226e-06/0.1282, allocations: 7.938 kB / 0.4919 GB, free: 7.223 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.312e-05/0.1282, allocations: 11.38 kB / 0.4919 GB, free: 7.211 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1282, allocations: 0 / 0.4919 GB, free: 7.211 MB / 382.1 MB Notification: Performance of Templates: time 0.00311/0.1314, allocations: 0.5787 MB / 0.4925 GB, free: 6.633 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches