Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002155/0.002155, allocations: 128.5 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002931/0.002931, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.559/1.559, allocations: 230.5 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2443/0.2443, allocations: 46.92 MB / 357.1 MB, free: 10.41 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002032/0.002032, allocations: 60.09 kB / 0.4914 GB, free: 7.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1298, allocations: 65.99 MB / 0.5558 GB, free: 5.441 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001816/0.1316, allocations: 491.2 kB / 0.5563 GB, free: 4.961 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.1329, allocations: 0.7821 MB / 0.5571 GB, free: 4.176 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.028e-05/0.1329, allocations: 0 / 0.5571 GB, free: 4.176 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.314e-05/0.1329, allocations: 3.938 kB / 0.5571 GB, free: 4.172 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001861/0.1331, allocations: 8 kB / 0.5571 GB, free: 4.164 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.0006466/0.1338, allocations: 64.23 kB / 0.5571 GB, free: 4.105 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.119e-05/0.1338, allocations: 7.984 kB / 0.5571 GB, free: 4.098 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.415e-05/0.1339, allocations: 4 kB / 0.5571 GB, free: 4.094 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.697e-05/0.1339, allocations: 0 / 0.5571 GB, free: 4.094 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.305e-05/0.134, allocations: 4 kB / 0.5571 GB, free: 4.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.376e-06/0.134, allocations: 0 / 0.5571 GB, free: 4.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001625/0.1341, allocations: 63.88 kB / 0.5572 GB, free: 4.027 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.265e-06/0.1342, allocations: 0 / 0.5572 GB, free: 4.027 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.777e-05/0.1342, allocations: 3.938 kB / 0.5572 GB, free: 4.023 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001453/0.1343, allocations: 51.86 kB / 0.5573 GB, free: 3.973 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1343, allocations: 0 / 0.5573 GB, free: 3.973 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1343, allocations: 0 / 0.5573 GB, free: 3.973 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.1343, allocations: 4 kB / 0.5573 GB, free: 3.969 MB / 414.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.0004291/0.1348, allocations: 357.1 kB / 0.5576 GB, free: 3.562 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.1348, allocations: 12.03 kB / 0.5576 GB, free: 3.551 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.7e-05/0.1348, allocations: 0.9375 kB / 0.5576 GB, free: 3.551 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001441/0.135, allocations: 160.4 kB / 0.5578 GB, free: 3.355 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.135, allocations: 384 / 0.5578 GB, free: 3.355 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.135, allocations: 384 / 0.5578 GB, free: 3.355 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.693e-05/0.1351, allocations: 38.23 kB / 0.5578 GB, free: 3.312 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.1351, allocations: 8.125 kB / 0.5578 GB, free: 3.305 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.1351, allocations: 3.938 kB / 0.5578 GB, free: 3.301 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-06/0.1351, allocations: 0 / 0.5578 GB, free: 3.301 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.974e-05/0.1351, allocations: 11.88 kB / 0.5578 GB, free: 3.289 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001634/0.1353, allocations: 145.7 kB / 0.558 GB, free: 3.098 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.129e-05/0.1354, allocations: 14.58 kB / 0.558 GB, free: 3.074 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.747e-05/0.1354, allocations: 12.94 kB / 0.558 GB, free: 3.059 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.915e-06/0.1354, allocations: 0 / 0.558 GB, free: 3.059 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.095e-05/0.1355, allocations: 60.27 kB / 0.558 GB, free: 2.984 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1355, allocations: 0 / 0.558 GB, free: 2.984 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001823/0.1357, allocations: 71.28 kB / 0.5581 GB, free: 2.902 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.591e-05/0.1357, allocations: 81.11 kB / 0.5582 GB, free: 2.805 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.062e-05/0.1358, allocations: 93.84 kB / 0.5583 GB, free: 2.703 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.1358, allocations: 25.7 kB / 0.5583 GB, free: 2.672 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.47e-05/0.1359, allocations: 80.39 kB / 0.5584 GB, free: 2.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.392e-05/0.1359, allocations: 4 kB / 0.5584 GB, free: 2.586 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.309e-05/0.1359, allocations: 13.72 kB / 0.5584 GB, free: 2.566 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1361, allocations: 314.8 kB / 0.5587 GB, free: 2.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.969e-06/0.1361, allocations: 0 / 0.5587 GB, free: 2.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.776e-06/0.1361, allocations: 4 kB / 0.5587 GB, free: 2.246 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.273e-05/0.1362, allocations: 60.25 kB / 0.5588 GB, free: 2.172 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1362, allocations: 4 kB / 0.5588 GB, free: 2.168 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.345e-05/0.1362, allocations: 63.41 kB / 0.5588 GB, free: 2.094 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.503e-05/0.1363, allocations: 33.7 kB / 0.5589 GB, free: 2.055 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.1363, allocations: 3.938 kB / 0.5589 GB, free: 2.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.1363, allocations: 0 / 0.5589 GB, free: 2.051 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.1363, allocations: 0 / 0.5589 GB, free: 2.051 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.1363, allocations: 0 / 0.5589 GB, free: 2.051 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.819e-05/0.1363, allocations: 4 kB / 0.5589 GB, free: 2.047 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.868e-06/0.1363, allocations: 7.984 kB / 0.5589 GB, free: 2.039 MB / 414.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.713e-05/0.1364, allocations: 131.5 kB / 0.559 GB, free: 1.895 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.201e-05/0.1364, allocations: 8.031 kB / 0.559 GB, free: 1.887 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.49e-05/0.1365, allocations: 7.062 kB / 0.559 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.1365, allocations: 0 / 0.559 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1365, allocations: 0 / 0.559 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-06/0.1365, allocations: 0 / 0.559 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001144/0.1366, allocations: 153.6 kB / 0.5592 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1366, allocations: 0 / 0.5592 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1366, allocations: 4 kB / 0.5592 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.1366, allocations: 0 / 0.5592 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.1366, allocations: 3.938 kB / 0.5592 GB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.1366, allocations: 0 / 0.5592 GB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1366, allocations: 4 kB / 0.5592 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001857/0.1368, allocations: 96.42 kB / 0.5593 GB, free: 1.555 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.788e-05/0.1368, allocations: 81.06 kB / 0.5593 GB, free: 1.457 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.1368, allocations: 7.875 kB / 0.5593 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.067e-06/0.1368, allocations: 4 kB / 0.5594 GB, free: 1.445 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.663e-05/0.1369, allocations: 4 kB / 0.5594 GB, free: 1.441 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.1369, allocations: 0 / 0.5594 GB, free: 1.441 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.019e-05/0.1369, allocations: 79.31 kB / 0.5594 GB, free: 1.363 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1369, allocations: 0 / 0.5594 GB, free: 1.363 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002248/0.1371, allocations: 23.92 kB / 0.5595 GB, free: 1.34 MB / 414.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.0004459/0.1376, allocations: 189.5 kB / 0.5596 GB, free: 1.172 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.1377, allocations: 63.39 kB / 0.5597 GB, free: 1.098 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1377, allocations: 0 / 0.5597 GB, free: 1.098 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.055e-05/0.1377, allocations: 59.34 kB / 0.5598 GB, free: 1.027 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001272/0.1379, allocations: 2.188 kB / 0.5598 GB, free: 1.027 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001884/0.138, allocations: 81.19 kB / 0.5598 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003389/0.1384, allocations: 0.6768 MB / 0.5605 GB, free: 224 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.012e-06/0.1384, allocations: 0 / 0.5605 GB, free: 224 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.957e-05/0.1384, allocations: 7.438 kB / 0.5605 GB, free: 216 kB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1384, allocations: 0 / 0.5605 GB, free: 216 kB / 414.1 MB Notification: Performance of Templates: time 0.003219/0.1416, allocations: 0.6502 MB / 0.5611 GB, free: 15.57 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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: 5.139755371958017]