Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001905/0.001905, allocations: 110.4 kB / 21.17 MB, free: 0.7852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001995/0.001995, allocations: 217.4 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 230.2 MB / 257.8 MB, free: 8.504 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2357/0.2357, allocations: 46.89 MB / 361.1 MB, free: 4.641 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00237/0.00237, allocations: 79.88 kB / 0.4967 GB, free: 7.848 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3362, allocations: 65.98 MB / 0.5612 GB, free: 5.059 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001723/0.3379, allocations: 0.4892 MB / 0.5616 GB, free: 4.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.3394, allocations: 0.8668 MB / 0.5625 GB, free: 3.703 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.66e-05/0.3394, allocations: 0 / 0.5625 GB, free: 3.703 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.936e-05/0.3394, allocations: 0 / 0.5625 GB, free: 3.703 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002/0.3396, allocations: 4 kB / 0.5625 GB, free: 3.699 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0006713/0.3403, allocations: 61.67 kB / 0.5626 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.844e-05/0.3403, allocations: 4 kB / 0.5626 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.299e-05/0.3404, allocations: 3.984 kB / 0.5626 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.946e-05/0.3404, allocations: 4 kB / 0.5626 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.828e-05/0.3405, allocations: 11.92 kB / 0.5626 GB, free: 3.621 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.427e-06/0.3405, allocations: 0 / 0.5626 GB, free: 3.621 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001624/0.3407, allocations: 63.89 kB / 0.5626 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.235e-06/0.3407, allocations: 0 / 0.5626 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.035e-05/0.3407, allocations: 0 / 0.5626 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001402/0.3408, allocations: 47.73 kB / 0.5627 GB, free: 3.516 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.3408, allocations: 3.984 kB / 0.5627 GB, free: 3.512 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3408, allocations: 0 / 0.5627 GB, free: 3.512 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.3409, allocations: 0 / 0.5627 GB, free: 3.512 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.0004206/0.3413, allocations: 363.9 kB / 0.563 GB, free: 3.102 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.3413, allocations: 12.02 kB / 0.563 GB, free: 3.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.86e-05/0.3413, allocations: 0.9375 kB / 0.563 GB, free: 3.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/0.3415, allocations: 164.4 kB / 0.5632 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.3415, allocations: 4.312 kB / 0.5632 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/0.3415, allocations: 384 / 0.5632 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.903e-05/0.3416, allocations: 30.27 kB / 0.5632 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.3416, allocations: 192 / 0.5632 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.3416, allocations: 3.938 kB / 0.5632 GB, free: 2.848 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.3416, allocations: 0 / 0.5632 GB, free: 2.848 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.752e-05/0.3417, allocations: 7.938 kB / 0.5632 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001567/0.3418, allocations: 153.7 kB / 0.5634 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.368e-05/0.3419, allocations: 14.58 kB / 0.5634 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.597e-05/0.3419, allocations: 4.859 kB / 0.5634 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.1e-05/0.3419, allocations: 4.094 kB / 0.5634 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.505e-05/0.3419, allocations: 56.27 kB / 0.5635 GB, free: 2.535 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.3419, allocations: 4 kB / 0.5635 GB, free: 2.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001757/0.3421, allocations: 75.27 kB / 0.5635 GB, free: 2.445 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.3422, allocations: 77.11 kB / 0.5636 GB, free: 2.352 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.012e-05/0.3422, allocations: 93.86 kB / 0.5637 GB, free: 2.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.3423, allocations: 25.7 kB / 0.5637 GB, free: 2.219 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.991e-05/0.3423, allocations: 80.14 kB / 0.5638 GB, free: 2.137 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.515e-05/0.3423, allocations: 0 / 0.5638 GB, free: 2.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.239e-05/0.3424, allocations: 17.95 kB / 0.5638 GB, free: 2.113 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.3425, allocations: 318.8 kB / 0.5641 GB, free: 1.793 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.327e-06/0.3425, allocations: 0 / 0.5641 GB, free: 1.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.959e-06/0.3425, allocations: 0 / 0.5641 GB, free: 1.793 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.209e-05/0.3426, allocations: 60.27 kB / 0.5642 GB, free: 1.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.3426, allocations: 0 / 0.5642 GB, free: 1.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.338e-05/0.3426, allocations: 67.33 kB / 0.5642 GB, free: 1.641 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.618e-05/0.3427, allocations: 29.7 kB / 0.5643 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3427, allocations: 8.031 kB / 0.5643 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.3427, allocations: 7.938 kB / 0.5643 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.3427, allocations: 0 / 0.5643 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.3427, allocations: 0 / 0.5643 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.938e-05/0.3427, allocations: 4 kB / 0.5643 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.3427, allocations: 0 / 0.5643 GB, free: 1.586 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 8.945e-05/0.3428, allocations: 135.5 kB / 0.5644 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.684e-06/0.3428, allocations: 0 / 0.5644 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.309e-05/0.3428, allocations: 11.05 kB / 0.5644 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.3428, allocations: 4 kB / 0.5644 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3428, allocations: 4 kB / 0.5644 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.3429, allocations: 0 / 0.5644 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001144/0.343, allocations: 145.7 kB / 0.5646 GB, free: 1.227 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.343, allocations: 4 kB / 0.5646 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.343, allocations: 0 / 0.5646 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.343, allocations: 7.922 kB / 0.5646 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.889e-06/0.343, allocations: 7.938 kB / 0.5646 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.343, allocations: 0 / 0.5646 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.343, allocations: 0 / 0.5646 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001081/0.3431, allocations: 98.77 kB / 0.5647 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.41e-05/0.3432, allocations: 85.05 kB / 0.5648 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.421e-05/0.3432, allocations: 3.938 kB / 0.5648 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.093e-05/0.3432, allocations: 4 kB / 0.5648 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.562e-05/0.3432, allocations: 0 / 0.5648 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.3432, allocations: 4 kB / 0.5648 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.98e-05/0.3432, allocations: 75.28 kB / 0.5649 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3432, allocations: 128 / 0.5649 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002116/0.3435, allocations: 19.94 kB / 0.5649 GB, free: 0.8789 MB / 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.0004236/0.3439, allocations: 180.8 kB / 0.5651 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001157/0.344, allocations: 67.34 kB / 0.5651 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.344, allocations: 3.938 kB / 0.5651 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.084e-05/0.344, allocations: 51.41 kB / 0.5652 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001357/0.3442, allocations: 10.64 kB / 0.5652 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001967/0.3444, allocations: 81 kB / 0.5653 GB, free: 468 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.3447, allocations: 0.673 MB / 0.5659 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.12e-06/0.3447, allocations: 0 / 0.5659 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.152e-05/0.3447, allocations: 7.438 kB / 0.5659 GB, free: 15.75 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3447, allocations: 3.938 kB / 0.5659 GB, free: 15.75 MB / 414.1 MB Notification: Performance of Templates: time 0.00333/0.348, allocations: 0.6456 MB / 0.5666 GB, free: 15.11 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.064264766871929]