Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001308/0.001308, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001541/0.001541, allocations: 216.9 kB / 24.53 MB, free: 4.012 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.451/1.451, allocations: 230.5 MB / 258.2 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2289/0.2289, allocations: 46.92 MB / 361.6 MB, free: 4.195 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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: "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002302/0.002302, allocations: 75.88 kB / 0.4969 GB, free: 7.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3257, allocations: 66.09 MB / 0.5615 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001753/0.3275, allocations: 497 kB / 0.562 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.3289, allocations: 0.8631 MB / 0.5628 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.691e-05/0.329, allocations: 0 / 0.5628 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.61e-05/0.329, allocations: 0 / 0.5628 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001942/0.3292, allocations: 11.94 kB / 0.5628 GB, free: 2.965 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:333:3-373: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.0007929/0.33, allocations: 50.22 kB / 0.5629 GB, free: 2.918 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.494e-05/0.33, allocations: 7.984 kB / 0.5629 GB, free: 2.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.05e-05/0.3301, allocations: 7.984 kB / 0.5629 GB, free: 2.902 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.081e-05/0.3301, allocations: 4 kB / 0.5629 GB, free: 2.898 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.535e-05/0.3302, allocations: 0 / 0.5629 GB, free: 2.898 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.457e-06/0.3302, allocations: 0 / 0.5629 GB, free: 2.898 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001612/0.3304, allocations: 63.95 kB / 0.5629 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.406e-06/0.3304, allocations: 0 / 0.5629 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.934e-05/0.3304, allocations: 7.922 kB / 0.5629 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.3306, allocations: 51.72 kB / 0.563 GB, free: 2.781 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3306, allocations: 0 / 0.563 GB, free: 2.781 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3306, allocations: 0 / 0.563 GB, free: 2.781 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.3306, allocations: 0 / 0.563 GB, free: 2.781 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.0004203/0.331, allocations: 286 kB / 0.5633 GB, free: 2.465 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.331, allocations: 15.97 kB / 0.5633 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.689e-05/0.3311, allocations: 4.125 kB / 0.5633 GB, free: 2.445 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.609e-05/0.3311, allocations: 30.75 kB / 0.5633 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.815e-05/0.3311, allocations: 0.9375 kB / 0.5633 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.3312, allocations: 106.5 kB / 0.5634 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.3312, allocations: 4.312 kB / 0.5634 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.835e-06/0.3312, allocations: 384 / 0.5634 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.5e-05/0.3313, allocations: 38.02 kB / 0.5635 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.605e-06/0.3313, allocations: 0 / 0.5635 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.3313, allocations: 0 / 0.5635 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3314, allocations: 0 / 0.5635 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.884e-05/0.3314, allocations: 3.984 kB / 0.5635 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001502/0.3315, allocations: 120.8 kB / 0.5636 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.959e-05/0.3316, allocations: 18.52 kB / 0.5636 GB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.862e-05/0.3316, allocations: 8.953 kB / 0.5636 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.554e-06/0.3316, allocations: 4 kB / 0.5636 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.283e-05/0.3317, allocations: 60.2 kB / 0.5637 GB, free: 1.949 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.051e-06/0.3317, allocations: 0 / 0.5637 GB, free: 1.949 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002002/0.3319, allocations: 71.33 kB / 0.5637 GB, free: 1.867 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.426e-05/0.3319, allocations: 77.11 kB / 0.5638 GB, free: 1.773 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.051e-05/0.332, allocations: 93.86 kB / 0.5639 GB, free: 1.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.332, allocations: 25.7 kB / 0.5639 GB, free: 1.641 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.102e-05/0.3321, allocations: 84.39 kB / 0.564 GB, free: 1.555 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.627e-05/0.3321, allocations: 0 / 0.564 GB, free: 1.555 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.349e-05/0.3321, allocations: 21.7 kB / 0.564 GB, free: 1.527 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.3323, allocations: 310.8 kB / 0.5643 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.055e-05/0.3323, allocations: 0 / 0.5643 GB, free: 1.215 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.71e-06/0.3323, allocations: 0 / 0.5643 GB, free: 1.215 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.209e-05/0.3324, allocations: 60.27 kB / 0.5644 GB, free: 1.141 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3324, allocations: 64 / 0.5644 GB, free: 1.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.174e-05/0.3325, allocations: 75.33 kB / 0.5644 GB, free: 1.055 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.209e-05/0.3325, allocations: 39.67 kB / 0.5645 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.3325, allocations: 0 / 0.5645 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.3325, allocations: 0 / 0.5645 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.81e-07/0.3325, allocations: 0 / 0.5645 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.3325, allocations: 0 / 0.5645 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.901e-05/0.3326, allocations: 0 / 0.5645 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.3326, allocations: 8 kB / 0.5645 GB, free: 1.004 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 0.0001242/0.3327, allocations: 136.9 kB / 0.5646 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.195e-05/0.3327, allocations: 7.922 kB / 0.5646 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.258e-05/0.3327, allocations: 3 kB / 0.5646 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.3327, allocations: 7.938 kB / 0.5646 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.3327, allocations: 3.938 kB / 0.5646 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.3327, allocations: 0 / 0.5646 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001195/0.3328, allocations: 116.8 kB / 0.5648 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3329, allocations: 0 / 0.5648 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.334e-06/0.3329, allocations: 7.984 kB / 0.5648 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.3329, allocations: 3.938 kB / 0.5648 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-06/0.3329, allocations: 3.984 kB / 0.5648 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3329, allocations: 4 kB / 0.5648 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3329, allocations: 0 / 0.5648 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001169/0.333, allocations: 94.77 kB / 0.5649 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.585e-06/0.333, allocations: 7.891 kB / 0.5649 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/0.333, allocations: 4 kB / 0.5649 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.08e-05/0.333, allocations: 0 / 0.5649 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.061e-05/0.333, allocations: 0 / 0.5649 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.574e-06/0.333, allocations: 4.031 kB / 0.5649 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.931e-05/0.3331, allocations: 75.28 kB / 0.565 GB, free: 460 kB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3331, allocations: 0 / 0.565 GB, free: 460 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002452/0.3333, allocations: 19.94 kB / 0.565 GB, free: 440 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.0007925/0.3341, allocations: 0.7167 MB / 0.5657 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001065/0.3342, allocations: 67.34 kB / 0.5657 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3342, allocations: 0 / 0.5657 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.951e-05/0.3343, allocations: 59.34 kB / 0.5658 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.3344, allocations: 7.938 kB / 0.5658 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003546/0.3348, allocations: 126.6 kB / 0.5659 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003245/0.3351, allocations: 0.6729 MB / 0.5666 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.266e-06/0.3351, allocations: 0 / 0.5666 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.33e-05/0.3351, allocations: 11.44 kB / 0.5666 GB, free: 14.67 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3351, allocations: 4.125 kB / 0.5666 GB, free: 14.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02337/0.3585, allocations: 1.628 MB / 0.5682 GB, free: 13.15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.86, allocations: 12 kB / 0.5682 GB, free: 13.14 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 14.679002975986805]