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.001771/0.001771, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.002151/0.002151, allocations: 213.6 kB / 23.75 MB, free: 4.668 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.474/1.474, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.221/0.221, allocations: 44.91 MB / 358.8 MB, free: 6.375 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",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.002116/0.002116, allocations: 67.89 kB / 0.4931 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3272, allocations: 65.47 MB / 0.557 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001515/0.3287, allocations: 486.9 kB / 0.5575 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001346/0.3301, allocations: 0.8855 MB / 0.5583 GB, free: 6.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.699e-05/0.3301, allocations: 0 / 0.5583 GB, free: 6.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.239e-05/0.3301, allocations: 0 / 0.5583 GB, free: 6.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001466/0.3303, allocations: 3.938 kB / 0.5583 GB, free: 6.406 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.0006044/0.3309, allocations: 54.5 kB / 0.5584 GB, free: 6.355 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.451e-05/0.3309, allocations: 11.98 kB / 0.5584 GB, free: 6.344 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.821e-05/0.331, allocations: 0 / 0.5584 GB, free: 6.344 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.491e-05/0.331, allocations: 0 / 0.5584 GB, free: 6.344 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.378e-05/0.3311, allocations: 7.984 kB / 0.5584 GB, free: 6.336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.895e-06/0.3311, allocations: 0 / 0.5584 GB, free: 6.336 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001519/0.3312, allocations: 63.95 kB / 0.5585 GB, free: 6.273 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.903e-06/0.3312, allocations: 4 kB / 0.5585 GB, free: 6.27 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.845e-05/0.3313, allocations: 7.922 kB / 0.5585 GB, free: 6.262 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001355/0.3314, allocations: 47.73 kB / 0.5585 GB, free: 6.219 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3314, allocations: 0 / 0.5585 GB, free: 6.219 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3314, allocations: 3.938 kB / 0.5585 GB, free: 6.215 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.3314, allocations: 0 / 0.5585 GB, free: 6.215 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.0003598/0.3318, allocations: 286 kB / 0.5588 GB, free: 5.898 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.3318, allocations: 12.03 kB / 0.5588 GB, free: 5.887 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.448e-05/0.3318, allocations: 30.75 kB / 0.5588 GB, free: 5.848 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.268e-05/0.3319, allocations: 4.938 kB / 0.5588 GB, free: 5.844 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.332, allocations: 102.5 kB / 0.5589 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.332, allocations: 384 / 0.5589 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.823e-06/0.332, allocations: 4.375 kB / 0.5589 GB, free: 5.715 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.138e-05/0.3321, allocations: 26.27 kB / 0.559 GB, free: 5.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.3321, allocations: 3.938 kB / 0.559 GB, free: 5.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.3321, allocations: 7.984 kB / 0.559 GB, free: 5.672 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.3321, allocations: 3.938 kB / 0.559 GB, free: 5.668 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.253e-05/0.3321, allocations: 11.92 kB / 0.559 GB, free: 5.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001354/0.3323, allocations: 116.8 kB / 0.5591 GB, free: 5.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.888e-05/0.3323, allocations: 18.61 kB / 0.5591 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.324e-05/0.3323, allocations: 4.859 kB / 0.5591 GB, free: 5.465 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.958e-06/0.3323, allocations: 0 / 0.5591 GB, free: 5.465 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.469e-05/0.3324, allocations: 68.31 kB / 0.5592 GB, free: 5.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3324, allocations: 3.938 kB / 0.5592 GB, free: 5.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001627/0.3325, allocations: 67.38 kB / 0.5593 GB, free: 5.301 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/0.3326, allocations: 81.14 kB / 0.5593 GB, free: 5.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.566e-05/0.3327, allocations: 89.86 kB / 0.5594 GB, free: 5.105 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.3327, allocations: 37.69 kB / 0.5595 GB, free: 5.062 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.581e-05/0.3327, allocations: 80.14 kB / 0.5595 GB, free: 4.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.306e-05/0.3327, allocations: 0 / 0.5595 GB, free: 4.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.689e-05/0.3328, allocations: 9.719 kB / 0.5595 GB, free: 4.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.3329, allocations: 314.8 kB / 0.5598 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.959e-06/0.3329, allocations: 4.125 kB / 0.5599 GB, free: 4.645 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.671e-06/0.3329, allocations: 0 / 0.5599 GB, free: 4.645 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.814e-05/0.333, allocations: 64.27 kB / 0.5599 GB, free: 4.566 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.333, allocations: 0 / 0.5599 GB, free: 4.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.88e-05/0.3331, allocations: 67.33 kB / 0.56 GB, free: 4.488 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.545e-05/0.3331, allocations: 33.64 kB / 0.56 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.3331, allocations: 0 / 0.56 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.3331, allocations: 4 kB / 0.56 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.32e-07/0.3331, allocations: 96 / 0.56 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.3331, allocations: 4 kB / 0.56 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.563e-05/0.3331, allocations: 0 / 0.56 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-06/0.3331, allocations: 0 / 0.56 GB, free: 4.441 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.0001069/0.3332, allocations: 139.5 kB / 0.5602 GB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.076e-05/0.3333, allocations: 3.938 kB / 0.5602 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.257e-06/0.3333, allocations: 3 kB / 0.5602 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.3333, allocations: 0 / 0.5602 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.3333, allocations: 0 / 0.5602 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-06/0.3333, allocations: 0 / 0.5602 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.3334, allocations: 128.8 kB / 0.5603 GB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.3334, allocations: 0 / 0.5603 GB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.3334, allocations: 3.938 kB / 0.5603 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3334, allocations: 3.938 kB / 0.5603 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.3334, allocations: 8 kB / 0.5603 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.3334, allocations: 0 / 0.5603 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3334, allocations: 0 / 0.5603 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001108/0.3335, allocations: 98.77 kB / 0.5604 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.33e-06/0.3335, allocations: 3.953 kB / 0.5604 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.3335, allocations: 3.938 kB / 0.5604 GB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.017e-05/0.3335, allocations: 0 / 0.5604 GB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.326e-05/0.3335, allocations: 4 kB / 0.5604 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-06/0.3335, allocations: 0 / 0.5604 GB, free: 3.965 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.702e-05/0.3336, allocations: 75.28 kB / 0.5605 GB, free: 3.891 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3336, allocations: 0 / 0.5605 GB, free: 3.891 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002356/0.3338, allocations: 27.88 kB / 0.5605 GB, free: 3.863 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.0007416/0.3346, allocations: 0.7232 MB / 0.5612 GB, free: 3.133 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.796e-05/0.3347, allocations: 59.41 kB / 0.5613 GB, free: 3.062 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3347, allocations: 4 kB / 0.5613 GB, free: 3.059 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.751e-05/0.3347, allocations: 51.41 kB / 0.5613 GB, free: 2.996 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001294/0.3348, allocations: 10.33 kB / 0.5613 GB, free: 2.988 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003206/0.3352, allocations: 114.8 kB / 0.5614 GB, free: 2.836 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.3355, allocations: 0.6768 MB / 0.5621 GB, free: 2.133 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.165e-06/0.3355, allocations: 0 / 0.5621 GB, free: 2.133 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.118e-05/0.3355, allocations: 7.438 kB / 0.5621 GB, free: 2.125 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3355, allocations: 3.938 kB / 0.5621 GB, free: 2.121 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02944/0.365, allocations: 1.62 MB / 0.5637 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.81, allocations: 14.69 kB / 0.5637 GB, free: 0.625 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.67693329998292]