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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 104 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 192.1 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1993/0.1993, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 54.81 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09257/0.09376, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00163/0.09543, allocations: 491.7 kB / 469.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.0965, allocations: 0.7723 MB / 470.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.844e-05/0.09653, allocations: 0 / 470.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.162e-05/0.09655, allocations: 0 / 470.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001358/0.0967, allocations: 15.92 kB / 470.6 MB, free: 13 MB / 350.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.0004795/0.09719, allocations: 50.62 kB / 470.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.361e-05/0.09725, allocations: 15.94 kB / 470.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.735e-05/0.09728, allocations: 0 / 470.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.401e-05/0.0973, allocations: 4 kB / 470.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.014e-05/0.09737, allocations: 7.984 kB / 470.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.572e-06/0.09739, allocations: 0 / 470.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.0975, allocations: 47.97 kB / 470.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.825e-06/0.09751, allocations: 3.984 kB / 470.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.569e-05/0.09754, allocations: 0 / 470.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.09765, allocations: 55.81 kB / 470.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.09766, allocations: 3.984 kB / 470.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.09766, allocations: 0 / 470.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.09767, allocations: 4 kB / 470.8 MB, free: 12.81 MB / 350.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.0003064/0.09798, allocations: 357.2 kB / 471.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.09802, allocations: 12.03 kB / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.592e-05/0.09805, allocations: 30.75 kB / 471.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.957e-05/0.09808, allocations: 0.9375 kB / 471.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.688e-05/0.09818, allocations: 160.4 kB / 471.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/0.0982, allocations: 384 / 471.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.763e-06/0.09821, allocations: 4.375 kB / 471.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.316e-05/0.09827, allocations: 30.27 kB / 471.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.09829, allocations: 3.938 kB / 471.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.45e-06/0.0983, allocations: 0 / 471.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-06/0.09831, allocations: 4 kB / 471.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.595e-05/0.09833, allocations: 7.922 kB / 471.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001108/0.09844, allocations: 145.7 kB / 471.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.063e-05/0.09848, allocations: 18.61 kB / 471.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.206e-05/0.0985, allocations: 4.859 kB / 471.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.286e-06/0.09851, allocations: 4 kB / 471.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/0.09855, allocations: 64.31 kB / 471.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.09855, allocations: 0 / 471.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001378/0.0987, allocations: 71.28 kB / 471.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.09874, allocations: 77.11 kB / 471.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.09888, allocations: 89.86 kB / 471.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.078e-05/0.0989, allocations: 33.62 kB / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.539e-05/0.09893, allocations: 88.39 kB / 472 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.188e-05/0.09894, allocations: 3.906 kB / 472 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.372e-05/0.09897, allocations: 13.72 kB / 472 MB, free: 11.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.09911, allocations: 310.8 kB / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.785e-06/0.09912, allocations: 4 kB / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.37e-06/0.09913, allocations: 0 / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.344e-05/0.09918, allocations: 60.27 kB / 472.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.09918, allocations: 0 / 472.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.545e-05/0.09926, allocations: 75.39 kB / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.09929, allocations: 33.64 kB / 472.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.166e-06/0.09929, allocations: 0 / 472.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.09931, allocations: 0 / 472.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.813e-06/0.09932, allocations: 8 kB / 472.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.237e-06/0.09933, allocations: 0 / 472.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.482e-05/0.09935, allocations: 288 / 472.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.488e-06/0.09936, allocations: 0 / 472.5 MB, free: 10.84 MB / 350.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 7.149e-05/0.09943, allocations: 139.6 kB / 472.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.077e-06/0.09945, allocations: 7.938 kB / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.077e-06/0.09946, allocations: 7.078 kB / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.09947, allocations: 0 / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.09948, allocations: 3.938 kB / 472.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.804e-06/0.09948, allocations: 0 / 472.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.662e-05/0.09958, allocations: 161.6 kB / 472.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.09959, allocations: 0 / 472.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.09959, allocations: 0 / 472.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.0996, allocations: 3.938 kB / 472.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-06/0.09961, allocations: 0 / 472.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.09962, allocations: 4 kB / 472.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.09962, allocations: 4 kB / 472.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001127/0.09974, allocations: 94.75 kB / 472.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.505e-05/0.09977, allocations: 81.11 kB / 473 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.09979, allocations: 3.938 kB / 473 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.085e-05/0.0998, allocations: 0 / 473 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.215e-06/0.09982, allocations: 0 / 473 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.09983, allocations: 32 / 473 MB, free: 10.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.073e-05/0.09986, allocations: 87.22 kB / 473.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09987, allocations: 0 / 473.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002203/0.1001, allocations: 19.98 kB / 473.1 MB, free: 10.13 MB / 350.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.0005457/0.1006, allocations: 0.7226 MB / 473.8 MB, free: 9.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.64e-05/0.1007, allocations: 59.41 kB / 473.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1008, allocations: 0 / 473.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.898e-05/0.1008, allocations: 59.39 kB / 473.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.1009, allocations: 4 kB / 473.9 MB, free: 9.262 MB / 350.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002916/0.1012, allocations: 122.5 kB / 474.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002073/0.1014, allocations: 0.6729 MB / 474.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.053e-06/0.1014, allocations: 0 / 474.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.747e-05/0.1015, allocations: 7.438 kB / 474.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1015, allocations: 4.125 kB / 474.7 MB, free: 8.391 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.109/1.211, allocations: 1.459 MB / 476.2 MB, free: 6.988 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.227/9.438, allocations: 1.031 kB / 476.2 MB, free: 6.988 MB / 350.1 MB (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) 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) Reference file matches