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.001148/0.001148, allocations: 95.2 kB / 20.43 MB, free: 4.141 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.001489/0.001489, allocations: 165 kB / 23.79 MB, free: 0.7773 MB / 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 1.017/1.017, allocations: 158.6 MB / 185.7 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.1273/0.1273, allocations: 32.37 MB / 270.4 MB, free: 14.71 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 2.014e-06/2.014e-06, allocations: 0 / 347.6 MB, free: 9.484 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.144e-05/3.345e-05, allocations: 2.312 kB / 347.6 MB, free: 9.48 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001497/0.001531, allocations: 0.5064 MB / 348.1 MB, free: 8.98 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005155/0.002046, allocations: 219.3 kB / 348.4 MB, free: 8.766 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.982e-05/0.002076, allocations: 4 kB / 348.4 MB, free: 8.762 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.795e-05/0.002104, allocations: 3.938 kB / 348.4 MB, free: 8.758 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.204e-05/0.002116, allocations: 4 kB / 348.4 MB, free: 8.754 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004384/0.002555, allocations: 39.78 kB / 348.4 MB, free: 8.715 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.972e-05/0.002634, allocations: 4 kB / 348.4 MB, free: 8.711 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.001e-05/0.002684, allocations: 3.984 kB / 348.4 MB, free: 8.707 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.256e-05/0.002717, allocations: 0 / 348.4 MB, free: 8.707 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.12e-05/0.002748, allocations: 3.984 kB / 348.4 MB, free: 8.703 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.909e-06/0.002758, allocations: 0 / 348.4 MB, free: 8.703 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.00289, allocations: 51.89 kB / 348.5 MB, free: 8.652 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.181e-05/0.002902, allocations: 0 / 348.5 MB, free: 8.652 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.443e-05/0.002937, allocations: 0 / 348.5 MB, free: 8.652 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.003081, allocations: 47.88 kB / 348.5 MB, free: 8.605 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.003085, allocations: 4 kB / 348.5 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.003086, allocations: 0 / 348.5 MB, free: 8.602 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.003092, allocations: 4 kB / 348.5 MB, free: 8.598 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.0002754/0.003368, allocations: 385.9 kB / 348.9 MB, free: 8.176 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.003407, allocations: 8.031 kB / 348.9 MB, free: 8.168 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.722e-05/0.003445, allocations: 0.9375 kB / 348.9 MB, free: 8.168 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.915e-05/0.003484, allocations: 108.6 kB / 349 MB, free: 8.035 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.003494, allocations: 384 / 349 MB, free: 8.035 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.105e-06/0.003502, allocations: 384 / 349 MB, free: 8.035 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.784e-05/0.00359, allocations: 59.91 kB / 349.1 MB, free: 7.965 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.003597, allocations: 192 / 349.1 MB, free: 7.965 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.003605, allocations: 4.375 kB / 349.1 MB, free: 7.961 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.003612, allocations: 384 / 349.1 MB, free: 7.961 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.573e-05/0.003627, allocations: 33.62 kB / 349.1 MB, free: 7.922 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.645e-05/0.003704, allocations: 112.6 kB / 349.2 MB, free: 7.777 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.033e-05/0.003744, allocations: 52.8 kB / 349.3 MB, free: 7.707 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.596e-05/0.00376, allocations: 33.39 kB / 349.3 MB, free: 7.664 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.817e-06/0.003764, allocations: 0 / 349.3 MB, free: 7.664 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.003791, allocations: 67.09 kB / 349.4 MB, free: 7.582 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 6.01e-07/0.003791, allocations: 0 / 349.4 MB, free: 7.582 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001581/0.003949, allocations: 126.8 kB / 349.5 MB, free: 7.434 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.327e-05/0.003973, allocations: 77.11 kB / 349.6 MB, free: 7.34 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.278e-05/0.003995, allocations: 142.2 kB / 349.7 MB, free: 7.188 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.97e-06/0.004, allocations: 25.7 kB / 349.7 MB, free: 7.156 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.208e-05/0.004013, allocations: 126.9 kB / 349.9 MB, free: 7.027 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.004031, allocations: 4 kB / 349.9 MB, free: 7.023 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.369e-05/0.004055, allocations: 19.36 kB / 349.9 MB, free: 6.996 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.5e-05/0.00412, allocations: 0.4883 MB / 350.4 MB, free: 6.496 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.676e-05/0.004136, allocations: 29.7 kB / 350.4 MB, free: 6.461 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.112e-05/0.004148, allocations: 25.7 kB / 350.4 MB, free: 6.43 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.754e-05/0.004185, allocations: 71.22 kB / 350.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.004187, allocations: 0 / 350.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.999e-05/0.004237, allocations: 93.08 kB / 350.6 MB, free: 6.234 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.004261, allocations: 33.7 kB / 350.6 MB, free: 6.195 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.004265, allocations: 0 / 350.6 MB, free: 6.195 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.004278, allocations: 4 kB / 350.6 MB, free: 6.191 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.547e-06/0.004281, allocations: 3.938 kB / 350.6 MB, free: 6.188 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.004287, allocations: 0 / 350.6 MB, free: 6.188 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.225e-05/0.0043, allocations: 4.281 kB / 350.6 MB, free: 6.184 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.004307, allocations: 0 / 350.6 MB, free: 6.184 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 4.758e-05/0.004354, allocations: 190.3 kB / 350.8 MB, free: 5.98 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.189e-06/0.00436, allocations: 0 / 350.8 MB, free: 5.98 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.398e-06/0.004369, allocations: 6.938 kB / 350.8 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.00437, allocations: 0 / 350.8 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.004375, allocations: 4 kB / 350.8 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.004378, allocations: 0 / 350.8 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.083e-05/0.004419, allocations: 112.5 kB / 350.9 MB, free: 5.824 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.004419, allocations: 0 / 350.9 MB, free: 5.824 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.5e-07/0.00442, allocations: 0 / 350.9 MB, free: 5.824 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.004421, allocations: 0 / 350.9 MB, free: 5.824 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.004429, allocations: 11.98 kB / 350.9 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.00443, allocations: 4 kB / 351 MB, free: 5.809 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.004431, allocations: 0 / 351 MB, free: 5.809 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.521e-05/0.004496, allocations: 127.8 kB / 351.1 MB, free: 5.648 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.749e-06/0.004501, allocations: 3.984 kB / 351.1 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.004516, allocations: 4 kB / 351.1 MB, free: 5.641 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.769e-06/0.00452, allocations: 0 / 351.1 MB, free: 5.641 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.416e-05/0.004535, allocations: 0 / 351.1 MB, free: 5.641 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-06/0.004536, allocations: 0 / 351.1 MB, free: 5.641 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.46e-05/0.004551, allocations: 123.2 kB / 351.2 MB, free: 5.52 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.004551, allocations: 3.938 kB / 351.2 MB, free: 5.516 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001515/0.004702, allocations: 23.97 kB / 351.2 MB, free: 5.492 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.0004132/0.005115, allocations: 215.1 kB / 351.4 MB, free: 5.316 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.233e-05/0.005208, allocations: 122.5 kB / 351.6 MB, free: 5.168 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.00521, allocations: 0 / 351.6 MB, free: 5.168 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.647e-05/0.005227, allocations: 96.73 kB / 351.7 MB, free: 5.051 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.475e-05/0.005321, allocations: 0 / 351.7 MB, free: 5.051 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001785/0.0055, allocations: 113.6 kB / 351.8 MB, free: 4.902 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.038e-05/0.00552, allocations: 51.36 kB / 351.8 MB, free: 4.832 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.22e-06/0.005525, allocations: 0 / 351.8 MB, free: 4.832 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.133e-05/0.005537, allocations: 12.62 kB / 351.8 MB, free: 4.82 MB / 282.7 MB Notification: Performance of SimCode: time 6.01e-07/0.005537, allocations: 4 kB / 351.8 MB, free: 4.816 MB / 282.7 MB Notification: Performance of Templates: time 0.002569/0.008106, allocations: 0.6772 MB / 352.5 MB, free: 4.141 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.1256987303495407]