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.001349/0.001349, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001472/0.001472, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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.056/1.056, allocations: 177 MB / 204.8 MB, free: 5.617 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.3196/0.3196, allocations: 34.86 MB / 296.3 MB, free: 0.5391 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.674e-06/1.674e-06, allocations: 0 / 378.7 MB, free: 2.141 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.734e-05/2.902e-05, allocations: 2.312 kB / 378.7 MB, free: 2.137 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0018/0.001829, allocations: 0.4906 MB / 379.2 MB, free: 1.645 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.003166, allocations: 0.9 MB / 380.1 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.993e-05/0.003196, allocations: 4 kB / 380.1 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.282e-05/0.003219, allocations: 3.938 kB / 380.1 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002595/0.003478, allocations: 3.938 kB / 380.1 MB, free: 0.7305 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.000714/0.004192, allocations: 64.61 kB / 380.2 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.135e-05/0.004253, allocations: 8 kB / 380.2 MB, free: 0.668 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.443e-05/0.004288, allocations: 3.984 kB / 380.2 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.517e-05/0.004323, allocations: 4 kB / 380.2 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.398e-05/0.004377, allocations: 8 kB / 380.2 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.004388, allocations: 3.938 kB / 380.2 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00015/0.004538, allocations: 51.94 kB / 380.3 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.037e-05/0.004549, allocations: 0 / 380.3 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.364e-05/0.004572, allocations: 3.938 kB / 380.3 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.004778, allocations: 59.86 kB / 380.3 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.00478, allocations: 0 / 380.3 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.004781, allocations: 0 / 380.3 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.888e-06/0.004785, allocations: 4 kB / 380.3 MB, free: 0.5312 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.0003488/0.005134, allocations: 381.9 kB / 380.7 MB, free: 116 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.00518, allocations: 12.03 kB / 380.7 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.058e-05/0.005221, allocations: 0.9375 kB / 380.7 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.005329, allocations: 108.6 kB / 380.8 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.005344, allocations: 384 / 380.8 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.005359, allocations: 4.375 kB / 380.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.005467, allocations: 55.95 kB / 380.9 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.005478, allocations: 192 / 380.9 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.00549, allocations: 4.375 kB / 380.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.005501, allocations: 4.375 kB / 380.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.599e-05/0.005537, allocations: 33.62 kB / 380.9 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001257/0.005663, allocations: 113 kB / 381 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.896e-05/0.005732, allocations: 56.7 kB / 381.1 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.151e-05/0.005763, allocations: 41.48 kB / 381.1 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.982e-06/0.005769, allocations: 0 / 381.1 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.775e-05/0.005817, allocations: 67.02 kB / 381.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.283e-06/0.005818, allocations: 0 / 381.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002207/0.006039, allocations: 126.8 kB / 381.3 MB, free: 15.35 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.006084, allocations: 77.23 kB / 381.4 MB, free: 15.26 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.275e-05/0.006177, allocations: 165.8 kB / 381.6 MB, free: 15.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.006188, allocations: 25.7 kB / 381.6 MB, free: 15.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.964e-05/0.006258, allocations: 126.9 kB / 381.7 MB, free: 14.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.006275, allocations: 4 kB / 381.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.228e-05/0.006308, allocations: 19.38 kB / 381.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.006448, allocations: 496.1 kB / 382.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.536e-05/0.006474, allocations: 25.7 kB / 382.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.726e-05/0.006491, allocations: 25.7 kB / 382.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.912e-05/0.00654, allocations: 67.27 kB / 382.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.006542, allocations: 4 kB / 382.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.746e-05/0.00664, allocations: 89.11 kB / 382.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/0.006675, allocations: 33.7 kB / 382.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.00668, allocations: 0 / 382.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.006698, allocations: 3.938 kB / 382.5 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.701e-06/0.006704, allocations: 3.984 kB / 382.5 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.00671, allocations: 0 / 382.5 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.006727, allocations: 3.938 kB / 382.5 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.006734, allocations: 0 / 382.5 MB, free: 14.09 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 0.0001608/0.006894, allocations: 186.3 kB / 382.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.572e-05/0.00691, allocations: 4 kB / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.39e-05/0.006924, allocations: 3 kB / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.006926, allocations: 0 / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.00693, allocations: 0 / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.006935, allocations: 3.938 kB / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.617e-05/0.007011, allocations: 116.6 kB / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.007013, allocations: 0 / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.41e-07/0.007014, allocations: 0 / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.007017, allocations: 0 / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.007024, allocations: 0 / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.007029, allocations: 4 kB / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.007031, allocations: 4 kB / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001429/0.007174, allocations: 135.7 kB / 382.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.464e-05/0.007189, allocations: 7.938 kB / 382.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.007208, allocations: 0 / 382.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.135e-05/0.007219, allocations: 0 / 382.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.736e-05/0.007237, allocations: 4 kB / 382.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.007241, allocations: 0 / 382.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.15e-05/0.007283, allocations: 119.2 kB / 383.1 MB, free: 13.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.007283, allocations: 0 / 383.1 MB, free: 13.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002521/0.007535, allocations: 31.98 kB / 383.1 MB, free: 13.39 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.0004914/0.008027, allocations: 191.7 kB / 383.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001417/0.008168, allocations: 126.5 kB / 383.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.00817, allocations: 0 / 383.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.742e-05/0.008218, allocations: 88.8 kB / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001542/0.008372, allocations: 3.984 kB / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000231/0.008603, allocations: 131 kB / 383.6 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.633e-05/0.008639, allocations: 51.36 kB / 383.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.552e-06/0.008646, allocations: 0 / 383.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.806e-05/0.008664, allocations: 12.62 kB / 383.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of SimCode: time 7.51e-07/0.008665, allocations: 0 / 383.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of Templates: time 0.003659/0.01232, allocations: 0.6787 MB / 384.4 MB, free: 12.04 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.3328030719421804]