Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001291/0.001291, allocations: 119 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001392/0.001392, allocations: 204.7 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2299/0.2299, allocations: 46.12 MB / 344.3 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002212/0.002212, allocations: 83.84 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2949, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001612/0.2965, allocations: 490.1 kB / 0.5311 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001286/0.2978, allocations: 0.7836 MB / 0.5318 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.517e-05/0.2979, allocations: 0 / 0.5318 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.276e-05/0.2979, allocations: 0 / 0.5318 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000179/0.2981, allocations: 9.875 kB / 0.5318 GB, free: 12.38 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0006286/0.2987, allocations: 57.67 kB / 0.5319 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.509e-05/0.2988, allocations: 2.75 kB / 0.5319 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.874e-05/0.2988, allocations: 3.984 kB / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.925e-05/0.2989, allocations: 5.547 kB / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.744e-05/0.299, allocations: 3.125 kB / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.176e-06/0.299, allocations: 0 / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.2991, allocations: 57.45 kB / 0.532 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.824e-06/0.2991, allocations: 0 / 0.532 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.049e-05/0.2992, allocations: 5.188 kB / 0.532 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.2993, allocations: 47.17 kB / 0.532 GB, free: 12.29 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2993, allocations: 4 kB / 0.532 GB, free: 12.28 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2993, allocations: 0 / 0.532 GB, free: 12.28 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.2993, allocations: 0 / 0.532 GB, free: 12.28 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.0003767/0.2997, allocations: 361 kB / 0.5324 GB, free: 11.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.2998, allocations: 9.719 kB / 0.5324 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.399e-05/0.2998, allocations: 31.81 kB / 0.5324 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.465e-05/0.2998, allocations: 4.922 kB / 0.5324 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.3, allocations: 161.6 kB / 0.5326 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.3, allocations: 1.812 kB / 0.5326 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-06/0.3, allocations: 4.375 kB / 0.5326 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.992e-05/0.3001, allocations: 29.23 kB / 0.5326 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.3001, allocations: 7.938 kB / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.803e-06/0.3001, allocations: 0 / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3001, allocations: 1.812 kB / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.386e-05/0.3001, allocations: 0 / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001541/0.3003, allocations: 151.4 kB / 0.5327 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.72e-05/0.3003, allocations: 24.95 kB / 0.5328 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.723e-05/0.3004, allocations: 9.891 kB / 0.5328 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.647e-06/0.3004, allocations: 0 / 0.5328 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.559e-05/0.3004, allocations: 61.69 kB / 0.5328 GB, free: 11.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.3005, allocations: 3.938 kB / 0.5328 GB, free: 11.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001669/0.3006, allocations: 76.98 kB / 0.5329 GB, free: 11.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.3007, allocations: 77.11 kB / 0.533 GB, free: 11.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.534e-05/0.3008, allocations: 95.48 kB / 0.5331 GB, free: 11.01 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.3008, allocations: 27.17 kB / 0.5331 GB, free: 10.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.527e-05/0.3008, allocations: 80.14 kB / 0.5332 GB, free: 10.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.232e-05/0.3008, allocations: 0 / 0.5332 GB, free: 10.9 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/0.3009, allocations: 17.11 kB / 0.5332 GB, free: 10.88 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.301, allocations: 314.8 kB / 0.5335 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.075e-05/0.301, allocations: 1.75 kB / 0.5335 GB, free: 10.56 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.02e-06/0.301, allocations: 0 / 0.5335 GB, free: 10.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.012e-05/0.3011, allocations: 64.23 kB / 0.5336 GB, free: 10.49 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.3011, allocations: 0 / 0.5336 GB, free: 10.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.289e-05/0.3012, allocations: 68.42 kB / 0.5336 GB, free: 10.42 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.268e-05/0.3012, allocations: 34.98 kB / 0.5337 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.3012, allocations: 0 / 0.5337 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.3012, allocations: 0 / 0.5337 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.92e-07/0.3013, allocations: 0 / 0.5337 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.3013, allocations: 1.844 kB / 0.5337 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.435e-05/0.3013, allocations: 0 / 0.5337 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.3013, allocations: 0 / 0.5337 GB, free: 10.38 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.598e-05/0.3014, allocations: 143.1 kB / 0.5338 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.587e-05/0.3014, allocations: 11.91 kB / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.384e-06/0.3014, allocations: 4.938 kB / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.3014, allocations: 0 / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3014, allocations: 0 / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.3014, allocations: 0 / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001047/0.3016, allocations: 143.5 kB / 0.534 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3016, allocations: 1.812 kB / 0.534 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.605e-06/0.3016, allocations: 3.984 kB / 0.534 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3016, allocations: 7.938 kB / 0.534 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.3016, allocations: 1.781 kB / 0.534 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3016, allocations: 3.938 kB / 0.534 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3016, allocations: 0 / 0.534 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001031/0.3017, allocations: 91.28 kB / 0.5341 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.489e-05/0.3018, allocations: 88.98 kB / 0.5341 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.3018, allocations: 5.75 kB / 0.5342 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.393e-05/0.3018, allocations: 8.031 kB / 0.5342 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.396e-05/0.3018, allocations: 4 kB / 0.5342 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-06/0.3018, allocations: 1.781 kB / 0.5342 GB, free: 9.793 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.887e-05/0.3019, allocations: 75.28 kB / 0.5342 GB, free: 9.719 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3019, allocations: 1.812 kB / 0.5342 GB, free: 9.719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002197/0.3021, allocations: 21.44 kB / 0.5343 GB, free: 9.711 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.0008581/0.303, allocations: 0.7142 MB / 0.535 GB, free: 9.031 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001256/0.3031, allocations: 65.66 kB / 0.535 GB, free: 8.961 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3031, allocations: 0 / 0.535 GB, free: 8.961 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.085e-05/0.3032, allocations: 55.53 kB / 0.5351 GB, free: 8.898 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001424/0.3033, allocations: 1.594 kB / 0.5351 GB, free: 8.898 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003807/0.3037, allocations: 114.7 kB / 0.5352 GB, free: 8.758 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.3041, allocations: 0.6761 MB / 0.5358 GB, free: 8.059 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.596e-06/0.3041, allocations: 4.125 kB / 0.5358 GB, free: 8.055 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.999e-05/0.3041, allocations: 7.438 kB / 0.5359 GB, free: 8.047 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3041, allocations: 0 / 0.5359 GB, free: 8.047 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03817/0.3423, allocations: 1.481 MB / 0.5373 GB, free: 7.172 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.277/8.62, allocations: 7.016 kB / 0.5373 GB, free: 7.168 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches