Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001172/0.001172, allocations: 88.2 kB / 20.94 MB, free: 3.605 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.001104/0.001104, allocations: 169 kB / 24.24 MB, free: 312 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9902/0.9902, allocations: 158.6 MB / 186 MB, free: 2.91 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1561/0.1561, allocations: 32.37 MB / 270.7 MB, free: 14.78 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.883e-06/1.883e-06, allocations: 0 / 347.6 MB, free: 9.816 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.12e-05/2.308e-05, allocations: 8.281 kB / 347.6 MB, free: 9.809 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0009107/0.0009338, allocations: 0.5081 MB / 348.1 MB, free: 9.305 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004143/0.001348, allocations: 215.4 kB / 348.4 MB, free: 9.094 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.552e-05/0.001374, allocations: 0 / 348.4 MB, free: 9.094 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.116e-05/0.001395, allocations: 4 kB / 348.4 MB, free: 9.09 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.041e-06/0.001401, allocations: 0 / 348.4 MB, free: 9.09 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.001712, allocations: 47.72 kB / 348.4 MB, free: 9.043 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.52e-05/0.001787, allocations: 0 / 348.4 MB, free: 9.043 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.31e-05/0.00183, allocations: 7.969 kB / 348.4 MB, free: 9.035 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.351e-05/0.001864, allocations: 4 kB / 348.4 MB, free: 9.031 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.418e-05/0.001898, allocations: 0 / 348.4 MB, free: 9.031 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.157e-06/0.001907, allocations: 0 / 348.4 MB, free: 9.031 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.002025, allocations: 47.89 kB / 348.5 MB, free: 8.984 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.035e-05/0.002036, allocations: 4 kB / 348.5 MB, free: 8.98 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.216e-05/0.002068, allocations: 0 / 348.5 MB, free: 8.98 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.002195, allocations: 55.86 kB / 348.5 MB, free: 8.926 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.002197, allocations: 0 / 348.5 MB, free: 8.926 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.002198, allocations: 0 / 348.5 MB, free: 8.926 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.002202, allocations: 0 / 348.5 MB, free: 8.926 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.0002778/0.00248, allocations: 385.9 kB / 348.9 MB, free: 8.504 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.002526, allocations: 12.03 kB / 348.9 MB, free: 8.492 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.433e-05/0.00257, allocations: 0.9375 kB / 348.9 MB, free: 8.492 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.321e-05/0.002623, allocations: 104.6 kB / 349 MB, free: 8.363 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.002636, allocations: 384 / 349 MB, free: 8.363 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.002647, allocations: 4.375 kB / 349 MB, free: 8.359 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.87e-05/0.002735, allocations: 55.97 kB / 349.1 MB, free: 8.293 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.002744, allocations: 192 / 349.1 MB, free: 8.293 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.002754, allocations: 384 / 349.1 MB, free: 8.293 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.002763, allocations: 4.375 kB / 349.1 MB, free: 8.289 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.761e-05/0.002781, allocations: 37.56 kB / 349.1 MB, free: 8.246 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.782e-05/0.002858, allocations: 112.6 kB / 349.2 MB, free: 8.102 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.798e-05/0.002896, allocations: 48.77 kB / 349.3 MB, free: 8.035 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.404e-05/0.00291, allocations: 33.48 kB / 349.3 MB, free: 7.992 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.378e-06/0.002915, allocations: 4 kB / 349.3 MB, free: 7.988 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.434e-05/0.002939, allocations: 59.09 kB / 349.4 MB, free: 7.914 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.00294, allocations: 0 / 349.4 MB, free: 7.914 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.000149/0.003089, allocations: 126.7 kB / 349.5 MB, free: 7.766 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.447e-05/0.003114, allocations: 81.11 kB / 349.6 MB, free: 7.668 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.226e-05/0.003136, allocations: 142.2 kB / 349.7 MB, free: 7.516 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.61e-06/0.003141, allocations: 25.7 kB / 349.7 MB, free: 7.484 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.518e-06/0.003151, allocations: 126.9 kB / 349.9 MB, free: 7.355 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.438e-05/0.003165, allocations: 0 / 349.9 MB, free: 7.355 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.236e-05/0.003188, allocations: 23.36 kB / 349.9 MB, free: 7.324 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.692e-05/0.003235, allocations: 0.4883 MB / 350.4 MB, free: 6.824 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.534e-05/0.00325, allocations: 25.7 kB / 350.4 MB, free: 6.793 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.422e-06/0.003256, allocations: 33.83 kB / 350.4 MB, free: 6.754 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.08e-05/0.003287, allocations: 59.09 kB / 350.5 MB, free: 6.68 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.003289, allocations: 4 kB / 350.5 MB, free: 6.676 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.506e-05/0.003324, allocations: 89.03 kB / 350.6 MB, free: 6.57 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.003343, allocations: 37.7 kB / 350.6 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.003347, allocations: 0 / 350.6 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.003359, allocations: 0 / 350.6 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.003359, allocations: 0 / 350.6 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.003366, allocations: 3.938 kB / 350.6 MB, free: 6.523 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.061e-05/0.003376, allocations: 4.281 kB / 350.6 MB, free: 6.52 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-06/0.003381, allocations: 8.094 kB / 350.6 MB, free: 6.512 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 3.936e-05/0.00342, allocations: 182.3 kB / 350.8 MB, free: 6.316 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.678e-06/0.003425, allocations: 7.984 kB / 350.8 MB, free: 6.309 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.893e-06/0.003432, allocations: 3 kB / 350.8 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.003433, allocations: 0 / 350.8 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.003436, allocations: 0 / 350.8 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-06/0.003438, allocations: 0 / 350.8 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.27e-05/0.00347, allocations: 116.5 kB / 350.9 MB, free: 6.156 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.11e-07/0.003471, allocations: 0 / 350.9 MB, free: 6.156 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.21e-07/0.003471, allocations: 0 / 350.9 MB, free: 6.156 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.003473, allocations: 11.98 kB / 350.9 MB, free: 6.145 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-06/0.003478, allocations: 0 / 350.9 MB, free: 6.145 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.003479, allocations: 3.938 kB / 350.9 MB, free: 6.141 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.003479, allocations: 0 / 350.9 MB, free: 6.141 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.78e-05/0.003527, allocations: 135.8 kB / 351.1 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.136e-06/0.00353, allocations: 0 / 351.1 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.103e-05/0.003541, allocations: 0 / 351.1 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.227e-06/0.003546, allocations: 0 / 351.1 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.29e-05/0.003559, allocations: 4 kB / 351.1 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-06/0.00356, allocations: 0 / 351.1 MB, free: 5.969 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.464e-05/0.003575, allocations: 123.2 kB / 351.2 MB, free: 5.848 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003575, allocations: 4.031 kB / 351.2 MB, free: 5.844 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001378/0.003712, allocations: 19.94 kB / 351.2 MB, free: 5.824 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.0003295/0.004042, allocations: 221.8 kB / 351.4 MB, free: 5.645 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.413e-05/0.004126, allocations: 122.4 kB / 351.6 MB, free: 5.496 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.004128, allocations: 0 / 351.6 MB, free: 5.496 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.616e-05/0.004144, allocations: 92.8 kB / 351.7 MB, free: 5.383 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.966e-05/0.004234, allocations: 7.938 kB / 351.7 MB, free: 5.375 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001698/0.004404, allocations: 113.6 kB / 351.8 MB, free: 5.227 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.288e-05/0.004426, allocations: 51.36 kB / 351.8 MB, free: 5.156 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.801e-06/0.004432, allocations: 128 / 351.8 MB, free: 5.156 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.299e-05/0.004445, allocations: 12.5 kB / 351.8 MB, free: 5.145 MB / 282.7 MB Notification: Performance of SimCode: time 5.11e-07/0.004446, allocations: 0 / 351.8 MB, free: 5.145 MB / 282.7 MB Notification: Performance of Templates: time 0.002022/0.006468, allocations: 0.6221 MB / 352.5 MB, free: 4.523 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.1647739799227566]