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.001919/0.001919, allocations: 115.8 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.002612/0.002612, allocations: 216.6 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.459/1.459, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.2201/0.2201, allocations: 46.94 MB / 360.9 MB, free: 4.266 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.002037/0.002037, allocations: 71.91 kB / 0.4961 GB, free: 7.922 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2996, allocations: 66.03 MB / 0.5606 GB, free: 4.461 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001579/0.3012, allocations: 485.1 kB / 0.5611 GB, free: 3.984 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001507/0.3027, allocations: 0.8747 MB / 0.5619 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.947e-05/0.3028, allocations: 0 / 0.5619 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.992e-05/0.3028, allocations: 0 / 0.5619 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001924/0.303, allocations: 7.984 kB / 0.562 GB, free: 3.102 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.0007161/0.3037, allocations: 58.42 kB / 0.562 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.306e-05/0.3038, allocations: 8 kB / 0.562 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.305e-05/0.3038, allocations: 0 / 0.562 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.299e-05/0.3038, allocations: 4 kB / 0.562 GB, free: 3.035 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.789e-05/0.3039, allocations: 0 / 0.562 GB, free: 3.035 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.379e-05/0.3039, allocations: 3.984 kB / 0.562 GB, free: 3.031 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001667/0.3041, allocations: 71.88 kB / 0.5621 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.456e-06/0.3041, allocations: 0 / 0.5621 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.486e-05/0.3041, allocations: 3.938 kB / 0.5621 GB, free: 2.957 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.3043, allocations: 51.73 kB / 0.5621 GB, free: 2.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3043, allocations: 0 / 0.5621 GB, free: 2.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3043, allocations: 0 / 0.5621 GB, free: 2.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.3043, allocations: 0 / 0.5621 GB, free: 2.91 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.0004202/0.3047, allocations: 278 kB / 0.5624 GB, free: 2.602 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.3048, allocations: 12.03 kB / 0.5624 GB, free: 2.59 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.884e-05/0.3048, allocations: 30.75 kB / 0.5625 GB, free: 2.551 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.769e-05/0.3048, allocations: 4.938 kB / 0.5625 GB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001291/0.305, allocations: 106.5 kB / 0.5626 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.305, allocations: 4.375 kB / 0.5626 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.07e-05/0.305, allocations: 384 / 0.5626 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.846e-05/0.3051, allocations: 38.12 kB / 0.5626 GB, free: 2.371 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.3051, allocations: 7.938 kB / 0.5626 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.318e-06/0.3051, allocations: 3.984 kB / 0.5626 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-06/0.3051, allocations: 0 / 0.5626 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.539e-05/0.3051, allocations: 0 / 0.5626 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000138/0.3053, allocations: 120.8 kB / 0.5627 GB, free: 2.199 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.496e-05/0.3053, allocations: 18.58 kB / 0.5627 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.743e-05/0.3053, allocations: 8.844 kB / 0.5628 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.724e-06/0.3053, allocations: 96 / 0.5628 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.084e-05/0.3054, allocations: 64.2 kB / 0.5628 GB, free: 2.082 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3054, allocations: 0 / 0.5628 GB, free: 2.082 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001854/0.3056, allocations: 71.33 kB / 0.5629 GB, free: 2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/0.3056, allocations: 77.11 kB / 0.563 GB, free: 1.906 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.873e-05/0.3057, allocations: 101.8 kB / 0.5631 GB, free: 1.797 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.3057, allocations: 25.7 kB / 0.5631 GB, free: 1.766 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.8e-05/0.3058, allocations: 80.14 kB / 0.5632 GB, free: 1.684 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.39e-05/0.3058, allocations: 0 / 0.5632 GB, free: 1.684 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.138e-05/0.3058, allocations: 13.72 kB / 0.5632 GB, free: 1.664 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.306, allocations: 311.1 kB / 0.5635 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.131e-05/0.306, allocations: 4 kB / 0.5635 GB, free: 1.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.228e-06/0.306, allocations: 7.875 kB / 0.5635 GB, free: 1.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.538e-05/0.3061, allocations: 68.25 kB / 0.5635 GB, free: 1.258 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3061, allocations: 0 / 0.5635 GB, free: 1.258 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.461e-05/0.3062, allocations: 59.41 kB / 0.5636 GB, free: 1.188 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.606e-05/0.3062, allocations: 33.64 kB / 0.5636 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.3062, allocations: 8 kB / 0.5636 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.3062, allocations: 0 / 0.5636 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.3062, allocations: 4.094 kB / 0.5636 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.3062, allocations: 0 / 0.5636 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.569e-05/0.3062, allocations: 0 / 0.5636 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.3063, allocations: 3.984 kB / 0.5636 GB, free: 1.133 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.547e-05/0.3063, allocations: 139.5 kB / 0.5638 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.908e-06/0.3064, allocations: 3.938 kB / 0.5638 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.728e-06/0.3064, allocations: 3 kB / 0.5638 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.3064, allocations: 0 / 0.5638 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3064, allocations: 7.938 kB / 0.5638 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.3064, allocations: 7.938 kB / 0.5638 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.724e-05/0.3065, allocations: 116.8 kB / 0.5639 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.3065, allocations: 0 / 0.5639 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3065, allocations: 0 / 0.5639 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.3065, allocations: 3.938 kB / 0.5639 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.3065, allocations: 4 kB / 0.5639 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.3065, allocations: 0 / 0.5639 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3065, allocations: 0 / 0.5639 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.769e-05/0.3066, allocations: 94.83 kB / 0.564 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.079e-06/0.3066, allocations: 3.953 kB / 0.564 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.3066, allocations: 3.938 kB / 0.564 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.185e-05/0.3066, allocations: 4 kB / 0.564 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.212e-05/0.3066, allocations: 0 / 0.564 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/0.3066, allocations: 0 / 0.564 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.777e-05/0.3067, allocations: 79.28 kB / 0.5641 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3067, allocations: 0 / 0.5641 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002092/0.3069, allocations: 23.92 kB / 0.5641 GB, free: 0.5625 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.000749/0.3076, allocations: 0.7226 MB / 0.5648 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001241/0.3077, allocations: 63.41 kB / 0.5649 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.3077, allocations: 0 / 0.5649 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.215e-05/0.3078, allocations: 59.39 kB / 0.5649 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.3079, allocations: 11.25 kB / 0.565 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003409/0.3083, allocations: 122.8 kB / 0.5651 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.3086, allocations: 0.6767 MB / 0.5657 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.546e-06/0.3086, allocations: 0 / 0.5657 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.273e-05/0.3086, allocations: 7.438 kB / 0.5657 GB, free: 14.81 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3086, allocations: 0 / 0.5657 GB, free: 14.81 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0278/0.3364, allocations: 1.61 MB / 0.5673 GB, free: 13.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.5, allocations: 17.75 kB / 0.5673 GB, free: 13.32 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.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: 14.258080215891823]