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.001699/0.001699, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001447/0.001447, allocations: 215.4 kB / 24.48 MB, free: 3.941 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.467/1.467, allocations: 230.6 MB / 258.2 MB, free: 7.793 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.2296/0.2296, allocations: 46.96 MB / 361.6 MB, free: 4.027 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.001999/0.001999, allocations: 63.91 kB / 0.4973 GB, free: 7.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.3069, allocations: 66.04 MB / 0.5618 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001566/0.3085, allocations: 491.9 kB / 0.5623 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.3099, allocations: 0.8668 MB / 0.5631 GB, free: 2.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.522e-05/0.3099, allocations: 0 / 0.5631 GB, free: 2.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.188e-05/0.3099, allocations: 0 / 0.5631 GB, free: 2.82 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001913/0.3101, allocations: 11.94 kB / 0.5631 GB, free: 2.809 MB / 398.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.0005947/0.3107, allocations: 62.62 kB / 0.5632 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.731e-05/0.3107, allocations: 3.984 kB / 0.5632 GB, free: 2.746 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.215e-05/0.3108, allocations: 8 kB / 0.5632 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2e-05/0.3108, allocations: 3.984 kB / 0.5632 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.855e-05/0.3109, allocations: 0 / 0.5632 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.177e-06/0.3109, allocations: 4 kB / 0.5632 GB, free: 2.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.311, allocations: 59.95 kB / 0.5633 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.055e-06/0.311, allocations: 0 / 0.5633 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.975e-05/0.311, allocations: 0 / 0.5633 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.3112, allocations: 55.66 kB / 0.5633 GB, free: 2.621 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.095e-05/0.3112, allocations: 0 / 0.5633 GB, free: 2.621 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3112, allocations: 3.938 kB / 0.5633 GB, free: 2.617 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.3112, allocations: 3.984 kB / 0.5633 GB, free: 2.613 MB / 398.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.0003951/0.3116, allocations: 278.5 kB / 0.5636 GB, free: 2.309 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.3117, allocations: 12.03 kB / 0.5636 GB, free: 2.297 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.56e-05/0.3117, allocations: 4.922 kB / 0.5636 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.3118, allocations: 106.5 kB / 0.5637 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.377e-05/0.3118, allocations: 4.312 kB / 0.5637 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.3118, allocations: 4.375 kB / 0.5637 GB, free: 2.156 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.312, allocations: 51.97 kB / 0.5638 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.312, allocations: 192 / 0.5638 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.312, allocations: 3.938 kB / 0.5638 GB, free: 2.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.299e-06/0.312, allocations: 4 kB / 0.5638 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.103e-05/0.312, allocations: 25.7 kB / 0.5638 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001207/0.3121, allocations: 105.3 kB / 0.5639 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.487e-05/0.3122, allocations: 48.22 kB / 0.5639 GB, free: 1.859 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.295e-05/0.3122, allocations: 34.62 kB / 0.564 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.818e-06/0.3122, allocations: 3.984 kB / 0.564 GB, free: 1.812 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.152e-05/0.3123, allocations: 60.2 kB / 0.564 GB, free: 1.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3123, allocations: 0 / 0.564 GB, free: 1.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002323/0.3125, allocations: 122.7 kB / 0.5641 GB, free: 1.594 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.947e-05/0.3126, allocations: 81.11 kB / 0.5642 GB, free: 1.496 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.585e-05/0.3127, allocations: 89.86 kB / 0.5643 GB, free: 1.398 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.3127, allocations: 25.7 kB / 0.5643 GB, free: 1.367 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.001e-05/0.3127, allocations: 80.39 kB / 0.5644 GB, free: 1.285 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.3128, allocations: 12 kB / 0.5644 GB, free: 1.273 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.084e-05/0.3128, allocations: 13.7 kB / 0.5644 GB, free: 1.254 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.3129, allocations: 314.8 kB / 0.5647 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.435e-05/0.313, allocations: 29.7 kB / 0.5648 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.017e-05/0.313, allocations: 25.7 kB / 0.5648 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.165e-05/0.3131, allocations: 64.27 kB / 0.5648 GB, free: 0.793 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3131, allocations: 0 / 0.5648 GB, free: 0.793 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.224e-05/0.3131, allocations: 89.09 kB / 0.5649 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.431e-05/0.3132, allocations: 33.7 kB / 0.565 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.3132, allocations: 4.094 kB / 0.565 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.3132, allocations: 3.938 kB / 0.565 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.3132, allocations: 0 / 0.565 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.3132, allocations: 0 / 0.565 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.507e-05/0.3132, allocations: 0 / 0.565 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-06/0.3132, allocations: 3.938 kB / 0.565 GB, free: 0.6367 MB / 398.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.952e-05/0.3133, allocations: 143.5 kB / 0.5651 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.035e-06/0.3133, allocations: 0 / 0.5651 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.002e-05/0.3134, allocations: 3 kB / 0.5651 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.3134, allocations: 11.88 kB / 0.5651 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3134, allocations: 4 kB / 0.5651 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.3134, allocations: 0 / 0.5651 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.693e-05/0.3134, allocations: 93.33 kB / 0.5652 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3134, allocations: 3.984 kB / 0.5652 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.365e-06/0.3135, allocations: 4 kB / 0.5652 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.3135, allocations: 0 / 0.5652 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.3135, allocations: 4 kB / 0.5652 GB, free: 336 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.3135, allocations: 0 / 0.5652 GB, free: 336 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3135, allocations: 3.938 kB / 0.5652 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001345/0.3136, allocations: 116.5 kB / 0.5653 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.454e-06/0.3136, allocations: 15.92 kB / 0.5654 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.3136, allocations: 0 / 0.5654 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.646e-06/0.3136, allocations: 0 / 0.5654 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.258e-05/0.3137, allocations: 7.875 kB / 0.5654 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.3137, allocations: 0 / 0.5654 GB, free: 160 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.014e-05/0.3137, allocations: 79.28 kB / 0.5654 GB, free: 80 kB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3137, allocations: 0 / 0.5654 GB, free: 80 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002199/0.3139, allocations: 23.92 kB / 0.5655 GB, free: 56 kB / 398.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.0004972/0.3144, allocations: 188.5 kB / 0.5656 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001481/0.3146, allocations: 114.8 kB / 0.5658 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.3146, allocations: 4.062 kB / 0.5658 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.893e-05/0.3146, allocations: 85.11 kB / 0.5658 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001415/0.3148, allocations: 0 / 0.5658 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002557/0.315, allocations: 106.7 kB / 0.5659 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.034e-05/0.3151, allocations: 59.34 kB / 0.566 GB, free: 15.44 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.033e-06/0.3151, allocations: 0 / 0.566 GB, free: 15.44 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.887e-05/0.3151, allocations: 7.438 kB / 0.566 GB, free: 15.43 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3151, allocations: 7.938 kB / 0.566 GB, free: 15.42 MB / 414.1 MB Notification: Performance of Templates: time 0.003307/0.3185, allocations: 0.6657 MB / 0.5667 GB, free: 14.77 MB / 414.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/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: 4.891948691001744]