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.0009129/0.0009129, allocations: 84.73 kB / 21.5 MB, free: 2.992 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.0009674/0.0009674, allocations: 162.7 kB / 24.91 MB, free: 9.211 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.9878/0.9878, allocations: 177 MB / 205.2 MB, free: 5.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.2557/0.2557, allocations: 34.86 MB / 296.6 MB, free: 0.5234 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.533e-06/1.533e-06, allocations: 0 / 325.9 MB, free: 7.152 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.768e-05/1.922e-05, allocations: 6.312 kB / 325.9 MB, free: 7.145 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001131/0.00115, allocations: 0.5392 MB / 326.5 MB, free: 6.609 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008784/0.002028, allocations: 0.9078 MB / 327.4 MB, free: 5.699 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.068e-05/0.002049, allocations: 0 / 327.4 MB, free: 5.699 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.161e-05/0.002061, allocations: 0 / 327.4 MB, free: 5.699 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.002208, allocations: 7.938 kB / 327.4 MB, free: 5.691 MB / 298.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.0004082/0.002616, allocations: 62.08 kB / 327.4 MB, free: 5.633 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.533e-05/0.002662, allocations: 7.984 kB / 327.5 MB, free: 5.625 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.249e-05/0.002694, allocations: 8.625 kB / 327.5 MB, free: 5.617 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.7e-05/0.002721, allocations: 4 kB / 327.5 MB, free: 5.613 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.011e-05/0.002751, allocations: 0 / 327.5 MB, free: 5.613 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.005e-06/0.002759, allocations: 0 / 327.5 MB, free: 5.613 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.002867, allocations: 59.94 kB / 327.5 MB, free: 5.555 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.723e-06/0.002874, allocations: 0 / 327.5 MB, free: 5.555 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.242e-05/0.002886, allocations: 0 / 327.5 MB, free: 5.555 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.00301, allocations: 63.8 kB / 327.6 MB, free: 5.492 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.973e-06/0.003012, allocations: 0 / 327.6 MB, free: 5.492 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.003013, allocations: 0 / 327.6 MB, free: 5.492 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.146e-06/0.003016, allocations: 0 / 327.6 MB, free: 5.492 MB / 298.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.0001998/0.003216, allocations: 258.9 kB / 327.8 MB, free: 5.207 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.746e-05/0.003243, allocations: 16.03 kB / 327.9 MB, free: 5.191 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.036e-05/0.003263, allocations: 0.9375 kB / 327.9 MB, free: 5.191 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.487e-05/0.003338, allocations: 101.8 kB / 328 MB, free: 5.066 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.514e-06/0.003346, allocations: 384 / 328 MB, free: 5.066 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.14e-06/0.003351, allocations: 4.375 kB / 328 MB, free: 5.062 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.043e-05/0.003401, allocations: 55.95 kB / 328 MB, free: 4.996 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.608e-06/0.003406, allocations: 192 / 328 MB, free: 4.996 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.66e-06/0.003412, allocations: 4.375 kB / 328 MB, free: 4.992 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-06/0.003415, allocations: 384 / 328 MB, free: 4.992 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.41e-05/0.003429, allocations: 33.64 kB / 328.1 MB, free: 4.953 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.775e-05/0.003487, allocations: 57.73 kB / 328.1 MB, free: 4.883 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.74e-05/0.003524, allocations: 48.22 kB / 328.2 MB, free: 4.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.573e-05/0.00354, allocations: 38.66 kB / 328.2 MB, free: 4.773 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-06/0.003543, allocations: 0 / 328.2 MB, free: 4.773 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.003569, allocations: 56.27 kB / 328.3 MB, free: 4.703 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 7.32e-07/0.00357, allocations: 0 / 328.3 MB, free: 4.703 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001193/0.003689, allocations: 118.7 kB / 328.4 MB, free: 4.562 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/0.003715, allocations: 77.11 kB / 328.4 MB, free: 4.469 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.715e-05/0.003762, allocations: 110.8 kB / 328.6 MB, free: 4.348 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.587e-06/0.003771, allocations: 25.7 kB / 328.6 MB, free: 4.316 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.684e-05/0.003788, allocations: 80.14 kB / 328.7 MB, free: 4.234 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.177e-05/0.0038, allocations: 4.297 kB / 328.7 MB, free: 4.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.928e-05/0.003819, allocations: 13.72 kB / 328.7 MB, free: 4.211 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.321e-05/0.003882, allocations: 318.8 kB / 329 MB, free: 3.891 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.081e-05/0.003893, allocations: 25.7 kB / 329 MB, free: 3.859 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.153e-05/0.003904, allocations: 33.64 kB / 329 MB, free: 3.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.026e-05/0.003935, allocations: 64.25 kB / 329.1 MB, free: 3.742 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.003936, allocations: 0 / 329.1 MB, free: 3.742 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001086/0.004045, allocations: 89.23 kB / 329.2 MB, free: 3.637 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.004066, allocations: 31.58 kB / 329.2 MB, free: 3.602 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.00407, allocations: 0 / 329.2 MB, free: 3.602 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.237e-06/0.004079, allocations: 4 kB / 329.2 MB, free: 3.598 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.00408, allocations: 0 / 329.2 MB, free: 3.598 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.076e-06/0.004083, allocations: 3.984 kB / 329.2 MB, free: 3.594 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.776e-06/0.004092, allocations: 0 / 329.2 MB, free: 3.594 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-06/0.004096, allocations: 0 / 329.2 MB, free: 3.594 MB / 298.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.133e-05/0.004147, allocations: 139.5 kB / 329.4 MB, free: 3.441 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.997e-06/0.004151, allocations: 0 / 329.4 MB, free: 3.441 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.127e-06/0.00416, allocations: 15.02 kB / 329.4 MB, free: 3.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.004161, allocations: 4 kB / 329.4 MB, free: 3.426 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-06/0.004162, allocations: 0 / 329.4 MB, free: 3.426 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.004164, allocations: 0 / 329.4 MB, free: 3.426 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.082e-05/0.004205, allocations: 66.58 kB / 329.4 MB, free: 3.344 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-07/0.004206, allocations: 0 / 329.4 MB, free: 3.344 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.8e-07/0.004206, allocations: 0 / 329.4 MB, free: 3.344 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-06/0.004207, allocations: 4 kB / 329.5 MB, free: 3.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.016e-06/0.00421, allocations: 0 / 329.5 MB, free: 3.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.21e-07/0.00421, allocations: 0 / 329.5 MB, free: 3.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.004211, allocations: 0 / 329.5 MB, free: 3.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.755e-05/0.004269, allocations: 128.4 kB / 329.6 MB, free: 3.184 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.029e-06/0.004274, allocations: 4 kB / 329.6 MB, free: 3.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.786e-06/0.004282, allocations: 0 / 329.6 MB, free: 3.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.037e-06/0.004286, allocations: 0 / 329.6 MB, free: 3.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.394e-06/0.004294, allocations: 0 / 329.6 MB, free: 3.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.004296, allocations: 4 kB / 329.6 MB, free: 3.176 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.741e-06/0.004302, allocations: 4.859 kB / 329.6 MB, free: 3.168 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004302, allocations: 0 / 329.6 MB, free: 3.168 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001096/0.004412, allocations: 19.92 kB / 329.6 MB, free: 3.148 MB / 298.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.0003283/0.00474, allocations: 202.1 kB / 329.8 MB, free: 3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.148e-05/0.004812, allocations: 123.7 kB / 329.9 MB, free: 2.852 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.004813, allocations: 0 / 329.9 MB, free: 2.852 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.582e-05/0.004839, allocations: 89.91 kB / 330 MB, free: 2.742 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.254e-05/0.004892, allocations: 10.53 kB / 330 MB, free: 2.734 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001218/0.005013, allocations: 114.3 kB / 330.1 MB, free: 2.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.48e-05/0.005038, allocations: 51.36 kB / 330.2 MB, free: 2.52 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.508e-06/0.005043, allocations: 0 / 330.2 MB, free: 2.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.903e-05/0.005072, allocations: 55.36 kB / 330.2 MB, free: 2.465 MB / 298.7 MB Notification: Performance of SimCode: time 5.61e-07/0.005072, allocations: 0 / 330.2 MB, free: 2.465 MB / 298.7 MB Notification: Performance of Templates: time 0.002163/0.007235, allocations: 0.7803 MB / 331 MB, free: 1.695 MB / 298.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 -s gbode -gbm=radauIIA3 -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: 2.881822490133345]