Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 106.1 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001886/0.001886, allocations: 195.3 kB / 19.23 MB, free: 3.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 242.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2106/0.2106, allocations: 44.18 MB / 337.3 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 60.19 kB / 409.1 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1328, allocations: 60.83 MB / 469.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001965/0.1348, allocations: 487.7 kB / 470.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.1361, allocations: 0.7761 MB / 471.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.85e-05/0.1362, allocations: 3.938 kB / 471.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.25e-05/0.1362, allocations: 0 / 471.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001744/0.1364, allocations: 7.938 kB / 471.2 MB, free: 13.13 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363: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.0006173/0.137, allocations: 54.55 kB / 471.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.612e-05/0.1371, allocations: 11.77 kB / 471.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.329e-05/0.1371, allocations: 3.984 kB / 471.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.582e-05/0.1371, allocations: 0 / 471.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.283e-05/0.1372, allocations: 4 kB / 471.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.195e-06/0.1372, allocations: 4 kB / 471.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.1374, allocations: 51.95 kB / 471.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.616e-06/0.1374, allocations: 0 / 471.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.368e-05/0.1374, allocations: 4 kB / 471.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.1375, allocations: 47.88 kB / 471.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1376, allocations: 0 / 471.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1376, allocations: 0 / 471.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.415e-06/0.1376, allocations: 4 kB / 471.4 MB, free: 12.96 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.0003407/0.1379, allocations: 345.3 kB / 471.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.138, allocations: 16.03 kB / 471.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.294e-05/0.138, allocations: 0.9375 kB / 471.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.1381, allocations: 168.4 kB / 471.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.1381, allocations: 4.375 kB / 471.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.223e-05/0.1382, allocations: 8.312 kB / 471.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.649e-05/0.1383, allocations: 26.27 kB / 471.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-06/0.1383, allocations: 192 / 471.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.1383, allocations: 3.938 kB / 471.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.1383, allocations: 0 / 471.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.605e-05/0.1383, allocations: 4 kB / 471.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001326/0.1385, allocations: 149.7 kB / 472.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.05e-05/0.1385, allocations: 18.61 kB / 472.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.665e-05/0.1386, allocations: 12.8 kB / 472.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.296e-06/0.1386, allocations: 0 / 472.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.1386, allocations: 56.27 kB / 472.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.1386, allocations: 4.062 kB / 472.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001821/0.1388, allocations: 71.33 kB / 472.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.1389, allocations: 77.11 kB / 472.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.954e-05/0.139, allocations: 93.86 kB / 472.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.099e-05/0.139, allocations: 29.64 kB / 472.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.54e-05/0.139, allocations: 80.14 kB / 472.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.139, allocations: 7.938 kB / 472.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.639e-05/0.1391, allocations: 9.719 kB / 472.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1392, allocations: 319.1 kB / 472.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.279e-05/0.1392, allocations: 7.938 kB / 472.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.823e-06/0.1392, allocations: 0 / 472.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.799e-05/0.1393, allocations: 64.27 kB / 472.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1393, allocations: 0 / 472.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.002e-05/0.1394, allocations: 59.41 kB / 473 MB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/0.1394, allocations: 36.03 kB / 473 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1394, allocations: 7.922 kB / 473 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.1394, allocations: 4.094 kB / 473 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.1394, allocations: 0 / 473 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.1394, allocations: 4 kB / 473 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.484e-05/0.1395, allocations: 7.906 kB / 473 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.1395, allocations: 0 / 473 MB, free: 11.02 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.041e-05/0.1396, allocations: 143.5 kB / 473.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.656e-06/0.1396, allocations: 0 / 473.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.438e-05/0.1396, allocations: 11.02 kB / 473.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.1396, allocations: 0 / 473.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.1396, allocations: 7.984 kB / 473.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-06/0.1396, allocations: 0 / 473.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.515e-05/0.1397, allocations: 146 kB / 473.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1397, allocations: 0 / 473.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.1397, allocations: 0 / 473.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-06/0.1398, allocations: 0 / 473.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.1398, allocations: 3.938 kB / 473.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1398, allocations: 0 / 473.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1398, allocations: 0 / 473.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001088/0.1399, allocations: 98.81 kB / 473.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.202e-05/0.1399, allocations: 81.11 kB / 473.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.14, allocations: 7.922 kB / 473.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.688e-06/0.14, allocations: 0 / 473.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.329e-05/0.14, allocations: 0 / 473.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.14, allocations: 0 / 473.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.606e-05/0.14, allocations: 87.16 kB / 473.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.14, allocations: 0 / 473.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002346/0.1403, allocations: 20 kB / 473.6 MB, free: 10.32 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.0003744/0.1407, allocations: 193.3 kB / 473.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.488e-05/0.1408, allocations: 55.41 kB / 473.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1408, allocations: 0 / 473.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.964e-05/0.1408, allocations: 63.34 kB / 473.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001351/0.141, allocations: 4 kB / 473.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002027/0.1412, allocations: 110.6 kB / 474 MB, free: 9.867 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.1414, allocations: 0.669 MB / 474.7 MB, free: 9.172 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.368e-05/0.1415, allocations: 11.56 kB / 474.7 MB, free: 9.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1415, allocations: 0 / 474.7 MB, free: 9.16 MB / 350.1 MB Notification: Performance of Templates: time 0.002433/0.1439, allocations: 0.8221 MB / 475.5 MB, free: 8.344 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches