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.001028/0.001028, allocations: 76.17 kB / 9.933 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001418/0.002446, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0009912/0.0009912, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002047/0.003038, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.053/1.053, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1109/1.164, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.2944/0.2944, allocations: 32.8 MB / 276.8 MB, free: 15.87 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.04944/0.3438, allocations: 12.53 MB / 289.3 MB, free: 8.676 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.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.933e-06/1.933e-06, allocations: 0 / 290.6 MB, free: 7.684 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.05e-05/2.243e-05, allocations: 2.312 kB / 290.6 MB, free: 7.68 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001023/0.001045, allocations: 0.5347 MB / 291.1 MB, free: 7.27 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003584/0.001404, allocations: 233.7 kB / 291.3 MB, free: 7.105 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.556e-05/0.001419, allocations: 1.812 kB / 291.3 MB, free: 7.105 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.647e-06/0.001423, allocations: 3.938 kB / 291.3 MB, free: 7.102 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.72e-07/0.001424, allocations: 3.938 kB / 291.3 MB, free: 7.098 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.0001578/0.001581, allocations: 40.92 kB / 291.4 MB, free: 7.07 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.329e-05/0.001655, allocations: 1.094 kB / 291.4 MB, free: 7.07 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.126e-05/0.001706, allocations: 10.06 kB / 291.4 MB, free: 7.062 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.076e-05/0.001747, allocations: 1.312 kB / 291.4 MB, free: 7.062 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.676e-05/0.001783, allocations: 1.375 kB / 291.4 MB, free: 7.062 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.418e-06/0.001793, allocations: 0 / 291.4 MB, free: 7.062 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001471/0.00194, allocations: 54.61 kB / 291.4 MB, free: 7.035 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.102e-05/0.001951, allocations: 5.344 kB / 291.5 MB, free: 7.031 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.876e-05/0.00197, allocations: 5.25 kB / 291.5 MB, free: 7.027 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000128/0.002098, allocations: 42.42 kB / 291.5 MB, free: 7.008 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.744e-05/0.002115, allocations: 1.281 kB / 291.5 MB, free: 7.008 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.002116, allocations: 0 / 291.5 MB, free: 7.008 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.909e-05/0.002135, allocations: 0 / 291.5 MB, free: 7.008 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.0003534/0.002488, allocations: 255.5 kB / 291.8 MB, free: 6.738 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.002529, allocations: 8.875 kB / 291.8 MB, free: 6.738 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.77e-05/0.002566, allocations: 2.031 kB / 291.8 MB, free: 6.738 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.134e-05/0.002648, allocations: 111.2 kB / 291.9 MB, free: 6.605 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.00266, allocations: 1.656 kB / 291.9 MB, free: 6.605 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.913e-06/0.002667, allocations: 2.031 kB / 291.9 MB, free: 6.605 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.473e-05/0.002751, allocations: 62.31 kB / 291.9 MB, free: 6.535 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.00276, allocations: 192 / 291.9 MB, free: 6.535 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.651e-06/0.002765, allocations: 384 / 291.9 MB, free: 6.535 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.002771, allocations: 1.656 kB / 291.9 MB, free: 6.535 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.315e-05/0.002794, allocations: 32.39 kB / 292 MB, free: 6.5 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.3e-05/0.002877, allocations: 62.42 kB / 292 MB, free: 6.426 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.032e-05/0.002927, allocations: 42.66 kB / 292.1 MB, free: 6.371 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.058e-05/0.002948, allocations: 41.31 kB / 292.1 MB, free: 6.324 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.028e-06/0.002952, allocations: 0 / 292.1 MB, free: 6.324 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.408e-05/0.002996, allocations: 62.83 kB / 292.2 MB, free: 6.25 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 7.21e-07/0.002997, allocations: 0 / 292.2 MB, free: 6.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001327/0.00313, allocations: 113.4 kB / 292.3 MB, free: 6.121 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.003173, allocations: 78.83 kB / 292.4 MB, free: 6.027 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.493e-05/0.003208, allocations: 89.86 kB / 292.4 MB, free: 5.93 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.003221, allocations: 25.7 kB / 292.5 MB, free: 5.898 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.408e-05/0.003245, allocations: 81.83 kB / 292.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.003264, allocations: 0 / 292.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.00329, allocations: 16.5 kB / 292.6 MB, free: 5.797 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.716e-05/0.003387, allocations: 324.3 kB / 292.9 MB, free: 5.473 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.69e-05/0.003404, allocations: 27.2 kB / 292.9 MB, free: 5.441 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.427e-05/0.003419, allocations: 26.92 kB / 292.9 MB, free: 5.41 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.97e-05/0.003478, allocations: 67.92 kB / 293 MB, free: 5.332 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.003481, allocations: 0 / 293 MB, free: 5.332 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.534e-05/0.003536, allocations: 87.22 kB / 293.1 MB, free: 5.234 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.84e-05/0.003584, allocations: 31.33 kB / 293.1 MB, free: 5.203 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.00359, allocations: 0 / 293.1 MB, free: 5.203 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.003604, allocations: 5.188 kB / 293.1 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.111e-06/0.00361, allocations: 0 / 293.1 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.003616, allocations: 1.25 kB / 293.1 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2e-05/0.003636, allocations: 0 / 293.1 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.003646, allocations: 1.406 kB / 293.1 MB, free: 5.199 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 7.707e-05/0.003723, allocations: 142.3 kB / 293.3 MB, free: 5.047 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.94e-06/0.003728, allocations: 1.312 kB / 293.3 MB, free: 5.047 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.267e-06/0.003737, allocations: 6.938 kB / 293.3 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.00374, allocations: 1.406 kB / 293.3 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.003742, allocations: 0 / 293.3 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.003745, allocations: 3.938 kB / 293.3 MB, free: 5.039 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.213e-05/0.003798, allocations: 76.02 kB / 293.4 MB, free: 4.949 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.71e-07/0.003798, allocations: 1.469 kB / 293.4 MB, free: 4.949 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.374e-06/0.0038, allocations: 4 kB / 293.4 MB, free: 4.945 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.659e-06/0.003805, allocations: 1.375 kB / 293.4 MB, free: 4.945 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.72e-07/0.003806, allocations: 0 / 293.4 MB, free: 4.945 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.003812, allocations: 5.266 kB / 293.4 MB, free: 4.941 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.4e-07/0.003812, allocations: 0 / 293.4 MB, free: 4.941 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.003813, allocations: 0 / 293.4 MB, free: 4.941 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.587e-05/0.003889, allocations: 118.3 kB / 293.5 MB, free: 4.805 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.003902, allocations: 1.688 kB / 293.5 MB, free: 4.805 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.751e-06/0.003908, allocations: 4.656 kB / 293.5 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.139e-05/0.003919, allocations: 1.375 kB / 293.5 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-06/0.003921, allocations: 0 / 293.5 MB, free: 4.801 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.725e-06/0.003929, allocations: 6.359 kB / 293.5 MB, free: 4.793 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.003929, allocations: 3.938 kB / 293.5 MB, free: 4.789 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001157/0.004045, allocations: 15.97 kB / 293.5 MB, free: 4.785 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.0004499/0.004494, allocations: 223.1 kB / 293.7 MB, free: 4.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001266/0.004621, allocations: 121.9 kB / 293.9 MB, free: 4.539 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.004626, allocations: 1.094 kB / 293.9 MB, free: 4.539 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.341e-05/0.004659, allocations: 89.91 kB / 293.9 MB, free: 4.434 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.074e-05/0.00472, allocations: 8.156 kB / 294 MB, free: 4.43 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001877/0.004907, allocations: 109.7 kB / 294.1 MB, free: 4.297 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.478e-05/0.004942, allocations: 52.58 kB / 294.1 MB, free: 4.227 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.424e-06/0.00495, allocations: 0 / 294.1 MB, free: 4.227 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.627e-05/0.004996, allocations: 56.23 kB / 294.2 MB, free: 4.176 MB / 282.7 MB Notification: Performance of SimCode: time 7.61e-07/0.004997, allocations: 0 / 294.2 MB, free: 4.176 MB / 282.7 MB Notification: Performance of Templates: time 0.002791/0.007788, allocations: 0.6988 MB / 294.9 MB, free: 3.703 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1393544441089034]