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.001748/0.001748, allocations: 108.3 kB / 20.48 MB, free: 0.9805 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.00211/0.00211, allocations: 218.5 kB / 23.78 MB, free: 4.215 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.495/1.495, allocations: 230.5 MB / 257.5 MB, free: 7.723 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.229/0.229, allocations: 46.95 MB / 360.9 MB, free: 3.871 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002274/0.002274, allocations: 75.88 kB / 0.4962 GB, free: 7.496 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.3005, allocations: 66.08 MB / 0.5608 GB, free: 3.973 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001831/0.3023, allocations: 487.5 kB / 0.5612 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.3037, allocations: 0.8709 MB / 0.5621 GB, free: 2.629 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.368e-05/0.3037, allocations: 0 / 0.5621 GB, free: 2.629 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.478e-05/0.3037, allocations: 7.875 kB / 0.5621 GB, free: 2.621 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002113/0.304, allocations: 4 kB / 0.5621 GB, free: 2.617 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.0006631/0.3046, allocations: 61.23 kB / 0.5621 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.794e-05/0.3047, allocations: 3.984 kB / 0.5621 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.416e-05/0.3047, allocations: 4 kB / 0.5621 GB, free: 2.551 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.093e-05/0.3047, allocations: 7.984 kB / 0.5622 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.947e-05/0.3048, allocations: 0 / 0.5622 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.395e-06/0.3048, allocations: 0 / 0.5622 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001461/0.3049, allocations: 55.95 kB / 0.5622 GB, free: 2.488 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.426e-06/0.3049, allocations: 0 / 0.5622 GB, free: 2.488 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.394e-05/0.305, allocations: 4 kB / 0.5622 GB, free: 2.484 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001817/0.3052, allocations: 55.66 kB / 0.5623 GB, free: 2.434 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3052, allocations: 3.938 kB / 0.5623 GB, free: 2.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3052, allocations: 0 / 0.5623 GB, free: 2.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.3052, allocations: 0 / 0.5623 GB, free: 2.43 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.0004007/0.3056, allocations: 278 kB / 0.5625 GB, free: 2.121 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.3056, allocations: 12.03 kB / 0.5625 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.475e-05/0.3057, allocations: 38.73 kB / 0.5626 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.845e-05/0.3057, allocations: 4.938 kB / 0.5626 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.3058, allocations: 102.5 kB / 0.5627 GB, free: 1.934 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.3058, allocations: 384 / 0.5627 GB, free: 1.934 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/0.3058, allocations: 4.375 kB / 0.5627 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.936e-05/0.3059, allocations: 51.97 kB / 0.5627 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.3059, allocations: 3.938 kB / 0.5627 GB, free: 1.863 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.3059, allocations: 4 kB / 0.5627 GB, free: 1.859 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.3059, allocations: 0 / 0.5627 GB, free: 1.859 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.798e-05/0.306, allocations: 37.62 kB / 0.5628 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001479/0.3061, allocations: 120.8 kB / 0.5629 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.331e-05/0.3062, allocations: 40.28 kB / 0.5629 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.302e-05/0.3062, allocations: 34.66 kB / 0.563 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-06/0.3062, allocations: 0 / 0.563 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.675e-05/0.3063, allocations: 60.25 kB / 0.563 GB, free: 1.484 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.42e-07/0.3063, allocations: 0 / 0.563 GB, free: 1.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002124/0.3065, allocations: 130.6 kB / 0.5632 GB, free: 1.332 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.3066, allocations: 81.05 kB / 0.5632 GB, free: 1.234 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.595e-05/0.3067, allocations: 97.97 kB / 0.5633 GB, free: 1.129 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.3067, allocations: 25.7 kB / 0.5633 GB, free: 1.098 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.525e-05/0.3067, allocations: 84.14 kB / 0.5634 GB, free: 1.012 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.446e-05/0.3067, allocations: 0 / 0.5634 GB, free: 1.012 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.983e-05/0.3068, allocations: 13.72 kB / 0.5634 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3069, allocations: 314.8 kB / 0.5637 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.547e-05/0.3069, allocations: 25.7 kB / 0.5638 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.302e-05/0.307, allocations: 25.7 kB / 0.5638 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.55e-05/0.307, allocations: 68.25 kB / 0.5639 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.307, allocations: 0 / 0.5639 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.804e-05/0.3071, allocations: 93.23 kB / 0.5639 GB, free: 432 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.238e-05/0.3072, allocations: 37.64 kB / 0.564 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3072, allocations: 0 / 0.564 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.3072, allocations: 0 / 0.564 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.407e-06/0.3072, allocations: 3.984 kB / 0.564 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.3072, allocations: 0 / 0.564 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.773e-05/0.3072, allocations: 0 / 0.564 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.3072, allocations: 4 kB / 0.564 GB, free: 380 kB / 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.0001153/0.3074, allocations: 132.9 kB / 0.5641 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.072e-05/0.3074, allocations: 3.938 kB / 0.5641 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.204e-05/0.3074, allocations: 15.03 kB / 0.5641 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3074, allocations: 0 / 0.5641 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3074, allocations: 0 / 0.5641 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.3074, allocations: 0 / 0.5641 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.3075, allocations: 124.8 kB / 0.5643 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3075, allocations: 0 / 0.5643 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.3075, allocations: 0 / 0.5643 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.3075, allocations: 3.938 kB / 0.5643 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.3075, allocations: 3.984 kB / 0.5643 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3075, allocations: 0 / 0.5643 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3075, allocations: 0 / 0.5643 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001475/0.3077, allocations: 124.5 kB / 0.5644 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.555e-06/0.3077, allocations: 7.953 kB / 0.5644 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.3077, allocations: 3.938 kB / 0.5644 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.043e-05/0.3077, allocations: 3.938 kB / 0.5644 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.07e-05/0.3077, allocations: 0 / 0.5644 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.3077, allocations: 4 kB / 0.5644 GB, free: 15.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.305e-05/0.3078, allocations: 83.27 kB / 0.5645 GB, free: 15.78 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3078, allocations: 0 / 0.5645 GB, free: 15.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.308, allocations: 15.94 kB / 0.5645 GB, free: 15.77 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.0008414/0.3088, allocations: 0.7586 MB / 0.5652 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001407/0.309, allocations: 114.8 kB / 0.5653 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.309, allocations: 0 / 0.5653 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.273e-05/0.309, allocations: 81.11 kB / 0.5654 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.3092, allocations: 4 kB / 0.5654 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003526/0.3095, allocations: 144.3 kB / 0.5656 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.344e-05/0.3096, allocations: 59.34 kB / 0.5656 GB, free: 14.49 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.706e-06/0.3096, allocations: 0 / 0.5656 GB, free: 14.49 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.384e-05/0.3096, allocations: 8.5 kB / 0.5656 GB, free: 14.48 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3096, allocations: 0 / 0.5656 GB, free: 14.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03011/0.3397, allocations: 2.121 MB / 0.5677 GB, free: 12.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.54, allocations: 6.484 kB / 0.5677 GB, free: 12.46 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.csv","/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.502999430987984]