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.00117/0.00117, allocations: 116.1 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2207/0.2207, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002815/0.002815, allocations: 75.88 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3418, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001446/0.3432, allocations: 477.7 kB / 0.5309 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.3444, allocations: 0.7944 MB / 0.5317 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.876e-05/0.3444, allocations: 1.25 kB / 0.5317 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.737e-05/0.3445, allocations: 3.938 kB / 0.5317 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.3447, allocations: 1.312 kB / 0.5317 GB, free: 12.42 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.000537/0.3452, allocations: 61.38 kB / 0.5318 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.053e-05/0.3453, allocations: 6.312 kB / 0.5318 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.771e-05/0.3453, allocations: 5.547 kB / 0.5318 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.861e-05/0.3453, allocations: 1.594 kB / 0.5318 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.04e-05/0.3454, allocations: 7.016 kB / 0.5318 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.295e-06/0.3454, allocations: 0 / 0.5318 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.3456, allocations: 56.7 kB / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-06/0.3456, allocations: 0 / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.065e-05/0.3456, allocations: 9.375 kB / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001304/0.3458, allocations: 46.36 kB / 0.5319 GB, free: 12.31 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3458, allocations: 1.938 kB / 0.5319 GB, free: 12.31 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.3458, allocations: 4 kB / 0.5319 GB, free: 12.31 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.3458, allocations: 0 / 0.5319 GB, free: 12.31 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.0003756/0.3462, allocations: 352.1 kB / 0.5323 GB, free: 11.92 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.3462, allocations: 10.88 kB / 0.5323 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.194e-05/0.3463, allocations: 34.73 kB / 0.5323 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.317e-05/0.3463, allocations: 0.9375 kB / 0.5323 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.3464, allocations: 166.2 kB / 0.5325 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.867e-06/0.3465, allocations: 384 / 0.5325 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.148e-05/0.3465, allocations: 2.094 kB / 0.5325 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.318e-05/0.3466, allocations: 32.08 kB / 0.5325 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.3466, allocations: 3.938 kB / 0.5325 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.565e-06/0.3466, allocations: 0 / 0.5325 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3466, allocations: 1.844 kB / 0.5325 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.884e-05/0.3466, allocations: 7.922 kB / 0.5325 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000141/0.3468, allocations: 143.5 kB / 0.5326 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.924e-05/0.3468, allocations: 24.3 kB / 0.5327 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.59e-05/0.3468, allocations: 10.64 kB / 0.5327 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-06/0.3468, allocations: 0 / 0.5327 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.687e-05/0.3469, allocations: 58.02 kB / 0.5327 GB, free: 11.33 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3469, allocations: 0 / 0.5327 GB, free: 11.33 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001758/0.3471, allocations: 72.27 kB / 0.5328 GB, free: 11.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.3471, allocations: 77.11 kB / 0.5329 GB, free: 11.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.869e-05/0.3472, allocations: 99.67 kB / 0.533 GB, free: 11.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.3472, allocations: 29.95 kB / 0.533 GB, free: 11.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.67e-05/0.3473, allocations: 82.27 kB / 0.5331 GB, free: 10.94 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.658e-05/0.3473, allocations: 7.969 kB / 0.5331 GB, free: 10.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.896e-05/0.3473, allocations: 12 kB / 0.5331 GB, free: 10.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3474, allocations: 310.8 kB / 0.5334 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.168e-05/0.3475, allocations: 2.188 kB / 0.5334 GB, free: 10.6 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.091e-06/0.3475, allocations: 0 / 0.5334 GB, free: 10.6 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.581e-05/0.3475, allocations: 64.73 kB / 0.5335 GB, free: 10.53 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3475, allocations: 4 kB / 0.5335 GB, free: 10.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.494e-05/0.3476, allocations: 67.08 kB / 0.5335 GB, free: 10.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/0.3477, allocations: 34.73 kB / 0.5336 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.778e-06/0.3477, allocations: 0 / 0.5336 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.3477, allocations: 1.25 kB / 0.5336 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-07/0.3477, allocations: 0 / 0.5336 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.3477, allocations: 0 / 0.5336 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.509e-05/0.3477, allocations: 1.312 kB / 0.5336 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-06/0.3477, allocations: 1.188 kB / 0.5336 GB, free: 10.42 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 0.0001181/0.3479, allocations: 144.9 kB / 0.5337 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.024e-05/0.3479, allocations: 5.438 kB / 0.5337 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.736e-06/0.3479, allocations: 3.125 kB / 0.5337 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.3479, allocations: 1.969 kB / 0.5337 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3479, allocations: 0 / 0.5337 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.3479, allocations: 0 / 0.5337 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001056/0.348, allocations: 148.5 kB / 0.5338 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.348, allocations: 3.984 kB / 0.5339 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-07/0.348, allocations: 0 / 0.5339 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.3481, allocations: 3.938 kB / 0.5339 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.3481, allocations: 5.969 kB / 0.5339 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3481, allocations: 3.938 kB / 0.5339 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3481, allocations: 0 / 0.5339 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.734e-05/0.3482, allocations: 96.08 kB / 0.534 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.162e-05/0.3482, allocations: 85 kB / 0.534 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/0.3482, allocations: 3.938 kB / 0.534 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.088e-05/0.3483, allocations: 3.219 kB / 0.534 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.197e-05/0.3483, allocations: 8.016 kB / 0.5341 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-06/0.3483, allocations: 0 / 0.5341 GB, free: 9.832 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.43e-05/0.3483, allocations: 75.28 kB / 0.5341 GB, free: 9.758 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3483, allocations: 0 / 0.5341 GB, free: 9.758 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002195/0.3486, allocations: 22.97 kB / 0.5341 GB, free: 9.75 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.00062/0.3492, allocations: 0.7183 MB / 0.5348 GB, free: 9.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.513e-05/0.3493, allocations: 58.91 kB / 0.5349 GB, free: 9.004 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3493, allocations: 3.562 kB / 0.5349 GB, free: 9.004 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.006e-05/0.3493, allocations: 51.41 kB / 0.535 GB, free: 8.941 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001335/0.3495, allocations: 7.484 kB / 0.535 GB, free: 8.938 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002957/0.3498, allocations: 109.1 kB / 0.5351 GB, free: 8.805 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.35, allocations: 0.6729 MB / 0.5357 GB, free: 8.105 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.146e-06/0.3501, allocations: 0 / 0.5357 GB, free: 8.105 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.061e-05/0.3501, allocations: 19.38 kB / 0.5357 GB, free: 8.09 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3501, allocations: 0 / 0.5357 GB, free: 8.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01824/0.3683, allocations: 1.485 MB / 0.5372 GB, free: 7.211 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.666/8.034, allocations: 6.672 kB / 0.5372 GB, free: 7.211 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