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.0009249/0.0009249, allocations: 88.73 kB / 21.5 MB, free: 2.988 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.0009585/0.0009585, allocations: 165.1 kB / 24.91 MB, free: 8.715 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.9402/0.9402, allocations: 177 MB / 205.2 MB, free: 5.016 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.2545/0.2545, allocations: 34.85 MB / 296.6 MB, free: 472 kB / 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.633e-06/1.633e-06, allocations: 0 / 325.9 MB, free: 7.227 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.172e-05/1.336e-05, allocations: 2.859 kB / 325.9 MB, free: 7.223 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0009624/0.0009757, allocations: 0.4917 MB / 326.4 MB, free: 6.734 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008091/0.001785, allocations: 0.9078 MB / 327.3 MB, free: 5.824 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.23e-05/0.001807, allocations: 4 kB / 327.3 MB, free: 5.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.22e-05/0.001819, allocations: 0 / 327.3 MB, free: 5.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.00199, allocations: 15.92 kB / 327.3 MB, free: 5.805 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.0004007/0.002391, allocations: 65.78 kB / 327.4 MB, free: 5.746 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.18e-05/0.002433, allocations: 0 / 327.4 MB, free: 5.746 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.953e-05/0.002462, allocations: 4.562 kB / 327.4 MB, free: 5.742 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.666e-05/0.002489, allocations: 4 kB / 327.4 MB, free: 5.738 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.132e-05/0.00252, allocations: 0 / 327.4 MB, free: 5.738 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.366e-06/0.002528, allocations: 0 / 327.4 MB, free: 5.738 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.982e-05/0.002628, allocations: 63.86 kB / 327.4 MB, free: 5.676 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.905e-06/0.002636, allocations: 4 kB / 327.4 MB, free: 5.672 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.258e-05/0.002649, allocations: 4 kB / 327.4 MB, free: 5.668 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000114/0.002763, allocations: 55.86 kB / 327.5 MB, free: 5.613 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.453e-06/0.002764, allocations: 0 / 327.5 MB, free: 5.613 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.002765, allocations: 0 / 327.5 MB, free: 5.613 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.176e-06/0.002768, allocations: 0 / 327.5 MB, free: 5.613 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.000218/0.002986, allocations: 258.9 kB / 327.7 MB, free: 5.328 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.732e-05/0.003013, allocations: 8.031 kB / 327.8 MB, free: 5.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.073e-05/0.003034, allocations: 0.9375 kB / 327.8 MB, free: 5.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.107e-05/0.003095, allocations: 105.8 kB / 327.9 MB, free: 5.191 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.915e-06/0.003103, allocations: 384 / 327.9 MB, free: 5.191 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-06/0.003112, allocations: 12.31 kB / 327.9 MB, free: 5.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.52e-05/0.003167, allocations: 59.95 kB / 327.9 MB, free: 5.109 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.669e-06/0.003172, allocations: 192 / 327.9 MB, free: 5.109 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-06/0.003178, allocations: 4.359 kB / 327.9 MB, free: 5.105 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.003183, allocations: 384 / 327.9 MB, free: 5.105 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.473e-05/0.003197, allocations: 33.64 kB / 328 MB, free: 5.066 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.192e-05/0.003249, allocations: 53.73 kB / 328 MB, free: 5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.461e-05/0.003284, allocations: 44.31 kB / 328.1 MB, free: 4.941 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.54e-05/0.003299, allocations: 38.5 kB / 328.1 MB, free: 4.895 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.857e-06/0.003303, allocations: 4 kB / 328.1 MB, free: 4.891 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.003331, allocations: 64.31 kB / 328.2 MB, free: 4.812 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 4.81e-07/0.003331, allocations: 0 / 328.2 MB, free: 4.812 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.543e-05/0.003427, allocations: 114.8 kB / 328.3 MB, free: 4.676 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/0.003458, allocations: 81.11 kB / 328.4 MB, free: 4.578 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.041e-05/0.003519, allocations: 94.72 kB / 328.5 MB, free: 4.473 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.476e-06/0.003527, allocations: 25.7 kB / 328.5 MB, free: 4.441 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.985e-05/0.003567, allocations: 84.12 kB / 328.6 MB, free: 4.355 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.285e-05/0.00358, allocations: 8.297 kB / 328.6 MB, free: 4.348 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.825e-05/0.003598, allocations: 9.969 kB / 328.6 MB, free: 4.332 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.871e-05/0.003697, allocations: 326.8 kB / 328.9 MB, free: 4.004 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.065e-05/0.003707, allocations: 29.64 kB / 328.9 MB, free: 3.969 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.009e-05/0.003718, allocations: 25.7 kB / 329 MB, free: 3.938 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.036e-05/0.003748, allocations: 64.25 kB / 329 MB, free: 3.859 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.003749, allocations: 0 / 329 MB, free: 3.859 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.955e-05/0.003789, allocations: 81.11 kB / 329.1 MB, free: 3.762 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.003811, allocations: 33.7 kB / 329.1 MB, free: 3.723 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.003815, allocations: 0 / 329.1 MB, free: 3.723 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.486e-06/0.003824, allocations: 0 / 329.1 MB, free: 3.723 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.615e-06/0.003826, allocations: 4.094 kB / 329.1 MB, free: 3.719 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.204e-06/0.003828, allocations: 3.938 kB / 329.1 MB, free: 3.715 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.128e-05/0.00384, allocations: 7.984 kB / 329.1 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.409e-06/0.003844, allocations: 3.938 kB / 329.1 MB, free: 3.703 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 4.987e-05/0.003894, allocations: 139.5 kB / 329.3 MB, free: 3.551 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.668e-06/0.003899, allocations: 4 kB / 329.3 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.246e-06/0.003907, allocations: 3 kB / 329.3 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.003908, allocations: 0 / 329.3 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.00391, allocations: 0 / 329.3 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.003912, allocations: 0 / 329.3 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.233e-05/0.003954, allocations: 70.58 kB / 329.4 MB, free: 3.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-07/0.003955, allocations: 4 kB / 329.4 MB, free: 3.457 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.5e-07/0.003955, allocations: 0 / 329.4 MB, free: 3.457 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.41e-07/0.003956, allocations: 0 / 329.4 MB, free: 3.457 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-06/0.00396, allocations: 4 kB / 329.4 MB, free: 3.453 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.2e-07/0.00396, allocations: 0 / 329.4 MB, free: 3.453 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.003962, allocations: 4 kB / 329.4 MB, free: 3.449 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.054e-05/0.004023, allocations: 112.5 kB / 329.5 MB, free: 3.309 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.276e-06/0.004026, allocations: 0 / 329.5 MB, free: 3.309 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.748e-06/0.004036, allocations: 4 kB / 329.5 MB, free: 3.305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.168e-06/0.00404, allocations: 3.938 kB / 329.5 MB, free: 3.301 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.793e-06/0.004047, allocations: 4.031 kB / 329.5 MB, free: 3.297 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-06/0.004048, allocations: 0 / 329.5 MB, free: 3.297 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.382e-06/0.004055, allocations: 4.859 kB / 329.5 MB, free: 3.289 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004055, allocations: 0 / 329.5 MB, free: 3.289 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001129/0.004168, allocations: 27.92 kB / 329.5 MB, free: 3.262 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.0003967/0.004564, allocations: 197 kB / 329.7 MB, free: 3.125 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.475e-05/0.004639, allocations: 115.7 kB / 329.8 MB, free: 2.984 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.004641, allocations: 0 / 329.8 MB, free: 2.984 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.386e-05/0.004665, allocations: 85.97 kB / 329.9 MB, free: 2.879 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.882e-05/0.004714, allocations: 19.94 kB / 329.9 MB, free: 2.859 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001221/0.004836, allocations: 122.2 kB / 330.1 MB, free: 2.707 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.363e-05/0.004859, allocations: 55.3 kB / 330.1 MB, free: 2.633 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.218e-06/0.004864, allocations: 0 / 330.1 MB, free: 2.633 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.848e-05/0.004892, allocations: 55.38 kB / 330.2 MB, free: 2.578 MB / 298.7 MB Notification: Performance of SimCode: time 7.12e-07/0.004893, allocations: 0 / 330.2 MB, free: 2.578 MB / 298.7 MB Notification: Performance of Templates: time 0.001894/0.006787, allocations: 0.7621 MB / 330.9 MB, free: 1.82 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 -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.7078486853279173]