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.001148/0.001148, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00183/0.002978, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.001031/0.001031, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001689/0.00272, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.8779/0.8779, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1664/1.044, allocations: 52.49 MB / 238.5 MB, free: 7.609 MB / 234.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.1507/0.1507, allocations: 32.8 MB / 272 MB, free: 6.277 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02355/0.1743, allocations: 12.54 MB / 284.5 MB, free: 9.695 MB / 282.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.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 - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 285.8 MB, free: 8.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.073e-05/2.206e-05, allocations: 5.547 kB / 285.8 MB, free: 8.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001624/0.001646, allocations: 0.5473 MB / 286.4 MB, free: 7.887 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003752/0.002022, allocations: 226.1 kB / 286.6 MB, free: 7.668 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.255e-05/0.002034, allocations: 4 kB / 286.6 MB, free: 7.664 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.677e-06/0.002038, allocations: 0 / 286.6 MB, free: 7.664 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.12e-07/0.002039, allocations: 4 kB / 286.6 MB, free: 7.66 MB / 282.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.0001543/0.002193, allocations: 43.72 kB / 286.6 MB, free: 7.617 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.426e-05/0.002247, allocations: 3.984 kB / 286.6 MB, free: 7.613 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.398e-05/0.002281, allocations: 4 kB / 286.6 MB, free: 7.609 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.229e-05/0.002314, allocations: 3.984 kB / 286.6 MB, free: 7.605 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.37e-05/0.002347, allocations: 0 / 286.6 MB, free: 7.605 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.923e-06/0.002354, allocations: 0 / 286.6 MB, free: 7.605 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.002488, allocations: 51.89 kB / 286.7 MB, free: 7.555 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.12e-05/0.002499, allocations: 4 kB / 286.7 MB, free: 7.551 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.293e-05/0.002512, allocations: 0 / 286.7 MB, free: 7.551 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001145/0.002627, allocations: 47.78 kB / 286.7 MB, free: 7.504 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.01e-05/0.002637, allocations: 0 / 286.7 MB, free: 7.504 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.002637, allocations: 0 / 286.7 MB, free: 7.504 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.002647, allocations: 0 / 286.7 MB, free: 7.504 MB / 282.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.0002583/0.002905, allocations: 258.3 kB / 287 MB, free: 7.219 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.002936, allocations: 8.031 kB / 287 MB, free: 7.211 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.241e-05/0.002969, allocations: 0.9375 kB / 287 MB, free: 7.211 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.613e-05/0.003035, allocations: 109.8 kB / 287.1 MB, free: 7.078 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.498e-06/0.003045, allocations: 384 / 287.1 MB, free: 7.078 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-06/0.003053, allocations: 4.375 kB / 287.1 MB, free: 7.074 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.348e-05/0.003126, allocations: 67.91 kB / 287.2 MB, free: 6.996 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-06/0.003132, allocations: 192 / 287.2 MB, free: 6.996 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.14e-06/0.003138, allocations: 384 / 287.2 MB, free: 6.996 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.003143, allocations: 384 / 287.2 MB, free: 6.996 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.877e-05/0.003222, allocations: 37.62 kB / 287.2 MB, free: 6.953 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.029e-05/0.003292, allocations: 57.03 kB / 287.3 MB, free: 6.883 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.124e-05/0.003333, allocations: 44.31 kB / 287.3 MB, free: 6.824 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.642e-05/0.00335, allocations: 30.56 kB / 287.4 MB, free: 6.785 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.226e-06/0.003353, allocations: 3.938 kB / 287.4 MB, free: 6.781 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/0.003389, allocations: 64.33 kB / 287.4 MB, free: 6.703 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 9.71e-07/0.00339, allocations: 3.938 kB / 287.4 MB, free: 6.699 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001171/0.003507, allocations: 114.8 kB / 287.5 MB, free: 6.562 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/0.003563, allocations: 158.2 kB / 287.7 MB, free: 6.371 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.283e-05/0.003596, allocations: 89.86 kB / 287.8 MB, free: 6.273 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.003607, allocations: 25.7 kB / 287.8 MB, free: 6.242 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.911e-05/0.003626, allocations: 80.14 kB / 287.9 MB, free: 6.16 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.007e-05/0.003646, allocations: 4 kB / 287.9 MB, free: 6.156 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.877e-05/0.003675, allocations: 17.69 kB / 287.9 MB, free: 6.133 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.832e-05/0.003773, allocations: 318.8 kB / 288.2 MB, free: 5.812 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.858e-05/0.003791, allocations: 29.83 kB / 288.2 MB, free: 5.777 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.251e-05/0.003804, allocations: 29.7 kB / 288.3 MB, free: 5.742 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.44e-05/0.003848, allocations: 64.2 kB / 288.3 MB, free: 5.664 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.00385, allocations: 0 / 288.3 MB, free: 5.664 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.295e-05/0.003913, allocations: 89.09 kB / 288.4 MB, free: 5.559 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.987e-05/0.003953, allocations: 29.7 kB / 288.4 MB, free: 5.523 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.003958, allocations: 0 / 288.4 MB, free: 5.523 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.003969, allocations: 0 / 288.4 MB, free: 5.523 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-06/0.003971, allocations: 4 kB / 288.5 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.845e-06/0.003974, allocations: 4.094 kB / 288.5 MB, free: 5.516 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.607e-05/0.00399, allocations: 0 / 288.5 MB, free: 5.516 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.003998, allocations: 0 / 288.5 MB, free: 5.516 MB / 282.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 6.613e-05/0.004064, allocations: 147.5 kB / 288.6 MB, free: 5.355 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.733e-06/0.00407, allocations: 0 / 288.6 MB, free: 5.355 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.15e-05/0.004082, allocations: 6.953 kB / 288.6 MB, free: 5.344 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-06/0.004083, allocations: 0 / 288.6 MB, free: 5.344 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.004086, allocations: 4 kB / 288.6 MB, free: 5.34 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.004088, allocations: 0 / 288.6 MB, free: 5.34 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.315e-05/0.004141, allocations: 65.78 kB / 288.7 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.004143, allocations: 0 / 288.7 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.71e-07/0.004143, allocations: 4 kB / 288.7 MB, free: 5.254 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.041e-06/0.004149, allocations: 7.984 kB / 288.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.004151, allocations: 0 / 288.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.228e-06/0.004155, allocations: 0 / 288.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.004156, allocations: 0 / 288.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.004157, allocations: 3.938 kB / 288.7 MB, free: 5.242 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.458e-05/0.004242, allocations: 116.5 kB / 288.8 MB, free: 5.098 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.004253, allocations: 0 / 288.8 MB, free: 5.098 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.566e-06/0.004261, allocations: 0 / 288.8 MB, free: 5.098 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.315e-06/0.00427, allocations: 0 / 288.8 MB, free: 5.098 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.004273, allocations: 4.031 kB / 288.8 MB, free: 5.094 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.034e-06/0.00428, allocations: 8.859 kB / 288.8 MB, free: 5.082 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00428, allocations: 0 / 288.8 MB, free: 5.082 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003052/0.004585, allocations: 19.94 kB / 288.8 MB, free: 5.062 MB / 282.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.000538/0.005123, allocations: 251.4 kB / 289.1 MB, free: 4.883 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.327e-05/0.005216, allocations: 111.7 kB / 289.2 MB, free: 4.746 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.005221, allocations: 8 kB / 289.2 MB, free: 4.738 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.526e-05/0.005257, allocations: 94.05 kB / 289.3 MB, free: 4.625 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.916e-05/0.005316, allocations: 19.86 kB / 289.3 MB, free: 4.605 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001548/0.005471, allocations: 108 kB / 289.4 MB, free: 4.465 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.085e-05/0.005501, allocations: 55.34 kB / 289.5 MB, free: 4.391 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.072e-06/0.005508, allocations: 0 / 289.5 MB, free: 4.391 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.852e-05/0.005546, allocations: 51.38 kB / 289.5 MB, free: 4.34 MB / 282.7 MB Notification: Performance of SimCode: time 6.71e-07/0.005547, allocations: 0 / 289.5 MB, free: 4.34 MB / 282.7 MB Notification: Performance of Templates: time 0.002571/0.008118, allocations: 0.6929 MB / 290.2 MB, free: 3.652 MB / 282.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.68133058398962]