Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008229/0.0008229, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00114/0.001963, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009862/0.0009862, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001262/0.002248, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9525/0.9525, allocations: 177.5 MB / 190 MB, free: 4.773 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09275/1.045, allocations: 53.87 MB / 243.9 MB, free: 14.83 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2438/0.2438, allocations: 34.88 MB / 279.5 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02444/0.2682, allocations: 13.24 MB / 292.8 MB, free: 6.371 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 0 / 294.1 MB, free: 5.102 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.627e-05/1.852e-05, allocations: 3.406 kB / 294.1 MB, free: 5.098 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001015/0.001034, allocations: 0.5386 MB / 294.6 MB, free: 4.559 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002761/0.00131, allocations: 235.6 kB / 294.8 MB, free: 4.332 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.233e-05/0.001322, allocations: 0 / 294.8 MB, free: 4.332 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.777e-06/0.001326, allocations: 0 / 294.8 MB, free: 4.332 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.12e-07/0.001327, allocations: 0 / 294.8 MB, free: 4.332 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:300:3-331: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.0001281/0.001455, allocations: 39.77 kB / 294.9 MB, free: 4.293 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.261e-05/0.001507, allocations: 8 kB / 294.9 MB, free: 4.285 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.168e-05/0.001539, allocations: 3.938 kB / 294.9 MB, free: 4.281 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.146e-05/0.001571, allocations: 7.984 kB / 294.9 MB, free: 4.273 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.651e-05/0.001607, allocations: 0 / 294.9 MB, free: 4.273 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.693e-06/0.001614, allocations: 4 kB / 294.9 MB, free: 4.27 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.001725, allocations: 51.89 kB / 294.9 MB, free: 4.219 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.243e-05/0.001737, allocations: 4 kB / 295 MB, free: 4.215 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.228e-05/0.001749, allocations: 0 / 295 MB, free: 4.215 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001057/0.001855, allocations: 51.77 kB / 295 MB, free: 4.164 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.147e-05/0.001866, allocations: 0 / 295 MB, free: 4.164 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.02e-07/0.001867, allocations: 0 / 295 MB, free: 4.164 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.669e-06/0.001877, allocations: 0 / 295 MB, free: 4.164 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.0002547/0.002131, allocations: 250.3 kB / 295.2 MB, free: 3.887 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.002165, allocations: 12.92 kB / 295.3 MB, free: 3.875 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.149e-05/0.002196, allocations: 0.9375 kB / 295.3 MB, free: 3.875 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.166e-05/0.002258, allocations: 109.8 kB / 295.4 MB, free: 3.742 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.00227, allocations: 4.375 kB / 295.4 MB, free: 3.738 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.855e-06/0.002278, allocations: 384 / 295.4 MB, free: 3.738 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.999e-05/0.002348, allocations: 63.95 kB / 295.4 MB, free: 3.664 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.811e-06/0.002354, allocations: 192 / 295.4 MB, free: 3.664 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.671e-06/0.002359, allocations: 384 / 295.4 MB, free: 3.664 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.002364, allocations: 384 / 295.4 MB, free: 3.664 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.854e-05/0.002383, allocations: 37.58 kB / 295.5 MB, free: 3.621 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.006e-05/0.002453, allocations: 57.05 kB / 295.5 MB, free: 3.551 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.103e-05/0.002494, allocations: 48.3 kB / 295.6 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.486e-05/0.002509, allocations: 34.56 kB / 295.6 MB, free: 3.445 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-06/0.002512, allocations: 0 / 295.6 MB, free: 3.445 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/0.002552, allocations: 60.33 kB / 295.7 MB, free: 3.371 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 5.91e-07/0.002553, allocations: 0 / 295.7 MB, free: 3.371 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.000115/0.002668, allocations: 114.7 kB / 295.8 MB, free: 3.234 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.002721, allocations: 162.2 kB / 295.9 MB, free: 3.039 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.184e-05/0.002753, allocations: 89.86 kB / 296 MB, free: 2.941 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.225e-06/0.002761, allocations: 25.7 kB / 296.1 MB, free: 2.91 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.143e-05/0.002783, allocations: 80.14 kB / 296.1 MB, free: 2.828 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.002801, allocations: 0.8125 kB / 296.1 MB, free: 2.828 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.002822, allocations: 21.72 kB / 296.2 MB, free: 2.801 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.684e-05/0.002889, allocations: 318.7 kB / 296.5 MB, free: 2.48 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.649e-05/0.002905, allocations: 33.69 kB / 296.5 MB, free: 2.441 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.011e-05/0.002915, allocations: 25.7 kB / 296.5 MB, free: 2.41 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.613e-05/0.002951, allocations: 60.27 kB / 296.6 MB, free: 2.336 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.002953, allocations: 0 / 296.6 MB, free: 2.336 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.696e-05/0.003, allocations: 93.03 kB / 296.7 MB, free: 2.227 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/0.003031, allocations: 29.7 kB / 296.7 MB, free: 2.191 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.003036, allocations: 0 / 296.7 MB, free: 2.191 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.003046, allocations: 4.094 kB / 296.7 MB, free: 2.188 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.283e-06/0.003047, allocations: 0 / 296.7 MB, free: 2.188 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.956e-06/0.00305, allocations: 4 kB / 296.7 MB, free: 2.184 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.38e-05/0.003064, allocations: 0 / 296.7 MB, free: 2.184 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-06/0.003071, allocations: 0 / 296.7 MB, free: 2.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 5.713e-05/0.003128, allocations: 147.5 kB / 296.9 MB, free: 2.023 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.438e-06/0.003132, allocations: 3.984 kB / 296.9 MB, free: 2.02 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.242e-06/0.003139, allocations: 3 kB / 296.9 MB, free: 2.02 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.00314, allocations: 0 / 296.9 MB, free: 2.02 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.003141, allocations: 0 / 296.9 MB, free: 2.02 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.003144, allocations: 4 kB / 296.9 MB, free: 2.016 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.102e-05/0.003185, allocations: 69.83 kB / 296.9 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.71e-07/0.003185, allocations: 0 / 296.9 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.81e-07/0.003186, allocations: 0 / 296.9 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.507e-06/0.003189, allocations: 0 / 296.9 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-07/0.00319, allocations: 4 kB / 296.9 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.267e-06/0.003193, allocations: 0 / 296.9 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.003194, allocations: 3.984 kB / 296.9 MB, free: 1.922 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.21e-07/0.003195, allocations: 0 / 296.9 MB, free: 1.922 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.517e-05/0.00325, allocations: 112.4 kB / 297 MB, free: 1.781 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.003262, allocations: 8.016 kB / 297.1 MB, free: 1.773 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.619e-06/0.003267, allocations: 4 kB / 297.1 MB, free: 1.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.406e-06/0.003275, allocations: 0 / 297.1 MB, free: 1.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.003278, allocations: 4 kB / 297.1 MB, free: 1.766 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.282e-06/0.003284, allocations: 4.859 kB / 297.1 MB, free: 1.758 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003284, allocations: 4 kB / 297.1 MB, free: 1.754 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001084/0.003392, allocations: 19.94 kB / 297.1 MB, free: 1.734 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.0003711/0.003763, allocations: 218.8 kB / 297.3 MB, free: 1.586 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.116e-05/0.003845, allocations: 115.7 kB / 297.4 MB, free: 1.445 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.003848, allocations: 4 kB / 297.4 MB, free: 1.441 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.994e-05/0.003877, allocations: 94 kB / 297.5 MB, free: 1.328 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.953e-05/0.003927, allocations: 15.92 kB / 297.5 MB, free: 1.312 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001344/0.004061, allocations: 105.4 kB / 297.6 MB, free: 1.176 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.756e-05/0.004089, allocations: 51.36 kB / 297.7 MB, free: 1.105 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.091e-06/0.004095, allocations: 0 / 297.7 MB, free: 1.105 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.925e-05/0.004124, allocations: 55.36 kB / 297.7 MB, free: 1.051 MB / 282.7 MB Notification: Performance of SimCode: time 5.51e-07/0.004125, allocations: 4 kB / 297.7 MB, free: 1.047 MB / 282.7 MB Notification: Performance of Templates: time 0.001924/0.006049, allocations: 0.6913 MB / 298.4 MB, free: 364 kB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.6863692943006754]