Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001801/0.001801, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002647/0.002647, allocations: 214.7 kB / 24.52 MB, free: 3.914 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.518/1.518, allocations: 230.6 MB / 258.3 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2223/0.2223, allocations: 44.93 MB / 359.6 MB, free: 6.07 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002107, allocations: 71.89 kB / 0.4938 GB, free: 10.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3181/0.3202, allocations: 65.47 MB / 0.5577 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001584/0.3218, allocations: 498.8 kB / 0.5582 GB, free: 6.977 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.3232, allocations: 0.8661 MB / 0.559 GB, free: 6.203 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.26e-05/0.3232, allocations: 0 / 0.559 GB, free: 6.203 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.189e-05/0.3232, allocations: 0 / 0.559 GB, free: 6.203 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001886/0.3234, allocations: 7.984 kB / 0.559 GB, free: 6.195 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363: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.0007471/0.3242, allocations: 61.42 kB / 0.5591 GB, free: 6.141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.401e-05/0.3242, allocations: 8 kB / 0.5591 GB, free: 6.133 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.188e-05/0.3242, allocations: 0 / 0.5591 GB, free: 6.133 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.454e-05/0.3243, allocations: 3.938 kB / 0.5591 GB, free: 6.129 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.9e-05/0.3243, allocations: 7.984 kB / 0.5591 GB, free: 6.121 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.456e-06/0.3243, allocations: 0 / 0.5591 GB, free: 6.121 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.3245, allocations: 59.89 kB / 0.5592 GB, free: 6.062 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.855e-06/0.3245, allocations: 4 kB / 0.5592 GB, free: 6.059 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.115e-05/0.3245, allocations: 3.984 kB / 0.5592 GB, free: 6.055 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000139/0.3247, allocations: 47.73 kB / 0.5592 GB, free: 6.012 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3247, allocations: 0 / 0.5592 GB, free: 6.012 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3247, allocations: 0 / 0.5592 GB, free: 6.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.3247, allocations: 0 / 0.5592 GB, free: 6.012 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.0003886/0.3251, allocations: 289.9 kB / 0.5595 GB, free: 5.691 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.3251, allocations: 8.031 kB / 0.5595 GB, free: 5.684 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.227e-05/0.3251, allocations: 4.125 kB / 0.5595 GB, free: 5.68 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.499e-05/0.3251, allocations: 30.75 kB / 0.5595 GB, free: 5.641 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.862e-05/0.3252, allocations: 4.938 kB / 0.5595 GB, free: 5.637 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.3253, allocations: 110.5 kB / 0.5596 GB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.3253, allocations: 384 / 0.5596 GB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.005e-05/0.3253, allocations: 384 / 0.5596 GB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001076/0.3254, allocations: 63.7 kB / 0.5597 GB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.3254, allocations: 0 / 0.5597 GB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.673e-06/0.3254, allocations: 0 / 0.5597 GB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.3254, allocations: 0 / 0.5597 GB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.238e-05/0.3255, allocations: 37.64 kB / 0.5597 GB, free: 5.387 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001319/0.3256, allocations: 116.8 kB / 0.5599 GB, free: 5.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.639e-05/0.3257, allocations: 44.31 kB / 0.5599 GB, free: 5.172 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.458e-05/0.3257, allocations: 38.56 kB / 0.5599 GB, free: 5.125 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.3257, allocations: 4.062 kB / 0.5599 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.472e-05/0.3258, allocations: 60.2 kB / 0.56 GB, free: 5.047 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.3258, allocations: 0 / 0.56 GB, free: 5.047 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002116/0.326, allocations: 118.7 kB / 0.5601 GB, free: 4.906 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.248e-05/0.326, allocations: 81.11 kB / 0.5602 GB, free: 4.809 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.094e-05/0.3261, allocations: 93.86 kB / 0.5603 GB, free: 4.707 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.3262, allocations: 25.7 kB / 0.5603 GB, free: 4.676 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.156e-05/0.3262, allocations: 80.14 kB / 0.5604 GB, free: 4.594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.919e-05/0.3262, allocations: 8.234 kB / 0.5604 GB, free: 4.586 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.253e-05/0.3263, allocations: 13.72 kB / 0.5604 GB, free: 4.566 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.3264, allocations: 310.8 kB / 0.5607 GB, free: 4.254 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.84e-05/0.3264, allocations: 29.7 kB / 0.5607 GB, free: 4.219 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.439e-05/0.3265, allocations: 29.7 kB / 0.5607 GB, free: 4.184 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.223e-05/0.3265, allocations: 68.2 kB / 0.5608 GB, free: 4.102 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3265, allocations: 3.938 kB / 0.5608 GB, free: 4.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000114/0.3266, allocations: 89.09 kB / 0.5609 GB, free: 3.992 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.421e-05/0.3267, allocations: 37.64 kB / 0.5609 GB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3267, allocations: 8.094 kB / 0.5609 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.3267, allocations: 0 / 0.5609 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.3267, allocations: 0 / 0.5609 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.3267, allocations: 0 / 0.5609 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.034e-05/0.3267, allocations: 0 / 0.5609 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.714e-06/0.3267, allocations: 0 / 0.5609 GB, free: 3.941 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.0001191/0.3269, allocations: 139.5 kB / 0.5611 GB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.176e-05/0.3269, allocations: 3.938 kB / 0.5611 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.42e-05/0.3269, allocations: 3 kB / 0.5611 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3269, allocations: 0 / 0.5611 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.3269, allocations: 4 kB / 0.5611 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3269, allocations: 7.938 kB / 0.5611 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/0.327, allocations: 116.8 kB / 0.5612 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.327, allocations: 0 / 0.5612 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.327, allocations: 0 / 0.5612 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.327, allocations: 7.938 kB / 0.5612 GB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.862e-06/0.327, allocations: 0 / 0.5612 GB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.22e-07/0.327, allocations: 0 / 0.5612 GB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.327, allocations: 3.938 kB / 0.5612 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001477/0.3272, allocations: 120.5 kB / 0.5613 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.504e-06/0.3272, allocations: 7.891 kB / 0.5613 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.207e-05/0.3272, allocations: 8.031 kB / 0.5614 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.099e-05/0.3272, allocations: 0 / 0.5614 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.718e-05/0.3272, allocations: 3.984 kB / 0.5614 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-06/0.3272, allocations: 0 / 0.5614 GB, free: 3.434 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.101e-05/0.3273, allocations: 79.28 kB / 0.5614 GB, free: 3.355 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3273, allocations: 0 / 0.5614 GB, free: 3.355 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002269/0.3275, allocations: 19.92 kB / 0.5614 GB, free: 3.336 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.0009043/0.3284, allocations: 0.7575 MB / 0.5622 GB, free: 2.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001404/0.3285, allocations: 110.8 kB / 0.5623 GB, free: 2.438 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3285, allocations: 4.062 kB / 0.5623 GB, free: 2.434 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.728e-05/0.3286, allocations: 85.11 kB / 0.5624 GB, free: 2.332 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.3287, allocations: 4 kB / 0.5624 GB, free: 2.328 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003879/0.3291, allocations: 140.3 kB / 0.5625 GB, free: 2.145 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.561e-05/0.3292, allocations: 55.36 kB / 0.5626 GB, free: 2.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.013e-05/0.3292, allocations: 3.938 kB / 0.5626 GB, free: 2.066 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.441e-05/0.3292, allocations: 11.44 kB / 0.5626 GB, free: 2.055 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3292, allocations: 0 / 0.5626 GB, free: 2.055 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0238/0.353, allocations: 1.688 MB / 0.5642 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.98, allocations: 8 kB / 0.5642 GB, free: 0.5078 MB / 398.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.911655219038948]