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.0006783/0.0006783, allocations: 88.28 kB / 21.44 MB, free: 3.125 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.0038/0.0038, allocations: 152.1 kB / 24.69 MB, free: 8.902 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.9111/0.9111, allocations: 177 MB / 204.9 MB, free: 5.742 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.2432/0.2432, allocations: 34.24 MB / 295.6 MB, free: 0.6719 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 2.004e-06/2.004e-06, allocations: 0 / 443.4 MB, free: 1.074 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.113e-05/3.313e-05, allocations: 2.281 kB / 443.4 MB, free: 1.07 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001153/0.001186, allocations: 496.9 kB / 443.9 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.2256/0.2268, allocations: 0.8636 MB / 444.7 MB, free: 43.77 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.332e-05/0.2269, allocations: 0 / 444.7 MB, free: 43.77 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 3.191e-05/0.2269, allocations: 0 / 444.7 MB, free: 43.77 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004273/0.2273, allocations: 12.22 kB / 444.8 MB, free: 43.77 MB / 410.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.001165/0.2285, allocations: 66.12 kB / 444.8 MB, free: 43.76 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.2286, allocations: 0 / 444.8 MB, free: 43.76 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.653e-05/0.2287, allocations: 5.844 kB / 444.8 MB, free: 43.76 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.408e-05/0.2287, allocations: 4.078 kB / 444.8 MB, free: 43.76 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.108e-05/0.2288, allocations: 2.5 kB / 444.8 MB, free: 43.76 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.2288, allocations: 0 / 444.8 MB, free: 43.76 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.229, allocations: 52.36 kB / 444.9 MB, free: 43.76 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.735e-05/0.2291, allocations: 6.734 kB / 444.9 MB, free: 43.76 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.226e-05/0.2291, allocations: 0 / 444.9 MB, free: 43.76 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00028/0.2294, allocations: 62.77 kB / 444.9 MB, free: 43.76 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.2294, allocations: 0 / 444.9 MB, free: 43.76 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.2294, allocations: 3.938 kB / 444.9 MB, free: 43.75 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.2294, allocations: 0 / 444.9 MB, free: 43.75 MB / 410.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.0003851/0.2298, allocations: 276.4 kB / 445.2 MB, free: 43.46 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.579e-05/0.2298, allocations: 11.66 kB / 445.2 MB, free: 43.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.398e-05/0.2299, allocations: 4.828 kB / 445.2 MB, free: 43.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.935e-05/0.23, allocations: 106.1 kB / 445.3 MB, free: 43.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.23, allocations: 3.875 kB / 445.3 MB, free: 43.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.23, allocations: 6.125 kB / 445.3 MB, free: 43.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001158/0.2301, allocations: 57.25 kB / 445.4 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.2301, allocations: 192 / 445.4 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.2301, allocations: 1.828 kB / 445.4 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.2302, allocations: 384 / 445.4 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.835e-05/0.2302, allocations: 33.2 kB / 445.4 MB, free: 43.24 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001201/0.2303, allocations: 101 kB / 445.5 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.262e-05/0.2304, allocations: 49.25 kB / 445.6 MB, free: 43.06 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.429e-05/0.2304, allocations: 32.38 kB / 445.6 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.091e-05/0.2304, allocations: 0 / 445.6 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/0.2304, allocations: 59.77 kB / 445.7 MB, free: 42.95 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.392e-06/0.2304, allocations: 3.562 kB / 445.7 MB, free: 42.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.000214/0.2307, allocations: 124.1 kB / 445.8 MB, free: 42.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.2307, allocations: 80.8 kB / 445.9 MB, free: 42.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.764e-05/0.2308, allocations: 101.1 kB / 446 MB, free: 42.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.294e-06/0.2308, allocations: 26.2 kB / 446 MB, free: 42.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.057e-05/0.2308, allocations: 80.14 kB / 446.1 MB, free: 42.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.2308, allocations: 3.75 kB / 446.1 MB, free: 42.51 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/0.2308, allocations: 13.06 kB / 446.1 MB, free: 42.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.108e-05/0.2309, allocations: 314.8 kB / 446.4 MB, free: 42.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.484e-05/0.2309, allocations: 26.33 kB / 446.4 MB, free: 42.15 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.294e-05/0.2309, allocations: 31.78 kB / 446.5 MB, free: 42.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.759e-05/0.2309, allocations: 60.83 kB / 446.5 MB, free: 42.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2309, allocations: 0 / 446.5 MB, free: 42.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.381e-05/0.231, allocations: 95.42 kB / 446.6 MB, free: 41.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.903e-05/0.2311, allocations: 32.42 kB / 446.6 MB, free: 41.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.2311, allocations: 0.5 kB / 446.6 MB, free: 41.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.2311, allocations: 1.281 kB / 446.6 MB, free: 41.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.333e-06/0.2311, allocations: 3.828 kB / 446.7 MB, free: 41.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.2311, allocations: 2.906 kB / 446.7 MB, free: 41.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.376e-05/0.2311, allocations: 4.281 kB / 446.7 MB, free: 41.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.2311, allocations: 4 kB / 446.7 MB, free: 41.91 MB / 410.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 6.609e-05/0.2312, allocations: 140.5 kB / 446.8 MB, free: 41.77 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.985e-06/0.2312, allocations: 0 / 446.8 MB, free: 41.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.797e-05/0.2312, allocations: 5.906 kB / 446.8 MB, free: 41.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.2312, allocations: 0 / 446.8 MB, free: 41.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.2312, allocations: 0 / 446.8 MB, free: 41.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2312, allocations: 3.938 kB / 446.8 MB, free: 41.76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.251e-05/0.2313, allocations: 99.83 kB / 446.9 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2313, allocations: 3.188 kB / 446.9 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.2313, allocations: 0 / 446.9 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.2313, allocations: 4 kB / 446.9 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.2313, allocations: 3.469 kB / 446.9 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-07/0.2313, allocations: 0 / 446.9 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2313, allocations: 0 / 446.9 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.374e-05/0.2314, allocations: 125.1 kB / 447 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.812e-06/0.2314, allocations: 0 / 447 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.339e-05/0.2314, allocations: 3 kB / 447 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.297e-06/0.2314, allocations: 0 / 447 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.364e-05/0.2314, allocations: 0.5625 kB / 447 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.2315, allocations: 5.75 kB / 447.1 MB, free: 41.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.021e-05/0.2315, allocations: 83.16 kB / 447.1 MB, free: 41.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2315, allocations: 0 / 447.1 MB, free: 41.43 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002817/0.2318, allocations: 22.56 kB / 447.2 MB, free: 41.42 MB / 410.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.0004591/0.2322, allocations: 200.5 kB / 447.3 MB, free: 41.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001236/0.2323, allocations: 114.2 kB / 447.5 MB, free: 41.19 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2323, allocations: 0.875 kB / 447.5 MB, free: 41.19 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.136e-05/0.2324, allocations: 80.73 kB / 447.5 MB, free: 41.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001662/0.2325, allocations: 9.594 kB / 447.5 MB, free: 41.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002794/0.2328, allocations: 128.9 kB / 447.7 MB, free: 40.95 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.612e-05/0.2329, allocations: 54.42 kB / 447.7 MB, free: 40.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.192e-05/0.2329, allocations: 12.5 kB / 447.7 MB, free: 40.87 MB / 410.7 MB Notification: Performance of SimCode: time 5.01e-07/0.2329, allocations: 3.938 kB / 447.7 MB, free: 40.86 MB / 410.7 MB Notification: Performance of Templates: time 0.002851/0.2357, allocations: 0.8237 MB / 448.6 MB, free: 40.81 MB / 410.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=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.1.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.877953710965812]