Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 109 kB / 20.54 MB, free: 1.77 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 189.8 kB / 23.71 MB, free: 5.395 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 225.6 MB / 252.3 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2133/0.2133, allocations: 44.91 MB / 352.4 MB, free: 12.22 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 1.857e-05/1.857e-05, allocations: 2.281 kB / 495.9 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001243/0.001262, allocations: 487.8 kB / 496.4 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005189/0.00178, allocations: 217.9 kB / 496.6 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.436e-05/0.001805, allocations: 0 / 496.6 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.839e-06/0.001815, allocations: 0 / 496.6 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.909e-06/0.00182, allocations: 4 kB / 496.6 MB, free: 1.25 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002472/0.002067, allocations: 43.83 kB / 496.6 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.314e-05/0.00212, allocations: 11.98 kB / 496.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.44e-05/0.002154, allocations: 0 / 496.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.258e-05/0.002167, allocations: 0 / 496.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.332e-05/0.00219, allocations: 7.984 kB / 496.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.791e-06/0.002196, allocations: 0 / 496.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.945e-05/0.002296, allocations: 51.89 kB / 496.7 MB, free: 1.137 MB / 350.1 MB Notification: Performance of combineBinaries: time 2.351e-05/0.002319, allocations: 7.938 kB / 496.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 3.517e-06/0.002323, allocations: 3.984 kB / 496.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.998e-06/0.002333, allocations: 0 / 496.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.2e-06/0.002338, allocations: 4 kB / 496.7 MB, free: 1.121 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 (1) * Number of variables: 1 (1) Notification: Performance of Bindings: time 0.0002985/0.002636, allocations: 174.2 kB / 496.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of FunctionAlias: time 2.03e-05/0.002657, allocations: 10.81 kB / 496.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of Early Inline: time 6.132e-05/0.002718, allocations: 48.69 kB / 496.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of Simplify 1: time 3.983e-05/0.002758, allocations: 40.41 kB / 497 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of Alias: time 7.56e-05/0.002833, allocations: 72.92 kB / 497.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of Simplify 2: time 3.191e-05/0.002865, allocations: 32.44 kB / 497.1 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of Remove Stream: time 3.58e-05/0.002901, allocations: 40.38 kB / 497.1 MB, free: 448 kB / 350.1 MB Notification: Performance of Detect States: time 0.0001234/0.003024, allocations: 69.77 kB / 497.2 MB, free: 340 kB / 350.1 MB Notification: Performance of Events: time 1.229e-05/0.003037, allocations: 3.938 kB / 497.2 MB, free: 336 kB / 350.1 MB Notification: Performance of Partitioning: time 4.982e-05/0.003086, allocations: 24.12 kB / 497.2 MB, free: 304 kB / 350.1 MB Notification: Performance of Causalize: time 9.158e-05/0.003178, allocations: 20.11 kB / 497.2 MB, free: 276 kB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 1.12e-05/0.003189, allocations: 4 kB / 497.2 MB, free: 272 kB / 350.1 MB Notification: Performance of Simplify: time 9.147e-05/0.003281, allocations: 76.73 kB / 497.3 MB, free: 144 kB / 350.1 MB Notification: Performance of Inline: time 1.828e-05/0.003299, allocations: 16.05 kB / 497.3 MB, free: 124 kB / 350.1 MB Notification: Performance of Partitioning: time 1.5e-05/0.003314, allocations: 20.31 kB / 497.4 MB, free: 96 kB / 350.1 MB Notification: Performance of Cleanup: time 1.327e-05/0.003327, allocations: 7.984 kB / 497.4 MB, free: 88 kB / 350.1 MB Notification: Performance of Causalize: time 5.179e-05/0.003379, allocations: 28.12 kB / 497.4 MB, free: 52 kB / 350.1 MB Notification: Performance of Tearing: time 7.444e-06/0.003387, allocations: 0 / 497.4 MB, free: 52 kB / 350.1 MB Notification: Performance of Initialization: time 2.9e-07/0.003387, allocations: 0 / 497.4 MB, free: 52 kB / 350.1 MB Notification: Performance of Remove Dummies: time 3.316e-06/0.00339, allocations: 0 / 497.4 MB, free: 52 kB / 350.1 MB Notification: Performance of Tearing: time 4.71e-07/0.003391, allocations: 0 / 497.4 MB, free: 52 kB / 350.1 MB Notification: Performance of Categorize: time 8.867e-06/0.003399, allocations: 7.922 kB / 497.4 MB, free: 44 kB / 350.1 MB Notification: Performance of Solve: time 2.02e-05/0.00342, allocations: 8.188 kB / 497.4 MB, free: 36 kB / 350.1 MB Notification: Performance of Jacobian: time 3.587e-06/0.003423, allocations: 4 kB / 497.4 MB, free: 32 kB / 350.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 1 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {} * Number of discrete variables: ................. 1 (1) {result} * Number of clocks: ............................. 0 (0) {} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 0 (scalar:0, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 0 (scalar:0, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 3.431e-05/0.003458, allocations: 20.45 kB / 497.4 MB, free: 12 kB / 350.1 MB Notification: Performance of SimCode: time 0.0009186/0.004376, allocations: 0.8962 MB / 498.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of Templates: time 0.002929/0.007305, allocations: 0.5631 MB / 498.9 MB, free: 14.57 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 4.21289970073849]