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.00109/0.00109, allocations: 84.34 kB / 22.21 MB, free: 2.285 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.001138/0.001138, allocations: 166.8 kB / 25.61 MB, free: 8.582 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 0.9288/0.9288, allocations: 177 MB / 205.9 MB, free: 4.453 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.1734/0.1734, allocations: 34.88 MB / 297.4 MB, free: 13.42 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.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 8.41e-07/8.41e-07, allocations: 0 / 380 MB, free: 22.78 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.091e-05/1.175e-05, allocations: 4.938 kB / 380 MB, free: 22.78 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0008236/0.0008354, allocations: 499.5 kB / 380.5 MB, free: 22.29 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006075/0.001443, allocations: 0.9019 MB / 381.4 MB, free: 21.39 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.47e-05/0.001468, allocations: 3.938 kB / 381.4 MB, free: 21.39 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.18e-05/0.001479, allocations: 0 / 381.4 MB, free: 21.39 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.001598, allocations: 7.984 kB / 381.4 MB, free: 21.38 MB / 314.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.0003726/0.001971, allocations: 83.3 kB / 381.5 MB, free: 21.31 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 3.738e-05/0.002008, allocations: 0 / 381.5 MB, free: 21.31 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.617e-05/0.002034, allocations: 4 kB / 381.5 MB, free: 21.31 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.895e-05/0.002053, allocations: 7.984 kB / 381.5 MB, free: 21.3 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.646e-05/0.002079, allocations: 0 / 381.5 MB, free: 21.3 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.903e-06/0.002086, allocations: 0 / 381.5 MB, free: 21.3 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.43e-05/0.002161, allocations: 63.88 kB / 381.5 MB, free: 21.24 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.632e-06/0.002167, allocations: 0 / 381.5 MB, free: 21.24 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.01e-05/0.002177, allocations: 0 / 381.5 MB, free: 21.24 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001047/0.002282, allocations: 63.8 kB / 381.6 MB, free: 21.18 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.002284, allocations: 0 / 381.6 MB, free: 21.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.002284, allocations: 4 kB / 381.6 MB, free: 21.17 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.665e-06/0.002287, allocations: 0 / 381.6 MB, free: 21.17 MB / 314.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.0001667/0.002454, allocations: 377.9 kB / 382 MB, free: 20.76 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.398e-05/0.002478, allocations: 12.03 kB / 382 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.054e-05/0.002498, allocations: 0.9375 kB / 382 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.582e-05/0.002544, allocations: 108.6 kB / 382.1 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-06/0.002552, allocations: 384 / 382.1 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.329e-06/0.002557, allocations: 384 / 382.1 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.861e-05/0.002605, allocations: 63.95 kB / 382.1 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-06/0.002612, allocations: 192 / 382.1 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-06/0.002616, allocations: 384 / 382.1 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.002621, allocations: 4.312 kB / 382.2 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.528e-06/0.00263, allocations: 37.58 kB / 382.2 MB, free: 20.49 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 4.923e-05/0.00268, allocations: 97.25 kB / 382.3 MB, free: 20.37 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.571e-05/0.002705, allocations: 56.8 kB / 382.3 MB, free: 20.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.287e-06/0.002715, allocations: 33.39 kB / 382.4 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-06/0.002717, allocations: 0 / 382.4 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/0.002737, allocations: 67.14 kB / 382.4 MB, free: 20.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 4.81e-07/0.002737, allocations: 0 / 382.4 MB, free: 20.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 9.858e-05/0.002836, allocations: 118.8 kB / 382.6 MB, free: 20.03 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.794e-05/0.002854, allocations: 77.11 kB / 382.6 MB, free: 19.94 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.143e-05/0.002885, allocations: 157.9 kB / 382.8 MB, free: 19.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.267e-06/0.002888, allocations: 25.95 kB / 382.8 MB, free: 19.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.001e-05/0.002898, allocations: 130.9 kB / 382.9 MB, free: 19.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.257e-06/0.002908, allocations: 4.297 kB / 382.9 MB, free: 19.6 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.621e-05/0.002924, allocations: 19.38 kB / 383 MB, free: 19.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.448e-05/0.002958, allocations: 496.1 kB / 383.4 MB, free: 19.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.282e-06/0.002964, allocations: 25.7 kB / 383.5 MB, free: 19.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.252e-06/0.002971, allocations: 29.72 kB / 383.5 MB, free: 19.01 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.697e-05/0.002988, allocations: 71.06 kB / 383.6 MB, free: 18.92 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.002989, allocations: 0 / 383.6 MB, free: 18.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.265e-05/0.003021, allocations: 93.05 kB / 383.7 MB, free: 18.81 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.003036, allocations: 33.8 kB / 383.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.775e-06/0.003039, allocations: 0 / 383.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.862e-06/0.003046, allocations: 0 / 383.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.372e-06/0.003047, allocations: 3.984 kB / 383.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.154e-06/0.00305, allocations: 0 / 383.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.646e-06/0.003058, allocations: 4 kB / 383.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.068e-06/0.003062, allocations: 3.938 kB / 383.7 MB, free: 18.76 MB / 314.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.125e-05/0.003094, allocations: 178.3 kB / 383.9 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.128e-06/0.003098, allocations: 4 kB / 383.9 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.482e-06/0.003104, allocations: 3 kB / 383.9 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.81e-07/0.003105, allocations: 4 kB / 383.9 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.003107, allocations: 0 / 383.9 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.003109, allocations: 0 / 383.9 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.356e-05/0.003142, allocations: 101.2 kB / 384 MB, free: 18.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-07/0.003143, allocations: 0 / 384 MB, free: 18.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.51e-07/0.003143, allocations: 3.938 kB / 384 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-07/0.003144, allocations: 0 / 384 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.126e-06/0.003147, allocations: 0 / 384 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.003148, allocations: 8 kB / 384 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.01e-07/0.003149, allocations: 0 / 384 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.392e-05/0.003192, allocations: 143.7 kB / 384.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.1e-06/0.003198, allocations: 0 / 384.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.136e-06/0.003206, allocations: 4 kB / 384.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.968e-06/0.00321, allocations: 0 / 384.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.094e-06/0.003217, allocations: 0 / 384.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-06/0.003218, allocations: 0 / 384.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.215e-05/0.00323, allocations: 119.2 kB / 384.3 MB, free: 18.13 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00323, allocations: 0 / 384.3 MB, free: 18.13 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001283/0.003358, allocations: 23.92 kB / 384.3 MB, free: 18.11 MB / 314.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.0002473/0.003606, allocations: 196.9 kB / 384.5 MB, free: 17.95 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 5.414e-05/0.00366, allocations: 126.4 kB / 384.6 MB, free: 17.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-06/0.003661, allocations: 0 / 384.6 MB, free: 17.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.194e-05/0.003673, allocations: 88.8 kB / 384.7 MB, free: 17.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.874e-05/0.003752, allocations: 11.88 kB / 384.7 MB, free: 17.67 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 9.152e-05/0.003843, allocations: 117 kB / 384.8 MB, free: 17.52 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.312e-05/0.003856, allocations: 55.22 kB / 384.9 MB, free: 17.45 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.188e-06/0.00386, allocations: 0 / 384.9 MB, free: 17.45 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.086e-05/0.003881, allocations: 70.2 kB / 384.9 MB, free: 17.38 MB / 314.7 MB Notification: Performance of SimCode: time 6.81e-07/0.003882, allocations: 0 / 384.9 MB, free: 17.38 MB / 314.7 MB Notification: Performance of Templates: time 0.001823/0.005704, allocations: 0.7715 MB / 385.7 MB, free: 16.61 MB / 314.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.147306073922664]