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.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.0009189/0.0009189, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001185/0.001185, allocations: 171.7 kB / 24.92 MB, free: 8.727 MB / 18.57 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 0.9756/0.9756, allocations: 177.1 MB / 205.3 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] 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.2449/0.2449, allocations: 32.81 MB / 294.6 MB, free: 1.266 MB / 266.7 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.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.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 - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 323.2 MB, free: 9.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.273e-05/3.435e-05, allocations: 4.875 kB / 323.2 MB, free: 9.766 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001843/0.001877, allocations: 497.1 kB / 323.7 MB, free: 9.277 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005237/0.002401, allocations: 219.3 kB / 323.9 MB, free: 9.062 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.248e-05/0.002423, allocations: 0 / 323.9 MB, free: 9.062 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.413e-05/0.002437, allocations: 0 / 323.9 MB, free: 9.062 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.743e-06/0.002444, allocations: 0 / 323.9 MB, free: 9.062 MB / 298.7 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.0003344/0.002779, allocations: 51.75 kB / 323.9 MB, free: 9.012 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.169e-05/0.00284, allocations: 0.625 kB / 323.9 MB, free: 9.012 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.693e-05/0.002877, allocations: 0 / 323.9 MB, free: 9.012 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.027e-05/0.002907, allocations: 7.938 kB / 324 MB, free: 9.004 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.754e-05/0.002935, allocations: 0 / 324 MB, free: 9.004 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.224e-06/0.002942, allocations: 4 kB / 324 MB, free: 9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.003073, allocations: 55.88 kB / 324 MB, free: 8.945 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.246e-06/0.003081, allocations: 0 / 324 MB, free: 8.945 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.627e-05/0.003097, allocations: 0 / 324 MB, free: 8.945 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.003232, allocations: 55.81 kB / 324.1 MB, free: 8.891 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.003236, allocations: 3.984 kB / 324.1 MB, free: 8.887 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.003238, allocations: 0 / 324.1 MB, free: 8.887 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.003244, allocations: 0 / 324.1 MB, free: 8.887 MB / 298.7 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.0002639/0.003507, allocations: 250.3 kB / 324.3 MB, free: 8.609 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.003544, allocations: 8.031 kB / 324.3 MB, free: 8.602 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.49e-05/0.003569, allocations: 0.9375 kB / 324.3 MB, free: 8.602 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.45e-05/0.003643, allocations: 113.8 kB / 324.4 MB, free: 8.465 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.003656, allocations: 384 / 324.4 MB, free: 8.465 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.003667, allocations: 4.312 kB / 324.4 MB, free: 8.461 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.068e-05/0.003757, allocations: 59.97 kB / 324.5 MB, free: 8.391 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.003765, allocations: 192 / 324.5 MB, free: 8.391 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.483e-06/0.003771, allocations: 384 / 324.5 MB, free: 8.391 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.003777, allocations: 384 / 324.5 MB, free: 8.391 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.306e-05/0.0038, allocations: 37.56 kB / 324.5 MB, free: 8.348 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.231e-05/0.003893, allocations: 57.67 kB / 324.6 MB, free: 8.277 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.45e-05/0.003947, allocations: 48.31 kB / 324.6 MB, free: 8.215 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.167e-05/0.003969, allocations: 34.56 kB / 324.7 MB, free: 8.172 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.989e-06/0.003974, allocations: 0 / 324.7 MB, free: 8.172 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.052e-05/0.004024, allocations: 60.33 kB / 324.7 MB, free: 8.098 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.004026, allocations: 0 / 324.7 MB, free: 8.098 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001385/0.004164, allocations: 114.7 kB / 324.8 MB, free: 7.961 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.004205, allocations: 77.11 kB / 324.9 MB, free: 7.867 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.999e-05/0.004245, allocations: 93.86 kB / 325 MB, free: 7.766 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.117e-05/0.004256, allocations: 25.7 kB / 325 MB, free: 7.734 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.267e-05/0.004279, allocations: 80.14 kB / 325.1 MB, free: 7.652 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.014e-05/0.004309, allocations: 1.203 kB / 325.1 MB, free: 7.652 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.538e-05/0.004344, allocations: 17.84 kB / 325.1 MB, free: 7.629 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.004449, allocations: 318.8 kB / 325.4 MB, free: 7.309 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.942e-05/0.004468, allocations: 29.7 kB / 325.5 MB, free: 7.273 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.645e-05/0.004484, allocations: 33.7 kB / 325.5 MB, free: 7.234 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.705e-05/0.004531, allocations: 64.25 kB / 325.6 MB, free: 7.156 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.004533, allocations: 0 / 325.6 MB, free: 7.156 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.516e-05/0.004609, allocations: 89.03 kB / 325.7 MB, free: 7.051 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.68e-05/0.004645, allocations: 29.7 kB / 325.7 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.00465, allocations: 0 / 325.7 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.004664, allocations: 8.094 kB / 325.7 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.3e-06/0.004669, allocations: 0 / 325.7 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.026e-06/0.004672, allocations: 0 / 325.7 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.306e-05/0.004685, allocations: 0 / 325.7 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-06/0.004692, allocations: 3.984 kB / 325.7 MB, free: 7.004 MB / 298.7 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.286e-05/0.004765, allocations: 143.5 kB / 325.8 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.792e-06/0.004772, allocations: 0 / 325.8 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.101e-05/0.004783, allocations: 3 kB / 325.8 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.004785, allocations: 0 / 325.8 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.004787, allocations: 7.938 kB / 325.8 MB, free: 6.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.004789, allocations: 4 kB / 325.8 MB, free: 6.836 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.675e-05/0.004856, allocations: 61.84 kB / 325.9 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.004857, allocations: 0 / 325.9 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.41e-07/0.004858, allocations: 0 / 325.9 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.00486, allocations: 0 / 325.9 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-06/0.004865, allocations: 4 kB / 325.9 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.004866, allocations: 0 / 325.9 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.004871, allocations: 7.922 kB / 325.9 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.125e-05/0.004962, allocations: 120.5 kB / 326 MB, free: 6.598 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.413e-06/0.004968, allocations: 4.344 kB / 326 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.00498, allocations: 3.984 kB / 326 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.544e-06/0.004988, allocations: 4.031 kB / 326.1 MB, free: 6.586 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.557e-06/0.004997, allocations: 0 / 326.1 MB, free: 6.586 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.776e-06/0.004999, allocations: 0 / 326.1 MB, free: 6.586 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.436e-06/0.005008, allocations: 8.859 kB / 326.1 MB, free: 6.574 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.005008, allocations: 0 / 326.1 MB, free: 6.574 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001904/0.005198, allocations: 15.94 kB / 326.1 MB, free: 6.559 MB / 298.7 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.0005069/0.005705, allocations: 201.4 kB / 326.3 MB, free: 6.418 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001254/0.00583, allocations: 127.6 kB / 326.4 MB, free: 6.266 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.005834, allocations: 0 / 326.4 MB, free: 6.266 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.042e-05/0.005875, allocations: 90.03 kB / 326.5 MB, free: 6.156 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.571e-05/0.005931, allocations: 7.938 kB / 326.5 MB, free: 6.148 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001783/0.006109, allocations: 108.6 kB / 326.6 MB, free: 6.008 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.773e-05/0.006147, allocations: 51.36 kB / 326.6 MB, free: 5.938 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.979e-06/0.006156, allocations: 4 kB / 326.7 MB, free: 5.934 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.861e-05/0.006205, allocations: 51.38 kB / 326.7 MB, free: 5.883 MB / 298.7 MB Notification: Performance of SimCode: time 8.22e-07/0.006206, allocations: 0 / 326.7 MB, free: 5.883 MB / 298.7 MB Notification: Performance of Templates: time 0.003241/0.009446, allocations: 0.6984 MB / 327.4 MB, free: 5.191 MB / 298.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8959629009477794]