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.001789/0.001789, allocations: 115.9 kB / 20.43 MB, free: 1.449 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.002368/0.002368, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.461/1.461, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.2576/0.2576, allocations: 46.93 MB / 360.9 MB, free: 4.371 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: "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002114/0.002114, allocations: 71.89 kB / 0.4961 GB, free: 7.945 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.3004, allocations: 66.02 MB / 0.5606 GB, free: 4.492 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001625/0.302, allocations: 493 kB / 0.5611 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001433/0.3034, allocations: 0.8785 MB / 0.5619 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.901e-05/0.3035, allocations: 0 / 0.5619 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.21e-05/0.3035, allocations: 0 / 0.5619 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001795/0.3037, allocations: 3.938 kB / 0.562 GB, free: 3.125 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.0007104/0.3044, allocations: 61.05 kB / 0.562 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.074e-05/0.3044, allocations: 7.938 kB / 0.562 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.575e-05/0.3045, allocations: 3.984 kB / 0.562 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.11e-05/0.3045, allocations: 3.984 kB / 0.562 GB, free: 3.055 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.297e-05/0.3046, allocations: 4 kB / 0.562 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.907e-06/0.3046, allocations: 0 / 0.562 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001793/0.3048, allocations: 59.95 kB / 0.5621 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.925e-06/0.3048, allocations: 0 / 0.5621 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.95e-05/0.3048, allocations: 7.938 kB / 0.5621 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001481/0.305, allocations: 55.7 kB / 0.5621 GB, free: 2.934 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.305, allocations: 0 / 0.5621 GB, free: 2.934 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.305, allocations: 4 kB / 0.5621 GB, free: 2.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.305, allocations: 0 / 0.5621 GB, free: 2.93 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.000425/0.3054, allocations: 281.9 kB / 0.5624 GB, free: 2.617 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.3054, allocations: 12.03 kB / 0.5624 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.364e-05/0.3055, allocations: 30.75 kB / 0.5625 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.943e-05/0.3055, allocations: 0.9375 kB / 0.5625 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.3057, allocations: 110.5 kB / 0.5626 GB, free: 2.434 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.3057, allocations: 4.375 kB / 0.5626 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.973e-06/0.3057, allocations: 384 / 0.5626 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.709e-05/0.3058, allocations: 30.27 kB / 0.5626 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.3058, allocations: 3.938 kB / 0.5626 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.3058, allocations: 4 kB / 0.5626 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.3058, allocations: 0 / 0.5626 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.825e-05/0.3058, allocations: 7.922 kB / 0.5626 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001503/0.306, allocations: 116.8 kB / 0.5627 GB, free: 2.223 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.064e-05/0.306, allocations: 26.5 kB / 0.5628 GB, free: 2.188 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.541e-05/0.306, allocations: 8.859 kB / 0.5628 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.179e-06/0.306, allocations: 0 / 0.5628 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.447e-05/0.3061, allocations: 60.33 kB / 0.5628 GB, free: 2.102 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.3061, allocations: 0 / 0.5628 GB, free: 2.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001998/0.3063, allocations: 67.33 kB / 0.5629 GB, free: 2.023 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.607e-05/0.3063, allocations: 77.11 kB / 0.563 GB, free: 1.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.702e-05/0.3064, allocations: 94.08 kB / 0.563 GB, free: 1.828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.3064, allocations: 33.73 kB / 0.5631 GB, free: 1.789 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.655e-05/0.3065, allocations: 84.08 kB / 0.5632 GB, free: 1.703 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.618e-05/0.3065, allocations: 0 / 0.5632 GB, free: 1.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.247e-05/0.3065, allocations: 13.7 kB / 0.5632 GB, free: 1.684 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.3067, allocations: 314.8 kB / 0.5635 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.04e-05/0.3067, allocations: 0 / 0.5635 GB, free: 1.367 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.302e-06/0.3067, allocations: 0 / 0.5635 GB, free: 1.367 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.926e-05/0.3068, allocations: 72.33 kB / 0.5635 GB, free: 1.281 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3068, allocations: 0 / 0.5635 GB, free: 1.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.751e-05/0.3068, allocations: 63.39 kB / 0.5636 GB, free: 1.207 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.3069, allocations: 33.64 kB / 0.5636 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.3069, allocations: 4 kB / 0.5636 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.3069, allocations: 0 / 0.5636 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.3069, allocations: 0 / 0.5636 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.3069, allocations: 7.922 kB / 0.5636 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.73e-05/0.3069, allocations: 0 / 0.5636 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.249e-06/0.3069, allocations: 0 / 0.5636 GB, free: 1.156 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.0001134/0.307, allocations: 143.6 kB / 0.5638 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.214e-05/0.3071, allocations: 7.922 kB / 0.5638 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.03e-05/0.3071, allocations: 3 kB / 0.5638 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.3071, allocations: 0 / 0.5638 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3071, allocations: 3.938 kB / 0.5638 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.3071, allocations: 4 kB / 0.5638 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000107/0.3072, allocations: 112.8 kB / 0.5639 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3072, allocations: 0 / 0.5639 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.564e-06/0.3072, allocations: 3.984 kB / 0.5639 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3072, allocations: 7.875 kB / 0.5639 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.3072, allocations: 8 kB / 0.5639 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3072, allocations: 0 / 0.5639 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.3072, allocations: 0 / 0.5639 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001059/0.3073, allocations: 86.84 kB / 0.564 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.484e-06/0.3073, allocations: 7.938 kB / 0.564 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.3073, allocations: 3.938 kB / 0.564 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.028e-05/0.3073, allocations: 3.938 kB / 0.564 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.264e-05/0.3074, allocations: 8.031 kB / 0.564 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-06/0.3074, allocations: 4 kB / 0.564 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.306e-05/0.3074, allocations: 75.28 kB / 0.5641 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3074, allocations: 0 / 0.5641 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002476/0.3077, allocations: 19.94 kB / 0.5641 GB, free: 0.5781 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.0008347/0.3085, allocations: 0.7146 MB / 0.5648 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001112/0.3086, allocations: 67.34 kB / 0.5649 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3086, allocations: 0 / 0.5649 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.023e-05/0.3086, allocations: 55.41 kB / 0.5649 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001355/0.3088, allocations: 0 / 0.5649 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003435/0.3091, allocations: 118.7 kB / 0.5651 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.3095, allocations: 0.6768 MB / 0.5657 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.107e-06/0.3095, allocations: 0 / 0.5657 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.401e-05/0.3095, allocations: 11.56 kB / 0.5657 GB, free: 14.84 MB / 414.1 MB Notification: Performance of SimCode: time 4.9e-07/0.3095, allocations: 0 / 0.5657 GB, free: 14.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03077/0.3403, allocations: 1.615 MB / 0.5673 GB, free: 13.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.59, allocations: 15.09 kB / 0.5673 GB, free: 13.35 MB / 414.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_4_1_0_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_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: 14.549345778003044]