Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.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.0009542/0.0009542, allocations: 87.67 kB / 21.7 MB, free: 2.844 MB / 18.57 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.001022/0.001022, allocations: 160.6 kB / 24.99 MB, free: 8.742 MB / 18.57 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 1.016/1.016, allocations: 177 MB / 205.2 MB, free: 5.578 MB / 186.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.2828/0.2828, allocations: 34.86 MB / 296.6 MB, free: 0.5703 MB / 266.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 378.7 MB, free: 2.449 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.775e-05/1.945e-05, allocations: 2.875 kB / 378.7 MB, free: 2.445 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0009767/0.0009961, allocations: 0.4924 MB / 379.2 MB, free: 1.953 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009172/0.001913, allocations: 0.8922 MB / 380.1 MB, free: 1.059 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.536e-05/0.001959, allocations: 0 / 380.1 MB, free: 1.059 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.106e-05/0.00198, allocations: 0 / 380.1 MB, free: 1.059 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002534/0.002233, allocations: 11.88 kB / 380.1 MB, free: 1.047 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:333:3-373:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0004826/0.002716, allocations: 69.8 kB / 380.2 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.31e-05/0.002779, allocations: 3.984 kB / 380.2 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.483e-05/0.002814, allocations: 4 kB / 380.2 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.295e-05/0.002847, allocations: 3.938 kB / 380.2 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.809e-05/0.002885, allocations: 0 / 380.2 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.528e-06/0.002894, allocations: 0 / 380.2 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.003005, allocations: 59.94 kB / 380.3 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.717e-06/0.003013, allocations: 4 kB / 380.3 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.04e-05/0.003034, allocations: 0 / 380.3 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001625/0.003196, allocations: 55.81 kB / 380.3 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.0032, allocations: 3.984 kB / 380.3 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.0032, allocations: 4 kB / 380.3 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.389e-06/0.003205, allocations: 4 kB / 380.3 MB, free: 0.8438 MB / 346.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.0003463/0.003551, allocations: 374 kB / 380.7 MB, free: 444 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.003595, allocations: 12.02 kB / 380.7 MB, free: 432 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.381e-05/0.003639, allocations: 0.9375 kB / 380.7 MB, free: 432 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.913e-05/0.003738, allocations: 116.6 kB / 380.8 MB, free: 288 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.003751, allocations: 4.359 kB / 380.8 MB, free: 284 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-06/0.003759, allocations: 384 / 380.8 MB, free: 284 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.333e-05/0.003852, allocations: 59.95 kB / 380.9 MB, free: 212 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.003861, allocations: 192 / 380.9 MB, free: 212 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.00387, allocations: 4.375 kB / 380.9 MB, free: 208 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.003878, allocations: 384 / 380.9 MB, free: 208 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.547e-05/0.003904, allocations: 37.62 kB / 380.9 MB, free: 164 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001234/0.004027, allocations: 105 kB / 381 MB, free: 24 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.019e-05/0.004097, allocations: 64.73 kB / 381.1 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.509e-05/0.004122, allocations: 37.39 kB / 381.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.661e-06/0.004128, allocations: 0 / 381.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/0.004167, allocations: 63.16 kB / 381.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.004167, allocations: 0 / 381.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001879/0.004355, allocations: 122.8 kB / 381.3 MB, free: 15.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.004403, allocations: 88.98 kB / 381.4 MB, free: 15.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.26e-05/0.004486, allocations: 157.9 kB / 381.5 MB, free: 15.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.03e-05/0.004496, allocations: 25.7 kB / 381.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.663e-05/0.004532, allocations: 130.9 kB / 381.7 MB, free: 15.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.523e-05/0.004548, allocations: 0 / 381.7 MB, free: 15.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.733e-05/0.004575, allocations: 19.38 kB / 381.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.004706, allocations: 492.1 kB / 382.2 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.027e-05/0.004726, allocations: 29.7 kB / 382.2 MB, free: 14.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.638e-05/0.004743, allocations: 29.7 kB / 382.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.275e-05/0.004785, allocations: 67.41 kB / 382.3 MB, free: 14.56 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.004788, allocations: 0 / 382.3 MB, free: 14.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.62e-05/0.004854, allocations: 89.09 kB / 382.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.004883, allocations: 36.3 kB / 382.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.004887, allocations: 0 / 382.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.004901, allocations: 0 / 382.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.202e-06/0.004902, allocations: 0 / 382.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.004908, allocations: 4 kB / 382.5 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.327e-05/0.004921, allocations: 7.938 kB / 382.5 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.004928, allocations: 0 / 382.5 MB, free: 14.4 MB / 362.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.67e-05/0.005004, allocations: 190.3 kB / 382.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.529e-06/0.005009, allocations: 0 / 382.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.032e-05/0.005019, allocations: 3 kB / 382.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.005026, allocations: 0 / 382.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.005029, allocations: 0 / 382.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.005033, allocations: 7.938 kB / 382.7 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.21e-05/0.005095, allocations: 108.6 kB / 382.8 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.81e-07/0.005096, allocations: 0 / 382.8 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.005096, allocations: 0 / 382.8 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.82e-07/0.005097, allocations: 0 / 382.8 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/0.005107, allocations: 8 kB / 382.8 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.005109, allocations: 4 kB / 382.8 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.00511, allocations: 0 / 382.8 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.09e-05/0.005201, allocations: 135.7 kB / 382.9 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.041e-06/0.005207, allocations: 0 / 382.9 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.00522, allocations: 4 kB / 382.9 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.429e-06/0.005225, allocations: 0 / 382.9 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.384e-05/0.005239, allocations: 3.938 kB / 382.9 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-06/0.00524, allocations: 0 / 382.9 MB, free: 13.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.648e-05/0.005277, allocations: 123.2 kB / 383 MB, free: 13.74 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.005277, allocations: 4.125 kB / 383 MB, free: 13.74 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001475/0.005424, allocations: 27.86 kB / 383.1 MB, free: 13.71 MB / 362.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.0003488/0.005773, allocations: 192.8 kB / 383.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001069/0.00588, allocations: 118.5 kB / 383.4 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.005881, allocations: 0 / 383.4 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.385e-05/0.005915, allocations: 92.8 kB / 383.5 MB, free: 13.28 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001093/0.006025, allocations: 11.92 kB / 383.5 MB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001965/0.006221, allocations: 119 kB / 383.6 MB, free: 13.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.31e-05/0.006254, allocations: 51.36 kB / 383.6 MB, free: 13.05 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.42e-06/0.00626, allocations: 4.125 kB / 383.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.391e-05/0.006274, allocations: 12.5 kB / 383.7 MB, free: 13.03 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.006274, allocations: 0 / 383.7 MB, free: 13.03 MB / 362.7 MB Notification: Performance of Templates: time 0.002396/0.00867, allocations: 0.6825 MB / 384.3 MB, free: 12.36 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.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.179960115114227]