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.001806/0.001806, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.002168/0.002168, allocations: 212.9 kB / 24.52 MB, free: 3.941 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.454/1.454, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.2244/0.2244, allocations: 46.95 MB / 361.7 MB, free: 4.043 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 71.84 kB / 0.4968 GB, free: 7.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3079, allocations: 66.03 MB / 0.5613 GB, free: 4.156 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001536/0.3094, allocations: 496.1 kB / 0.5618 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.3107, allocations: 0.8592 MB / 0.5626 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.278e-05/0.3107, allocations: 0 / 0.5626 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.317e-05/0.3107, allocations: 7.938 kB / 0.5626 GB, free: 2.805 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001623/0.3109, allocations: 8 kB / 0.5627 GB, free: 2.797 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.000544/0.3114, allocations: 58.47 kB / 0.5627 GB, free: 2.742 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.55e-05/0.3115, allocations: 7.938 kB / 0.5627 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.494e-05/0.3115, allocations: 0 / 0.5627 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.66e-05/0.3115, allocations: 3.984 kB / 0.5627 GB, free: 2.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.569e-05/0.3116, allocations: 4 kB / 0.5627 GB, free: 2.727 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.318e-06/0.3116, allocations: 4 kB / 0.5627 GB, free: 2.723 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001275/0.3117, allocations: 59.94 kB / 0.5628 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.373e-06/0.3117, allocations: 0 / 0.5628 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.561e-05/0.3117, allocations: 0 / 0.5628 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001224/0.3118, allocations: 59.61 kB / 0.5628 GB, free: 2.609 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.3118, allocations: 3.938 kB / 0.5628 GB, free: 2.605 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3118, allocations: 0 / 0.5628 GB, free: 2.605 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.3118, allocations: 0 / 0.5628 GB, free: 2.605 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.0003382/0.3122, allocations: 286 kB / 0.5631 GB, free: 2.289 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.3122, allocations: 12.03 kB / 0.5631 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.358e-05/0.3122, allocations: 192 / 0.5631 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.23e-05/0.3123, allocations: 30.75 kB / 0.5632 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.986e-05/0.3123, allocations: 0.9375 kB / 0.5632 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.996e-05/0.3124, allocations: 106.5 kB / 0.5633 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.116e-06/0.3124, allocations: 4.375 kB / 0.5633 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.741e-06/0.3124, allocations: 384 / 0.5633 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.429e-05/0.3125, allocations: 63.7 kB / 0.5633 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.3125, allocations: 0 / 0.5633 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.061e-06/0.3125, allocations: 0 / 0.5633 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.925e-06/0.3125, allocations: 0 / 0.5633 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.105e-05/0.3125, allocations: 33.64 kB / 0.5634 GB, free: 1.992 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001236/0.3126, allocations: 116.8 kB / 0.5635 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.138e-05/0.3127, allocations: 44.31 kB / 0.5635 GB, free: 1.777 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.957e-05/0.3127, allocations: 34.55 kB / 0.5635 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.207e-06/0.3127, allocations: 4 kB / 0.5636 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.996e-05/0.3128, allocations: 68.27 kB / 0.5636 GB, free: 1.648 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3128, allocations: 0 / 0.5636 GB, free: 1.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001819/0.313, allocations: 118.7 kB / 0.5637 GB, free: 1.508 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/0.313, allocations: 77.11 kB / 0.5638 GB, free: 1.414 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.9e-05/0.3131, allocations: 101.8 kB / 0.5639 GB, free: 1.305 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.3131, allocations: 25.7 kB / 0.5639 GB, free: 1.273 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.579e-05/0.3132, allocations: 80.14 kB / 0.564 GB, free: 1.191 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.222e-05/0.3132, allocations: 0 / 0.564 GB, free: 1.191 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.802e-05/0.3132, allocations: 13.72 kB / 0.564 GB, free: 1.172 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.3133, allocations: 315.1 kB / 0.5643 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.657e-05/0.3134, allocations: 25.7 kB / 0.5643 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.554e-05/0.3134, allocations: 37.69 kB / 0.5644 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.921e-05/0.3134, allocations: 64.27 kB / 0.5644 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.3134, allocations: 0 / 0.5644 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.496e-05/0.3135, allocations: 89.05 kB / 0.5645 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.516e-05/0.3136, allocations: 37.62 kB / 0.5646 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.3136, allocations: 0 / 0.5646 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-06/0.3136, allocations: 0 / 0.5646 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.3136, allocations: 4.094 kB / 0.5646 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.526e-06/0.3136, allocations: 4 kB / 0.5646 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.365e-05/0.3136, allocations: 0 / 0.5646 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.23e-06/0.3136, allocations: 3.938 kB / 0.5646 GB, free: 0.543 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 8.528e-05/0.3137, allocations: 139.5 kB / 0.5647 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.648e-06/0.3137, allocations: 3.938 kB / 0.5647 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.356e-06/0.3137, allocations: 3 kB / 0.5647 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.3137, allocations: 3.984 kB / 0.5647 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.3137, allocations: 0 / 0.5647 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.3137, allocations: 0 / 0.5647 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.454e-05/0.3138, allocations: 116.8 kB / 0.5648 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3138, allocations: 4 kB / 0.5648 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3138, allocations: 0 / 0.5648 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.3138, allocations: 3.938 kB / 0.5648 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.3138, allocations: 4 kB / 0.5648 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.32e-07/0.3138, allocations: 0 / 0.5648 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3138, allocations: 0 / 0.5648 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001209/0.3139, allocations: 120.5 kB / 0.565 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.055e-06/0.314, allocations: 11.88 kB / 0.565 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.314, allocations: 7.984 kB / 0.565 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.486e-05/0.314, allocations: 4 kB / 0.565 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.021e-05/0.314, allocations: 4.031 kB / 0.565 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.314, allocations: 3.938 kB / 0.565 GB, free: 32 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.743e-05/0.314, allocations: 75.28 kB / 0.5651 GB, free: 15.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.314, allocations: 0 / 0.5651 GB, free: 15.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002145/0.3143, allocations: 19.94 kB / 0.5651 GB, free: 15.94 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.0007386/0.315, allocations: 0.7581 MB / 0.5658 GB, free: 15.17 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001124/0.3151, allocations: 110.8 kB / 0.5659 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.3151, allocations: 0 / 0.5659 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.82e-05/0.3152, allocations: 81.11 kB / 0.566 GB, free: 14.94 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001232/0.3153, allocations: 12.09 kB / 0.566 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003115/0.3156, allocations: 144.4 kB / 0.5661 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.342e-05/0.3157, allocations: 59.34 kB / 0.5662 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.013e-06/0.3157, allocations: 0 / 0.5662 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.757e-05/0.3157, allocations: 7.438 kB / 0.5662 GB, free: 14.66 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3157, allocations: 0 / 0.5662 GB, free: 14.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02332/0.339, allocations: 1.692 MB / 0.5679 GB, free: 13.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.92, allocations: 6.469 kB / 0.5679 GB, free: 13.11 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.789190873969346]