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.001522/0.001522, allocations: 117.6 kB / 17.79 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.001284/0.001284, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2233/0.2233, allocations: 46.13 MB / 344.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0024/0.0024, allocations: 83.86 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3248, allocations: 62.43 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001531/0.3264, allocations: 497.8 kB / 0.531 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.3277, allocations: 0.7785 MB / 0.5318 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.636e-05/0.3277, allocations: 1.438 kB / 0.5318 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.525e-05/0.3277, allocations: 3.938 kB / 0.5318 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001623/0.3279, allocations: 1.406 kB / 0.5318 GB, free: 12.39 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.0006351/0.3285, allocations: 61.16 kB / 0.5319 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.255e-05/0.3286, allocations: 9.016 kB / 0.5319 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.595e-05/0.3286, allocations: 2 kB / 0.5319 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.183e-05/0.3287, allocations: 5.891 kB / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.997e-05/0.3288, allocations: 2.062 kB / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.624e-06/0.3288, allocations: 0 / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.3289, allocations: 58.45 kB / 0.5319 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.464e-06/0.3289, allocations: 7.875 kB / 0.5319 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.92e-05/0.329, allocations: 3.938 kB / 0.5319 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001231/0.3291, allocations: 47.05 kB / 0.532 GB, free: 12.28 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.3291, allocations: 0 / 0.532 GB, free: 12.28 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.978e-06/0.3291, allocations: 5.359 kB / 0.532 GB, free: 12.28 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.3291, allocations: 4 kB / 0.532 GB, free: 12.27 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.0003824/0.3295, allocations: 352.6 kB / 0.5323 GB, free: 11.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.3296, allocations: 14.17 kB / 0.5323 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.667e-05/0.3296, allocations: 30.75 kB / 0.5324 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.206e-05/0.3296, allocations: 0.9375 kB / 0.5324 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.3298, allocations: 161.6 kB / 0.5325 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.3298, allocations: 1.438 kB / 0.5325 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.051e-06/0.3298, allocations: 1.844 kB / 0.5325 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.574e-05/0.3299, allocations: 31.3 kB / 0.5326 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.3299, allocations: 9.516 kB / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.951e-06/0.3299, allocations: 0 / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.3299, allocations: 0 / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.258e-05/0.3299, allocations: 9.484 kB / 0.5326 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001416/0.3301, allocations: 151 kB / 0.5327 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.779e-05/0.3301, allocations: 17.8 kB / 0.5327 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.104e-05/0.3302, allocations: 4.859 kB / 0.5327 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.102e-06/0.3302, allocations: 5.25 kB / 0.5328 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.88e-05/0.3302, allocations: 57.55 kB / 0.5328 GB, free: 11.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3302, allocations: 0 / 0.5328 GB, free: 11.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001651/0.3304, allocations: 79.16 kB / 0.5329 GB, free: 11.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.339e-05/0.3305, allocations: 78.11 kB / 0.533 GB, free: 11.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.572e-05/0.3306, allocations: 91.05 kB / 0.533 GB, free: 11.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.3306, allocations: 26.86 kB / 0.5331 GB, free: 10.99 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.445e-05/0.3306, allocations: 88.38 kB / 0.5332 GB, free: 10.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.248e-05/0.3306, allocations: 1.188 kB / 0.5332 GB, free: 10.9 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.868e-05/0.3307, allocations: 12.22 kB / 0.5332 GB, free: 10.88 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3308, allocations: 314.8 kB / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.468e-06/0.3308, allocations: 1.5 kB / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.521e-06/0.3308, allocations: 1.812 kB / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.984e-05/0.3309, allocations: 58.45 kB / 0.5335 GB, free: 10.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3309, allocations: 1.688 kB / 0.5335 GB, free: 10.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.742e-05/0.331, allocations: 73.58 kB / 0.5336 GB, free: 10.42 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.254e-05/0.331, allocations: 35.95 kB / 0.5336 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.3311, allocations: 0 / 0.5336 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.3311, allocations: 1.5 kB / 0.5336 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.3311, allocations: 0 / 0.5336 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.3311, allocations: 0 / 0.5336 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.683e-05/0.3311, allocations: 9.406 kB / 0.5336 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.3311, allocations: 0 / 0.5336 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 9.644e-05/0.3312, allocations: 142.3 kB / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.221e-05/0.3312, allocations: 5 kB / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.125e-06/0.3312, allocations: 3.125 kB / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.3313, allocations: 1.094 kB / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3313, allocations: 0 / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.3313, allocations: 0 / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001218/0.3314, allocations: 148.2 kB / 0.5339 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.3314, allocations: 0 / 0.5339 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3314, allocations: 0 / 0.5339 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.3314, allocations: 5.594 kB / 0.5339 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.281e-06/0.3314, allocations: 3.938 kB / 0.5339 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3314, allocations: 4 kB / 0.5339 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3314, allocations: 1.406 kB / 0.5339 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001316/0.3316, allocations: 97.86 kB / 0.534 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.795e-05/0.3316, allocations: 86.25 kB / 0.5341 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.3317, allocations: 3.938 kB / 0.5341 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.002e-05/0.3317, allocations: 1.438 kB / 0.5341 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.799e-06/0.3317, allocations: 0 / 0.5341 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.3317, allocations: 5.562 kB / 0.5341 GB, free: 9.797 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.793e-05/0.3317, allocations: 76.81 kB / 0.5342 GB, free: 9.723 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3317, allocations: 0 / 0.5342 GB, free: 9.723 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002066/0.332, allocations: 21.11 kB / 0.5342 GB, free: 9.715 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.0007592/0.3327, allocations: 0.7236 MB / 0.5349 GB, free: 9.027 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.962e-05/0.3328, allocations: 62 kB / 0.535 GB, free: 8.961 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3328, allocations: 0 / 0.535 GB, free: 8.961 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.13e-05/0.3329, allocations: 58.55 kB / 0.535 GB, free: 8.895 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.333, allocations: 1.312 kB / 0.535 GB, free: 8.895 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002924/0.3333, allocations: 111.6 kB / 0.5352 GB, free: 8.758 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/0.3336, allocations: 0.674 MB / 0.5358 GB, free: 8.059 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.153e-06/0.3336, allocations: 1.344 kB / 0.5358 GB, free: 8.059 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.008e-05/0.3337, allocations: 8.562 kB / 0.5358 GB, free: 8.051 MB / 398.1 MB Notification: Performance of SimCode: time 2.365e-06/0.3337, allocations: 4.125 kB / 0.5358 GB, free: 8.047 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02374/0.3574, allocations: 1.488 MB / 0.5373 GB, free: 7.168 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8/8.358, allocations: 6.766 kB / 0.5373 GB, free: 7.164 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.csv","/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