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.001332/0.001332, allocations: 113.4 kB / 17.78 MB, free: 5.262 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.001165/0.001165, allocations: 188.9 kB / 18.71 MB, free: 4.344 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.395/1.395, allocations: 222.9 MB / 242.4 MB, free: 15.16 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.2122/0.2122, allocations: 44.18 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001559/0.00156, allocations: 71.83 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3912/0.3927, allocations: 60.82 MB / 0.5184 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001586/0.3944, allocations: 490.1 kB / 0.5189 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.3955, allocations: 0.7817 MB / 0.5196 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.572e-05/0.3955, allocations: 0 / 0.5196 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.596e-05/0.3956, allocations: 0 / 0.5196 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001762/0.3958, allocations: 11.08 kB / 0.5196 GB, free: 2.41 MB / 382.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.0006029/0.3964, allocations: 50.84 kB / 0.5197 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.135e-05/0.3964, allocations: 7.625 kB / 0.5197 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.492e-05/0.3965, allocations: 12.62 kB / 0.5197 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.721e-05/0.3965, allocations: 2.219 kB / 0.5197 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.104e-05/0.3966, allocations: 3.531 kB / 0.5197 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.246e-06/0.3966, allocations: 0 / 0.5197 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.3967, allocations: 58.06 kB / 0.5198 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.014e-05/0.3968, allocations: 5.062 kB / 0.5198 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.022e-05/0.3968, allocations: 1.25 kB / 0.5198 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001271/0.3969, allocations: 46.59 kB / 0.5198 GB, free: 2.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3969, allocations: 1.375 kB / 0.5198 GB, free: 2.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3969, allocations: 0 / 0.5198 GB, free: 2.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.3969, allocations: 0 / 0.5198 GB, free: 2.34 MB / 382.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.0002822/0.3972, allocations: 359.3 kB / 0.5202 GB, free: 1.945 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.3973, allocations: 10.16 kB / 0.5202 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.33e-05/0.3973, allocations: 34.75 kB / 0.5202 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.486e-05/0.3973, allocations: 2.375 kB / 0.5202 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.899e-05/0.3974, allocations: 164.3 kB / 0.5204 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.3974, allocations: 1.531 kB / 0.5204 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.884e-06/0.3975, allocations: 5.688 kB / 0.5204 GB, free: 1.699 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.847e-05/0.3975, allocations: 29.67 kB / 0.5204 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.3975, allocations: 7.938 kB / 0.5204 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.3976, allocations: 0.5625 kB / 0.5204 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.3976, allocations: 0 / 0.5204 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.733e-05/0.3976, allocations: 3.156 kB / 0.5204 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001067/0.3977, allocations: 148.7 kB / 0.5206 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.696e-05/0.3977, allocations: 20.44 kB / 0.5206 GB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.163e-05/0.3978, allocations: 10.08 kB / 0.5206 GB, free: 1.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.125e-06/0.3978, allocations: 5.672 kB / 0.5206 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.3978, allocations: 62 kB / 0.5206 GB, free: 1.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.3978, allocations: 0 / 0.5206 GB, free: 1.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001572/0.398, allocations: 67 kB / 0.5207 GB, free: 1.285 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.238e-05/0.398, allocations: 81.77 kB / 0.5208 GB, free: 1.188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.723e-05/0.3981, allocations: 92.03 kB / 0.5209 GB, free: 1.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.833e-06/0.3981, allocations: 27.11 kB / 0.5209 GB, free: 1.059 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.256e-05/0.3981, allocations: 81 kB / 0.521 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.348e-05/0.3981, allocations: 6.25 kB / 0.521 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.465e-05/0.3982, allocations: 13.42 kB / 0.521 GB, free: 0.957 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.751e-05/0.3982, allocations: 313.2 kB / 0.5213 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.036e-05/0.3982, allocations: 3.938 kB / 0.5213 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.322e-06/0.3982, allocations: 5.531 kB / 0.5213 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.919e-05/0.3983, allocations: 59.92 kB / 0.5214 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3983, allocations: 1.406 kB / 0.5214 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.537e-05/0.3983, allocations: 68.78 kB / 0.5214 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.878e-05/0.3984, allocations: 35.45 kB / 0.5215 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.3984, allocations: 1.812 kB / 0.5215 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.3984, allocations: 0 / 0.5215 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.783e-06/0.3984, allocations: 0.75 kB / 0.5215 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.3984, allocations: 0 / 0.5215 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.64e-05/0.3984, allocations: 1.812 kB / 0.5215 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.894e-06/0.3984, allocations: 0 / 0.5215 GB, free: 472 kB / 382.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 5.594e-05/0.3985, allocations: 143.8 kB / 0.5216 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.043e-05/0.3985, allocations: 9.625 kB / 0.5216 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.036e-05/0.3985, allocations: 11.81 kB / 0.5216 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.3985, allocations: 0 / 0.5216 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3986, allocations: 0 / 0.5216 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.3986, allocations: 2.219 kB / 0.5216 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.826e-05/0.3986, allocations: 149.3 kB / 0.5218 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3986, allocations: 0 / 0.5218 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.262e-06/0.3986, allocations: 0.7031 kB / 0.5218 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.3986, allocations: 5.656 kB / 0.5218 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.691e-06/0.3987, allocations: 0 / 0.5218 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3987, allocations: 4.75 kB / 0.5218 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3987, allocations: 1.438 kB / 0.5218 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.675e-05/0.3988, allocations: 89.2 kB / 0.5219 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.631e-05/0.3988, allocations: 77.86 kB / 0.5219 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.327e-05/0.3988, allocations: 4.969 kB / 0.5219 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.075e-05/0.3988, allocations: 1.031 kB / 0.5219 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.333e-05/0.3989, allocations: 1.75 kB / 0.5219 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-06/0.3989, allocations: 13.03 kB / 0.522 GB, free: 15.88 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.35e-05/0.3989, allocations: 85.05 kB / 0.522 GB, free: 15.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3989, allocations: 0 / 0.522 GB, free: 15.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002401/0.3992, allocations: 18.59 kB / 0.5221 GB, free: 15.8 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.0006216/0.3998, allocations: 0.7124 MB / 0.5228 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001204/0.3999, allocations: 67.52 kB / 0.5228 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3999, allocations: 0 / 0.5228 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.397e-05/0.4, allocations: 59.39 kB / 0.5229 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.4001, allocations: 2.953 kB / 0.5229 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000317/0.4004, allocations: 119 kB / 0.523 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002405/0.4007, allocations: 0.6766 MB / 0.5237 GB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.045e-06/0.4007, allocations: 0 / 0.5237 GB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.063e-05/0.4007, allocations: 9.578 kB / 0.5237 GB, free: 14.15 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4007, allocations: 0 / 0.5237 GB, free: 14.15 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02939/0.4301, allocations: 1.484 MB / 0.5251 GB, free: 13.71 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.814/8.244, allocations: 7.156 kB / 0.5251 GB, free: 13.7 MB / 398.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