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.001249/0.001248, allocations: 107.1 kB / 18.39 MB, free: 4.629 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.001101/0.001101, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.392/1.392, allocations: 222.9 MB / 243 MB, free: 15.09 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.2184/0.2184, allocations: 44.18 MB / 337.4 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002159/0.002159, allocations: 65.23 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1314, allocations: 60.82 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002489/0.134, allocations: 490.6 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.1353, allocations: 0.7761 MB / 471.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.746e-05/0.1353, allocations: 0 / 471.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.318e-05/0.1353, allocations: 0 / 471.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002091/0.1356, allocations: 23.92 kB / 472 MB, free: 12.4 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.0008429/0.1364, allocations: 49.78 kB / 472 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.091e-05/0.1365, allocations: 4 kB / 472 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.009e-05/0.1366, allocations: 0 / 472 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.978e-05/0.1366, allocations: 7.938 kB / 472 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001072/0.1367, allocations: 0 / 472 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.116e-05/0.1367, allocations: 0 / 472 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001958/0.1369, allocations: 63.94 kB / 472.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.477e-05/0.137, allocations: 3.984 kB / 472.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.592e-05/0.137, allocations: 0 / 472.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001764/0.1372, allocations: 51.88 kB / 472.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.1372, allocations: 4 kB / 472.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1372, allocations: 0 / 472.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.1372, allocations: 0 / 472.1 MB, free: 12.22 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.0004312/0.1377, allocations: 353.3 kB / 472.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.1377, allocations: 11.97 kB / 472.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.123e-05/0.1377, allocations: 4.938 kB / 472.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.1379, allocations: 160.4 kB / 472.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.1379, allocations: 384 / 472.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.1379, allocations: 4.359 kB / 472.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.86e-05/0.138, allocations: 38.25 kB / 472.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.138, allocations: 192 / 472.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.138, allocations: 3.938 kB / 472.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.138, allocations: 0 / 472.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.526e-05/0.138, allocations: 0 / 472.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001427/0.1382, allocations: 149.7 kB / 472.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.922e-05/0.1382, allocations: 18.52 kB / 472.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.56e-05/0.1383, allocations: 12.94 kB / 472.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.853e-06/0.1383, allocations: 4 kB / 472.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.938e-05/0.1383, allocations: 56.27 kB / 472.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.1383, allocations: 0 / 472.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001592/0.1385, allocations: 67.34 kB / 473 MB, free: 11.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.1386, allocations: 84.98 kB / 473.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.023e-05/0.1386, allocations: 97.84 kB / 473.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.1387, allocations: 25.95 kB / 473.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.477e-05/0.1387, allocations: 84.14 kB / 473.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.576e-05/0.1387, allocations: 3.906 kB / 473.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.317e-05/0.1388, allocations: 17.72 kB / 473.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.882e-05/0.1389, allocations: 314.8 kB / 473.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.558e-06/0.1389, allocations: 0 / 473.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.246e-06/0.1389, allocations: 4 kB / 473.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.336e-05/0.1389, allocations: 60.25 kB / 473.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.139, allocations: 4.062 kB / 473.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.791e-05/0.139, allocations: 63.41 kB / 473.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.1391, allocations: 37.64 kB / 473.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1391, allocations: 7.938 kB / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.1391, allocations: 0 / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.072e-06/0.1391, allocations: 0 / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1391, allocations: 0 / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.461e-05/0.1391, allocations: 0 / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.1392, allocations: 7.984 kB / 473.8 MB, free: 10.28 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 9.812e-05/0.1393, allocations: 135.6 kB / 473.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.686e-06/0.1393, allocations: 0 / 473.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.509e-05/0.1393, allocations: 15.02 kB / 474 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1393, allocations: 0 / 474 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.1393, allocations: 0 / 474 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.1393, allocations: 0 / 474 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.812e-05/0.1394, allocations: 145.7 kB / 474.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.1394, allocations: 0 / 474.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.61e-07/0.1394, allocations: 0 / 474.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.1394, allocations: 4 kB / 474.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.1394, allocations: 11.94 kB / 474.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.1395, allocations: 0 / 474.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1395, allocations: 0 / 474.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001077/0.1396, allocations: 94.77 kB / 474.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.059e-05/0.1396, allocations: 77.11 kB / 474.3 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.422e-05/0.1396, allocations: 3.938 kB / 474.3 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.106e-05/0.1396, allocations: 4 kB / 474.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.3e-05/0.1397, allocations: 0 / 474.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.1397, allocations: 4.031 kB / 474.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.875e-05/0.1397, allocations: 75.28 kB / 474.4 MB, free: 9.613 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1397, allocations: 0 / 474.4 MB, free: 9.613 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002278/0.14, allocations: 23.98 kB / 474.4 MB, free: 9.59 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.0003736/0.1403, allocations: 201.1 kB / 474.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.698e-05/0.1405, allocations: 67.39 kB / 474.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1405, allocations: 0 / 474.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.254e-05/0.1405, allocations: 55.41 kB / 474.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/0.1406, allocations: 4.125 kB / 474.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001766/0.1408, allocations: 84.88 kB / 474.8 MB, free: 9.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002534/0.1411, allocations: 0.6768 MB / 475.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.422e-06/0.1411, allocations: 0 / 475.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.287e-05/0.1411, allocations: 7.438 kB / 475.5 MB, free: 8.449 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1411, allocations: 0 / 475.5 MB, free: 8.449 MB / 350.1 MB Notification: Performance of Templates: time 0.002923/0.144, allocations: 0.6411 MB / 476.1 MB, free: 7.809 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 -s cvode -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