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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001313/0.001313, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001324/0.001324, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 247.4 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2127/0.2127, allocations: 46.09 MB / 344.8 MB, free: 11.64 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001766, allocations: 77.38 kB / 418.2 MB, free: 19.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1242, allocations: 62.44 MB / 480.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00205/0.1263, allocations: 490.2 kB / 481.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.1276, allocations: 0.7763 MB / 481.9 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.669e-05/0.1277, allocations: 0 / 481.9 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.474e-05/0.1277, allocations: 0 / 481.9 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001829/0.1279, allocations: 7.984 kB / 481.9 MB, free: 4.059 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:322:3-362: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.0007091/0.1286, allocations: 64.94 kB / 482 MB, free: 4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.277e-05/0.1287, allocations: 0 / 482 MB, free: 4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.345e-05/0.1287, allocations: 8 kB / 482 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.894e-05/0.1288, allocations: 0 / 482 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.517e-05/0.1289, allocations: 4 kB / 482 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.476e-06/0.1289, allocations: 3.938 kB / 482 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001372/0.129, allocations: 47.95 kB / 482.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.748e-06/0.129, allocations: 3.984 kB / 482.1 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.076e-05/0.1291, allocations: 0 / 482.1 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.1292, allocations: 51.88 kB / 482.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1292, allocations: 0 / 482.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1292, allocations: 4 kB / 482.1 MB, free: 3.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.1293, allocations: 3.938 kB / 482.1 MB, free: 3.875 MB / 350.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.0003689/0.1296, allocations: 353.3 kB / 482.5 MB, free: 3.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.1297, allocations: 12.03 kB / 482.5 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.395e-05/0.1297, allocations: 0.9375 kB / 482.5 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.1299, allocations: 164.4 kB / 482.7 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.1299, allocations: 4.375 kB / 482.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.646e-06/0.1299, allocations: 384 / 482.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.426e-05/0.13, allocations: 38.2 kB / 482.7 MB, free: 3.215 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.13, allocations: 192 / 482.7 MB, free: 3.215 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.13, allocations: 3.938 kB / 482.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.13, allocations: 0 / 482.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.869e-05/0.13, allocations: 4 kB / 482.7 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001432/0.1302, allocations: 149.7 kB / 482.8 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.798e-05/0.1302, allocations: 18.61 kB / 482.9 MB, free: 2.984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.596e-05/0.1303, allocations: 4.859 kB / 482.9 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-06/0.1303, allocations: 4 kB / 482.9 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.113e-05/0.1303, allocations: 60.2 kB / 482.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1303, allocations: 0 / 482.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001859/0.1305, allocations: 71.39 kB / 483 MB, free: 2.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/0.1306, allocations: 85.05 kB / 483.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.468e-05/0.1307, allocations: 89.86 kB / 483.2 MB, free: 2.617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.1307, allocations: 25.95 kB / 483.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.598e-05/0.1308, allocations: 84.14 kB / 483.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.678e-05/0.1308, allocations: 0 / 483.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.637e-05/0.1308, allocations: 13.72 kB / 483.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.1309, allocations: 318.8 kB / 483.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.002e-05/0.131, allocations: 0 / 483.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.392e-06/0.131, allocations: 4 kB / 483.6 MB, free: 2.156 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.893e-05/0.131, allocations: 64.2 kB / 483.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.131, allocations: 4.062 kB / 483.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.141e-05/0.1311, allocations: 63.31 kB / 483.7 MB, free: 2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.1312, allocations: 37.69 kB / 483.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1312, allocations: 3.938 kB / 483.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.1312, allocations: 0 / 483.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-07/0.1312, allocations: 0 / 483.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.1312, allocations: 0 / 483.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.965e-05/0.1312, allocations: 4 kB / 483.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.1313, allocations: 3.984 kB / 483.8 MB, free: 1.945 MB / 350.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 8.965e-05/0.1313, allocations: 135.6 kB / 483.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.191e-05/0.1314, allocations: 4 kB / 483.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.271e-05/0.1314, allocations: 7.062 kB / 483.9 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.1314, allocations: 3.984 kB / 483.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1314, allocations: 3.938 kB / 483.9 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.1314, allocations: 0 / 483.9 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000108/0.1315, allocations: 146 kB / 484.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1315, allocations: 3.938 kB / 484.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1315, allocations: 0 / 484.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.1315, allocations: 0 / 484.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.729e-06/0.1316, allocations: 7.938 kB / 484.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1316, allocations: 0 / 484.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1316, allocations: 3.984 kB / 484.1 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.329e-05/0.1317, allocations: 86.84 kB / 484.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.289e-05/0.1317, allocations: 77.11 kB / 484.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.949e-05/0.1317, allocations: 19.92 kB / 484.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.241e-05/0.1318, allocations: 0 / 484.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.163e-05/0.1318, allocations: 3.938 kB / 484.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.1318, allocations: 8.016 kB / 484.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.937e-05/0.1318, allocations: 75.28 kB / 484.4 MB, free: 1.266 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1318, allocations: 4 kB / 484.4 MB, free: 1.262 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002477/0.1321, allocations: 16 kB / 484.4 MB, free: 1.246 MB / 350.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.0004018/0.1325, allocations: 187.1 kB / 484.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.363e-05/0.1326, allocations: 63.34 kB / 484.6 MB, free: 1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1326, allocations: 0 / 484.6 MB, free: 1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.379e-05/0.1326, allocations: 55.41 kB / 484.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001419/0.1328, allocations: 8.062 kB / 484.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002016/0.133, allocations: 110.6 kB / 484.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.1333, allocations: 0.6729 MB / 485.5 MB, free: 88 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.505e-05/0.1333, allocations: 7.438 kB / 485.5 MB, free: 84 kB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1333, allocations: 0 / 485.5 MB, free: 84 kB / 350.1 MB Notification: Performance of Templates: time 0.002525/0.1358, allocations: 0.8191 MB / 486.3 MB, free: 15.26 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches