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.001872/0.001872, allocations: 75.34 kB / 21.24 MB, free: 0.5469 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.002229/0.002229, allocations: 157.7 kB / 24.5 MB, free: 3.723 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.501/1.501, allocations: 177.2 MB / 204.9 MB, free: 9.02 MB / 190.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.2125/0.2125, allocations: 34.27 MB / 295.5 MB, free: 14.58 MB / 286.1 MB " [Timeout remaining time 180] 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 - loaded program: time 0.00216/0.00216, allocations: 67.88 kB / 443.1 MB, free: 6.707 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3285, allocations: 66.01 MB / 0.4972 GB, free: 29.82 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001422/0.3299, allocations: 488.3 kB / 0.4977 GB, free: 29.54 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000458/0.3304, allocations: 219.4 kB / 0.4979 GB, free: 29.42 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.147e-05/0.3304, allocations: 0 / 0.4979 GB, free: 29.42 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.472e-05/0.3304, allocations: 0 / 0.4979 GB, free: 29.42 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.119e-06/0.3304, allocations: 0 / 0.4979 GB, free: 29.42 MB / 446.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.0002602/0.3307, allocations: 62.5 kB / 0.4979 GB, free: 29.38 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.295e-05/0.3307, allocations: 3.938 kB / 0.4979 GB, free: 29.38 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.993e-05/0.3308, allocations: 0 / 0.4979 GB, free: 29.38 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.282e-05/0.3308, allocations: 3.062 kB / 0.4979 GB, free: 29.38 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.105e-05/0.3308, allocations: 4 kB / 0.498 GB, free: 29.37 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.19e-06/0.3308, allocations: 0 / 0.498 GB, free: 29.37 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001207/0.3309, allocations: 50.09 kB / 0.498 GB, free: 29.36 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.762e-06/0.3309, allocations: 0 / 0.498 GB, free: 29.36 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.607e-05/0.331, allocations: 0 / 0.498 GB, free: 29.36 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 9.441e-05/0.3311, allocations: 44.94 kB / 0.498 GB, free: 29.34 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3311, allocations: 0 / 0.498 GB, free: 29.34 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3311, allocations: 0 / 0.498 GB, free: 29.34 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.3311, allocations: 0 / 0.498 GB, free: 29.34 MB / 446.1 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.0002147/0.3313, allocations: 280.5 kB / 0.4983 GB, free: 29.05 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.718e-05/0.3313, allocations: 9.812 kB / 0.4983 GB, free: 29.05 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.416e-05/0.3313, allocations: 8.938 kB / 0.4983 GB, free: 29.04 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.016e-05/0.3314, allocations: 106.1 kB / 0.4984 GB, free: 28.91 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.3314, allocations: 3.562 kB / 0.4984 GB, free: 28.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.467e-06/0.3314, allocations: 384 / 0.4984 GB, free: 28.91 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.201e-05/0.3315, allocations: 55.16 kB / 0.4985 GB, free: 28.85 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.3315, allocations: 192 / 0.4985 GB, free: 28.85 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.295e-06/0.3315, allocations: 3.938 kB / 0.4985 GB, free: 28.85 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.3315, allocations: 0 / 0.4985 GB, free: 28.85 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.935e-05/0.3315, allocations: 29.02 kB / 0.4985 GB, free: 28.82 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.676e-05/0.3316, allocations: 104.8 kB / 0.4986 GB, free: 28.69 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.089e-05/0.3316, allocations: 51.47 kB / 0.4987 GB, free: 28.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.556e-05/0.3316, allocations: 34.56 kB / 0.4987 GB, free: 28.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.3316, allocations: 3.156 kB / 0.4987 GB, free: 28.58 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.3317, allocations: 56.27 kB / 0.4988 GB, free: 28.51 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.3317, allocations: 0 / 0.4988 GB, free: 28.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001425/0.3318, allocations: 123.4 kB / 0.4989 GB, free: 28.38 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.3318, allocations: 81.05 kB / 0.4989 GB, free: 28.28 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.941e-05/0.3319, allocations: 93.81 kB / 0.499 GB, free: 28.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.853e-06/0.3319, allocations: 28.73 kB / 0.4991 GB, free: 28.15 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.728e-06/0.3319, allocations: 80.14 kB / 0.4991 GB, free: 28.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.658e-05/0.3319, allocations: 128 / 0.4991 GB, free: 28.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-05/0.3319, allocations: 20.3 kB / 0.4992 GB, free: 28.05 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.316e-05/0.332, allocations: 314.8 kB / 0.4995 GB, free: 27.73 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.285e-05/0.332, allocations: 25.7 kB / 0.4995 GB, free: 27.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.628e-06/0.332, allocations: 28.95 kB / 0.4995 GB, free: 27.67 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.108e-05/0.332, allocations: 59.52 kB / 0.4996 GB, free: 27.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.332, allocations: 3.938 kB / 0.4996 GB, free: 27.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.521e-05/0.3321, allocations: 90.72 kB / 0.4997 GB, free: 27.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.3321, allocations: 35.77 kB / 0.4997 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.3321, allocations: 96 / 0.4997 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.3321, allocations: 7.438 kB / 0.4997 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.243e-06/0.3321, allocations: 3.938 kB / 0.4997 GB, free: 27.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.3321, allocations: 3.938 kB / 0.4997 GB, free: 27.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.446e-05/0.3321, allocations: 3.562 kB / 0.4997 GB, free: 27.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.3321, allocations: 0 / 0.4997 GB, free: 27.45 MB / 446.1 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 4.253e-05/0.3322, allocations: 134.8 kB / 0.4998 GB, free: 27.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.853e-06/0.3322, allocations: 0 / 0.4998 GB, free: 27.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.045e-06/0.3322, allocations: 5.812 kB / 0.4998 GB, free: 27.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3322, allocations: 3.938 kB / 0.4999 GB, free: 27.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3322, allocations: 0 / 0.4999 GB, free: 27.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.3322, allocations: 4 kB / 0.4999 GB, free: 27.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.054e-05/0.3322, allocations: 99.58 kB / 0.5 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.3322, allocations: 0 / 0.5 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3322, allocations: 0 / 0.5 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.3322, allocations: 0 / 0.5 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.3322, allocations: 0 / 0.5 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.3322, allocations: 7.188 kB / 0.5 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3322, allocations: 3.938 kB / 0.5 GB, free: 27.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.185e-05/0.3323, allocations: 121.7 kB / 0.5001 GB, free: 27.03 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.278e-06/0.3323, allocations: 3.188 kB / 0.5001 GB, free: 27.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.868e-06/0.3323, allocations: 4.031 kB / 0.5001 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.654e-06/0.3323, allocations: 0 / 0.5001 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.778e-05/0.3324, allocations: 10.78 kB / 0.5001 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.3324, allocations: 0 / 0.5001 GB, free: 27.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.126e-05/0.3324, allocations: 75.28 kB / 0.5002 GB, free: 26.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3324, allocations: 0 / 0.5002 GB, free: 26.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000199/0.3326, allocations: 16.84 kB / 0.5002 GB, free: 26.94 MB / 446.1 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.0003798/0.333, allocations: 192.8 kB / 0.5004 GB, free: 26.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.114e-05/0.333, allocations: 116.8 kB / 0.5005 GB, free: 26.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.333, allocations: 0 / 0.5005 GB, free: 26.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.017e-05/0.3331, allocations: 84.39 kB / 0.5006 GB, free: 26.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001189/0.3332, allocations: 3.938 kB / 0.5006 GB, free: 26.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001622/0.3333, allocations: 121.4 kB / 0.5007 GB, free: 26.46 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.853e-05/0.3334, allocations: 54.61 kB / 0.5007 GB, free: 26.39 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.781e-06/0.3334, allocations: 3.938 kB / 0.5007 GB, free: 26.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.098e-05/0.3334, allocations: 8.5 kB / 0.5007 GB, free: 26.37 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3334, allocations: 0 / 0.5007 GB, free: 26.37 MB / 446.1 MB Notification: Performance of Templates: time 0.003064/0.3364, allocations: 0.59 MB / 0.5013 GB, free: 26.26 MB / 446.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/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: 4.968040760024451]