Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 102.5 kB / 16.27 MB, free: 5.93 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.001493/0.001493, allocations: 190.1 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.569/1.569, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2109/0.2109, allocations: 43.52 MB / 313.9 MB, free: 0.5117 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001972, allocations: 69.17 kB / 382.7 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.126, allocations: 57.79 MB / 440.5 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002248/0.1283, allocations: 489.5 kB / 441 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.13, allocations: 0.782 MB / 441.8 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.647e-05/0.13, allocations: 0 / 441.8 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.304e-05/0.1301, allocations: 0 / 441.8 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002859/0.1304, allocations: 7.938 kB / 441.8 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.1314, allocations: 60.05 kB / 441.8 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.715e-05/0.1315, allocations: 7.984 kB / 441.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.475e-05/0.1316, allocations: 0 / 441.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.715e-05/0.1316, allocations: 4 kB / 441.8 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.1317, allocations: 8 kB / 441.9 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.848e-06/0.1318, allocations: 0 / 441.9 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001718/0.1319, allocations: 51.95 kB / 441.9 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.115e-05/0.132, allocations: 0 / 441.9 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.779e-05/0.132, allocations: 7.938 kB / 441.9 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001708/0.1322, allocations: 47.92 kB / 442 MB, free: 5.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.1322, allocations: 4 kB / 442 MB, free: 5.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1322, allocations: 0 / 442 MB, free: 5.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.1322, allocations: 0 / 442 MB, free: 5.445 MB / 318.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.0004119/0.1326, allocations: 357.2 kB / 442.3 MB, free: 5.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.1327, allocations: 15.89 kB / 442.3 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.817e-05/0.1327, allocations: 0.9375 kB / 442.3 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.1328, allocations: 164.6 kB / 442.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.1329, allocations: 384 / 442.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.1329, allocations: 4.375 kB / 442.5 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001172/0.133, allocations: 34.19 kB / 442.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.133, allocations: 192 / 442.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.1331, allocations: 7.938 kB / 442.5 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.1331, allocations: 0 / 442.5 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.735e-05/0.1331, allocations: 4 kB / 442.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001663/0.1333, allocations: 149.6 kB / 442.7 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.149e-05/0.1333, allocations: 22.55 kB / 442.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.612e-05/0.1334, allocations: 4.859 kB / 442.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.229e-05/0.1334, allocations: 0 / 442.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.95e-05/0.1334, allocations: 68.31 kB / 442.8 MB, free: 4.453 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1334, allocations: 0 / 442.8 MB, free: 4.453 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001967/0.1336, allocations: 71.34 kB / 442.8 MB, free: 4.371 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.1337, allocations: 77.11 kB / 442.9 MB, free: 4.277 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.55e-05/0.1338, allocations: 93.84 kB / 443 MB, free: 4.176 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.063e-06/0.1338, allocations: 25.7 kB / 443 MB, free: 4.145 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.379e-05/0.1338, allocations: 84.14 kB / 443.1 MB, free: 4.059 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.932e-05/0.1338, allocations: 3.938 kB / 443.1 MB, free: 4.055 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.667e-05/0.1339, allocations: 13.66 kB / 443.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.689e-05/0.1339, allocations: 323.1 kB / 443.5 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.002e-05/0.1339, allocations: 0 / 443.5 MB, free: 3.711 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.031e-06/0.1339, allocations: 0 / 443.5 MB, free: 3.711 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.101e-05/0.134, allocations: 60.27 kB / 443.5 MB, free: 3.637 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.134, allocations: 0 / 443.5 MB, free: 3.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.175e-05/0.134, allocations: 63.39 kB / 443.6 MB, free: 3.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.1341, allocations: 29.7 kB / 443.6 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.1341, allocations: 3.938 kB / 443.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.1341, allocations: 8.078 kB / 443.6 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.1341, allocations: 4 kB / 443.6 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.1341, allocations: 7.922 kB / 443.6 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.691e-05/0.1342, allocations: 0 / 443.6 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.1342, allocations: 4 kB / 443.6 MB, free: 3.5 MB / 318.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 6.337e-05/0.1342, allocations: 144.6 kB / 443.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-06/0.1342, allocations: 0 / 443.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.006e-05/0.1343, allocations: 7.062 kB / 443.8 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1343, allocations: 0 / 443.8 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.1343, allocations: 4 kB / 443.8 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.1343, allocations: 3.938 kB / 443.8 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.59e-05/0.1343, allocations: 149.7 kB / 443.9 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1344, allocations: 0 / 443.9 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.82e-07/0.1344, allocations: 0 / 443.9 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.1344, allocations: 0 / 443.9 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.1344, allocations: 3.938 kB / 443.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1344, allocations: 0 / 443.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1344, allocations: 4 kB / 443.9 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.464e-05/0.1345, allocations: 94.73 kB / 444 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.727e-05/0.1345, allocations: 81.11 kB / 444.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.1345, allocations: 3.938 kB / 444.1 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.143e-05/0.1345, allocations: 0 / 444.1 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.114e-05/0.1345, allocations: 7.938 kB / 444.1 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.397e-06/0.1346, allocations: 4 kB / 444.1 MB, free: 2.895 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.413e-05/0.1346, allocations: 75.28 kB / 444.2 MB, free: 2.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1346, allocations: 0 / 444.2 MB, free: 2.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002527/0.1348, allocations: 24.11 kB / 444.2 MB, free: 2.797 MB / 318.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.0003557/0.1352, allocations: 174.2 kB / 444.4 MB, free: 2.645 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.925e-05/0.1353, allocations: 71.39 kB / 444.5 MB, free: 2.562 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1353, allocations: 0 / 444.5 MB, free: 2.562 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.186e-05/0.1353, allocations: 55.41 kB / 444.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001603/0.1355, allocations: 7.656 kB / 444.5 MB, free: 2.492 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001975/0.1357, allocations: 69.08 kB / 444.6 MB, free: 2.398 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001653/0.1359, allocations: 0.6767 MB / 445.3 MB, free: 1.695 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.037e-05/0.1359, allocations: 3.938 kB / 445.3 MB, free: 1.691 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.673e-05/0.1359, allocations: 7.438 kB / 445.3 MB, free: 1.684 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1359, allocations: 4.125 kB / 445.3 MB, free: 1.68 MB / 318.1 MB Notification: Performance of Templates: time 0.003569/0.1395, allocations: 0.6409 MB / 445.9 MB, free: 1.043 MB / 318.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches