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.001593/0.001593, allocations: 118.1 kB / 18.45 MB, free: 4.715 MB / 14.72 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.002038/0.002038, allocations: 207.4 kB / 21.39 MB, free: 1.77 MB / 14.72 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.438/1.438, allocations: 227.4 MB / 251.6 MB, free: 108 kB / 190.1 MB " [Timeout remaining time 178] 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.2577/0.2577, allocations: 46.16 MB / 351.1 MB, free: 14.3 MB / 286.1 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 0.002628/0.002628, allocations: 88.08 kB / 490.2 MB, free: 28.3 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1427, allocations: 62.45 MB / 0.5397 GB, free: 4.395 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001585/0.1444, allocations: 481 kB / 0.5401 GB, free: 3.918 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.1457, allocations: 0.7819 MB / 0.5409 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.02e-05/0.1457, allocations: 0 / 0.5409 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.877e-05/0.1457, allocations: 4 kB / 0.5409 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.1459, allocations: 8 kB / 0.5409 GB, free: 3.121 MB / 398.1 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.0006275/0.1466, allocations: 54.28 kB / 0.5409 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.953e-05/0.1466, allocations: 11.98 kB / 0.5409 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.829e-05/0.1467, allocations: 0 / 0.5409 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.923e-05/0.1467, allocations: 7.938 kB / 0.541 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.63e-05/0.1468, allocations: 0 / 0.541 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.174e-06/0.1468, allocations: 0 / 0.541 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001425/0.1469, allocations: 63.94 kB / 0.541 GB, free: 2.988 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.536e-06/0.1469, allocations: 0 / 0.541 GB, free: 2.988 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.128e-05/0.147, allocations: 3.938 kB / 0.541 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001338/0.1471, allocations: 55.86 kB / 0.5411 GB, free: 2.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1471, allocations: 0 / 0.5411 GB, free: 2.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1471, allocations: 0 / 0.5411 GB, free: 2.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.1471, allocations: 0 / 0.5411 GB, free: 2.93 MB / 398.1 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.0004055/0.1476, allocations: 357 kB / 0.5414 GB, free: 2.523 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.1476, allocations: 8.031 kB / 0.5414 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.738e-05/0.1476, allocations: 0.9375 kB / 0.5414 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001415/0.1478, allocations: 164.4 kB / 0.5416 GB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.1478, allocations: 384 / 0.5416 GB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.1478, allocations: 4.375 kB / 0.5416 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.403e-05/0.1479, allocations: 42.19 kB / 0.5416 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.1479, allocations: 192 / 0.5416 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.1479, allocations: 3.938 kB / 0.5416 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1479, allocations: 0 / 0.5416 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.421e-05/0.1479, allocations: 0 / 0.5416 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001595/0.1481, allocations: 145.7 kB / 0.5418 GB, free: 2.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.664e-05/0.1482, allocations: 18.52 kB / 0.5418 GB, free: 2.043 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.214e-05/0.1482, allocations: 20.94 kB / 0.5418 GB, free: 2.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.821e-06/0.1482, allocations: 0 / 0.5418 GB, free: 2.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.121e-05/0.1482, allocations: 60.2 kB / 0.5419 GB, free: 1.945 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1483, allocations: 0 / 0.5419 GB, free: 1.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001883/0.1484, allocations: 63.34 kB / 0.5419 GB, free: 1.871 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.585e-05/0.1485, allocations: 77.11 kB / 0.542 GB, free: 1.777 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.047e-05/0.1486, allocations: 106 kB / 0.5421 GB, free: 1.664 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.1486, allocations: 25.7 kB / 0.5421 GB, free: 1.633 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.562e-05/0.1487, allocations: 80.14 kB / 0.5422 GB, free: 1.551 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.372e-05/0.1487, allocations: 0 / 0.5422 GB, free: 1.551 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.918e-05/0.1487, allocations: 13.72 kB / 0.5422 GB, free: 1.531 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1489, allocations: 310.8 kB / 0.5425 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.021e-05/0.1489, allocations: 0 / 0.5425 GB, free: 1.219 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.364e-06/0.1489, allocations: 3.938 kB / 0.5425 GB, free: 1.215 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.607e-05/0.149, allocations: 72.44 kB / 0.5426 GB, free: 1.129 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.149, allocations: 3.938 kB / 0.5426 GB, free: 1.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.254e-05/0.149, allocations: 59.41 kB / 0.5426 GB, free: 1.055 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.659e-05/0.1491, allocations: 33.7 kB / 0.5427 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.1491, allocations: 3.938 kB / 0.5427 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1491, allocations: 0 / 0.5427 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.968e-06/0.1491, allocations: 4 kB / 0.5427 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.1491, allocations: 0 / 0.5427 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.382e-05/0.1492, allocations: 0 / 0.5427 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.1492, allocations: 0 / 0.5427 GB, free: 1.008 MB / 398.1 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 9.41e-05/0.1493, allocations: 143.6 kB / 0.5428 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.177e-06/0.1493, allocations: 4 kB / 0.5428 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.097e-05/0.1493, allocations: 7.062 kB / 0.5428 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1493, allocations: 7.938 kB / 0.5428 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.1493, allocations: 0 / 0.5428 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1493, allocations: 3.984 kB / 0.5428 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.1494, allocations: 145.7 kB / 0.543 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.1495, allocations: 0 / 0.543 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1495, allocations: 0 / 0.543 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.1495, allocations: 8 kB / 0.543 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.1495, allocations: 3.938 kB / 0.543 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.1495, allocations: 3.938 kB / 0.543 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1495, allocations: 0 / 0.543 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001058/0.1496, allocations: 90.83 kB / 0.5431 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.494e-05/0.1497, allocations: 81.06 kB / 0.5432 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.1497, allocations: 3.938 kB / 0.5432 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-06/0.1497, allocations: 0 / 0.5432 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.396e-05/0.1497, allocations: 8.031 kB / 0.5432 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.1497, allocations: 0 / 0.5432 GB, free: 412 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.98e-05/0.1498, allocations: 75.28 kB / 0.5432 GB, free: 336 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1498, allocations: 0 / 0.5432 GB, free: 336 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002266/0.15, allocations: 27.92 kB / 0.5433 GB, free: 308 kB / 398.1 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.0004543/0.1504, allocations: 192.5 kB / 0.5435 GB, free: 128 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001241/0.1506, allocations: 63.39 kB / 0.5435 GB, free: 52 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1506, allocations: 0 / 0.5435 GB, free: 52 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.89e-05/0.1507, allocations: 55.47 kB / 0.5436 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000132/0.1508, allocations: 8 kB / 0.5436 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001821/0.151, allocations: 77.06 kB / 0.5436 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.1513, allocations: 0.6729 MB / 0.5443 GB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.72e-06/0.1513, allocations: 0 / 0.5443 GB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.143e-05/0.1513, allocations: 7.438 kB / 0.5443 GB, free: 15.17 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1513, allocations: 4 kB / 0.5443 GB, free: 15.16 MB / 414.1 MB Notification: Performance of Templates: time 0.003274/0.1546, allocations: 0.6466 MB / 0.5449 GB, free: 14.52 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.934721850790083]