Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 99.59 kB / 21.2 MB, free: 0.6406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 215.5 kB / 24.5 MB, free: 3.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.559/1.559, allocations: 230.6 MB / 258.3 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.27/0.27, allocations: 46.96 MB / 361.6 MB, free: 4.027 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 3.125e-05/3.125e-05, allocations: 6.219 kB / 0.4973 GB, free: 7.277 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001869/0.0019, allocations: 477.1 kB / 0.4977 GB, free: 6.812 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007387/0.002639, allocations: 223.6 kB / 0.4979 GB, free: 6.594 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.838e-05/0.002667, allocations: 0 / 0.4979 GB, free: 6.594 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.479e-05/0.002682, allocations: 0 / 0.4979 GB, free: 6.594 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.163e-06/0.002689, allocations: 0 / 0.4979 GB, free: 6.594 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:289:3-320: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.0003566/0.003046, allocations: 43.84 kB / 0.498 GB, free: 6.551 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.559e-05/0.003111, allocations: 7.984 kB / 0.498 GB, free: 6.543 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.826e-05/0.00317, allocations: 7.938 kB / 0.498 GB, free: 6.535 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.519e-05/0.003195, allocations: 3.984 kB / 0.498 GB, free: 6.531 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.95e-05/0.003224, allocations: 3.938 kB / 0.498 GB, free: 6.527 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.753e-06/0.003231, allocations: 0 / 0.498 GB, free: 6.527 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001375/0.003368, allocations: 55.95 kB / 0.498 GB, free: 6.473 MB / 366.1 MB Notification: Performance of combineBinaries: time 3.092e-05/0.003399, allocations: 0 / 0.498 GB, free: 6.473 MB / 366.1 MB Notification: Performance of replaceArrayConstructors: time 4.588e-06/0.003404, allocations: 3.906 kB / 0.498 GB, free: 6.469 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.608e-05/0.00342, allocations: 4 kB / 0.4981 GB, free: 6.465 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.336e-06/0.003428, allocations: 0 / 0.4981 GB, free: 6.465 MB / 366.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 [SIM] Bindings: time 0.0004652/0.003894, allocations: 189.7 kB / 0.4982 GB, free: 6.16 MB / 366.1 MB Notification: Performance of [SIM] FunctionAlias: time 5.893e-05/0.003953, allocations: 23.91 kB / 0.4983 GB, free: 6.125 MB / 366.1 MB Notification: Performance of [SIM] Early Inline: time 8.12e-05/0.004034, allocations: 52.36 kB / 0.4983 GB, free: 6.047 MB / 366.1 MB Notification: Performance of [SIM] Simplify 1: time 8.742e-05/0.004121, allocations: 60.73 kB / 0.4984 GB, free: 5.941 MB / 366.1 MB Notification: Performance of [SIM] Alias: time 0.0001179/0.004239, allocations: 80.59 kB / 0.4984 GB, free: 5.812 MB / 366.1 MB Notification: Performance of [SIM] Simplify 2: time 8.123e-05/0.00432, allocations: 64.73 kB / 0.4985 GB, free: 5.703 MB / 366.1 MB Notification: Performance of [SIM] Remove Stream: time 6.433e-05/0.004385, allocations: 44.41 kB / 0.4985 GB, free: 5.633 MB / 366.1 MB Notification: Performance of [SIM] Detect States: time 0.0001116/0.004496, allocations: 71.55 kB / 0.4986 GB, free: 5.512 MB / 366.1 MB Notification: Performance of [SIM] Events: time 3.118e-05/0.004527, allocations: 11.92 kB / 0.4986 GB, free: 5.5 MB / 366.1 MB Notification: Performance of [SIM] Partitioning: time 9.866e-05/0.004626, allocations: 20.12 kB / 0.4986 GB, free: 5.473 MB / 366.1 MB Notification: Performance of [SIM] Causalize: time 0.0001684/0.004795, allocations: 16.12 kB / 0.4987 GB, free: 5.449 MB / 366.1 MB Notification: Performance of [SIM] After Index Reduction Inline: time 1.75e-05/0.004812, allocations: 11.98 kB / 0.4987 GB, free: 5.438 MB / 366.1 MB Notification: Performance of [INI] Simplify: time 0.0001723/0.004984, allocations: 109 kB / 0.4988 GB, free: 5.262 MB / 366.1 MB Notification: Performance of [INI] Inline: time 3.975e-05/0.005024, allocations: 23.92 kB / 0.4988 GB, free: 5.234 MB / 366.1 MB Notification: Performance of [INI] Partitioning: time 1.541e-05/0.00504, allocations: 12.12 kB / 0.4988 GB, free: 5.215 MB / 366.1 MB Notification: Performance of [INI] Cleanup: time 1.706e-05/0.005057, allocations: 8 kB / 0.4988 GB, free: 5.207 MB / 366.1 MB Notification: Performance of [INI] Causalize: time 7.828e-05/0.005135, allocations: 32.3 kB / 0.4988 GB, free: 5.168 MB / 366.1 MB Notification: Performance of [INI] Tearing: time 1.279e-05/0.005148, allocations: 0 / 0.4988 GB, free: 5.168 MB / 366.1 MB Notification: Performance of [SIM] Initialization: time 3.51e-07/0.005148, allocations: 0 / 0.4988 GB, free: 5.168 MB / 366.1 MB Notification: Performance of [SIM] Remove Dummies: time 5.14e-06/0.005153, allocations: 0 / 0.4988 GB, free: 5.168 MB / 366.1 MB Notification: Performance of [SIM] Tearing: time 6.11e-07/0.005154, allocations: 0 / 0.4988 GB, free: 5.168 MB / 366.1 MB Notification: Performance of [SIM] Categorize: time 9.558e-06/0.005163, allocations: 4 kB / 0.4989 GB, free: 5.164 MB / 366.1 MB Notification: Performance of [SIM] Solve: time 1.425e-05/0.005178, allocations: 0 / 0.4989 GB, free: 5.164 MB / 366.1 MB Notification: Performance of [SIM] Jacobian: time 9.718e-06/0.005187, allocations: 7.938 kB / 0.4989 GB, free: 5.156 MB / 366.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: ............ 0 (algorithm:0, 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 5.38e-05/0.005241, allocations: 23.98 kB / 0.4989 GB, free: 5.133 MB / 366.1 MB Notification: Performance of SimCode: time 0.00094/0.006181, allocations: 285.3 kB / 0.4992 GB, free: 4.867 MB / 366.1 MB Notification: Performance of Templates: time 0.003644/0.009825, allocations: 0.5358 MB / 0.4997 GB, free: 4.332 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 5.1018190728500485]