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.001214/0.001214, allocations: 113.8 kB / 17.08 MB, free: 6.008 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.001328/0.001328, allocations: 199 kB / 18.01 MB, free: 5.086 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.209/1.209, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.1758/0.1758, allocations: 43.52 MB / 314.8 MB, free: 484 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.001261/0.001261, allocations: 79.81 kB / 442.5 MB, free: 5.719 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08584/0.08711, allocations: 57.78 MB / 0.4885 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001373/0.08851, allocations: 486 kB / 0.489 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005137/0.08904, allocations: 211.9 kB / 0.4892 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.038e-05/0.08907, allocations: 0 / 0.4892 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.066e-05/0.08909, allocations: 0 / 0.4892 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.99e-06/0.0891, allocations: 0 / 0.4892 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002408/0.08935, allocations: 51.83 kB / 0.4892 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.031e-05/0.08941, allocations: 0 / 0.4892 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.587e-05/0.08945, allocations: 0 / 0.4892 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.995e-05/0.08947, allocations: 3.984 kB / 0.4892 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.736e-05/0.0895, allocations: 7.938 kB / 0.4892 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.22e-06/0.08951, allocations: 0 / 0.4892 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/0.08962, allocations: 43.95 kB / 0.4893 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.193e-06/0.08963, allocations: 0 / 0.4893 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.932e-05/0.08965, allocations: 7.938 kB / 0.4893 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.938e-05/0.08976, allocations: 47.92 kB / 0.4893 GB, free: 11.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.08977, allocations: 0 / 0.4893 GB, free: 11.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.08981, allocations: 4 kB / 0.4893 GB, free: 11.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.08982, allocations: 0 / 0.4893 GB, free: 11.02 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.0002707/0.0901, allocations: 353.3 kB / 0.4897 GB, free: 10.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.033e-05/0.09013, allocations: 11.89 kB / 0.4897 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.867e-05/0.09017, allocations: 4.938 kB / 0.4897 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.423e-05/0.09025, allocations: 168.3 kB / 0.4899 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-06/0.09026, allocations: 384 / 0.4899 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.742e-06/0.09027, allocations: 384 / 0.4899 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.645e-05/0.09034, allocations: 30.27 kB / 0.4899 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.09036, allocations: 4.188 kB / 0.4899 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-06/0.09037, allocations: 3.938 kB / 0.4899 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.09038, allocations: 0 / 0.4899 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.467e-05/0.0904, allocations: 7.922 kB / 0.4899 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001071/0.09051, allocations: 153.6 kB / 0.49 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.212e-05/0.09055, allocations: 18.52 kB / 0.4901 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.187e-05/0.09056, allocations: 4.859 kB / 0.4901 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.324e-06/0.09058, allocations: 4 kB / 0.4901 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/0.09062, allocations: 60.33 kB / 0.4901 GB, free: 10.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.09063, allocations: 0 / 0.4901 GB, free: 10.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001362/0.09077, allocations: 71.33 kB / 0.4902 GB, free: 9.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.994e-05/0.09081, allocations: 77.11 kB / 0.4903 GB, free: 9.859 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.888e-05/0.09086, allocations: 89.86 kB / 0.4904 GB, free: 9.762 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.778e-06/0.09087, allocations: 29.64 kB / 0.4904 GB, free: 9.727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.183e-05/0.0909, allocations: 80.14 kB / 0.4905 GB, free: 9.645 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.247e-05/0.09092, allocations: 4.125 kB / 0.4905 GB, free: 9.641 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.363e-05/0.09094, allocations: 13.72 kB / 0.4905 GB, free: 9.621 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.975e-05/0.09104, allocations: 314.8 kB / 0.4908 GB, free: 9.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.526e-06/0.09105, allocations: 0 / 0.4908 GB, free: 9.305 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.907e-06/0.09106, allocations: 8 kB / 0.4908 GB, free: 9.297 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.638e-05/0.09111, allocations: 56.27 kB / 0.4908 GB, free: 9.227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.09111, allocations: 0 / 0.4908 GB, free: 9.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.792e-05/0.09118, allocations: 63.47 kB / 0.4909 GB, free: 9.152 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.033e-05/0.09121, allocations: 37.69 kB / 0.4909 GB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.09122, allocations: 0 / 0.4909 GB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.054e-05/0.0913, allocations: 3.938 kB / 0.4909 GB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.013e-06/0.0913, allocations: 7.875 kB / 0.4909 GB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.09131, allocations: 4 kB / 0.491 GB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.376e-05/0.09133, allocations: 0 / 0.491 GB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-06/0.09134, allocations: 0 / 0.491 GB, free: 9.094 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 7.087e-05/0.09142, allocations: 143.5 kB / 0.4911 GB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-06/0.09143, allocations: 8.016 kB / 0.4911 GB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.048e-05/0.09145, allocations: 7.062 kB / 0.4911 GB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.09145, allocations: 3.984 kB / 0.4911 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.09146, allocations: 4 kB / 0.4911 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.09147, allocations: 0 / 0.4911 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001194/0.09159, allocations: 141.7 kB / 0.4912 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.0916, allocations: 0 / 0.4912 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.753e-06/0.0916, allocations: 0 / 0.4912 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.09161, allocations: 3.938 kB / 0.4913 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-06/0.09162, allocations: 7.938 kB / 0.4913 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.09162, allocations: 0 / 0.4913 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.09163, allocations: 4 kB / 0.4913 GB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.96e-05/0.09171, allocations: 90.83 kB / 0.4913 GB, free: 8.594 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.794e-05/0.09175, allocations: 77.11 kB / 0.4914 GB, free: 8.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.174e-05/0.09177, allocations: 11.86 kB / 0.4914 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.624e-06/0.09178, allocations: 0 / 0.4914 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.147e-06/0.09179, allocations: 0 / 0.4914 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.0918, allocations: 4 kB / 0.4914 GB, free: 8.484 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.218e-05/0.09183, allocations: 79.31 kB / 0.4915 GB, free: 8.406 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09183, allocations: 0 / 0.4915 GB, free: 8.406 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001936/0.09203, allocations: 20 kB / 0.4915 GB, free: 8.387 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.0003205/0.09235, allocations: 200.1 kB / 0.4917 GB, free: 8.203 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001274/0.09249, allocations: 55.41 kB / 0.4918 GB, free: 8.137 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-06/0.0925, allocations: 0 / 0.4918 GB, free: 8.137 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.791e-05/0.09253, allocations: 63.39 kB / 0.4918 GB, free: 8.062 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001122/0.09265, allocations: 7.281 kB / 0.4918 GB, free: 8.059 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001514/0.09281, allocations: 106.8 kB / 0.4919 GB, free: 7.922 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001887/0.09301, allocations: 0.6806 MB / 0.4926 GB, free: 7.215 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.906e-06/0.09302, allocations: 7.438 kB / 0.4926 GB, free: 7.207 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.09303, allocations: 0 / 0.4926 GB, free: 7.207 MB / 382.1 MB Notification: Performance of Templates: time 0.001913/0.09494, allocations: 0.7493 MB / 0.4933 GB, free: 6.457 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/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