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.001281/0.001281, allocations: 118.3 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.001412/0.001412, allocations: 201.2 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.427/1.427, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2276/0.2276, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001766, allocations: 75.88 kB / 480.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3179, allocations: 62.44 MB / 0.5305 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001449/0.3194, allocations: 481.4 kB / 0.531 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.3205, allocations: 0.7914 MB / 0.5317 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.092e-05/0.3205, allocations: 0 / 0.5317 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.223e-05/0.3205, allocations: 0 / 0.5317 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001584/0.3207, allocations: 11.23 kB / 0.5317 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.0005545/0.3213, allocations: 47.97 kB / 0.5318 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.844e-05/0.3214, allocations: 11.91 kB / 0.5318 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.825e-05/0.3214, allocations: 0 / 0.5318 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.451e-05/0.3214, allocations: 4 kB / 0.5318 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.427e-05/0.3215, allocations: 11 kB / 0.5318 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.365e-06/0.3215, allocations: 0 / 0.5318 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.3217, allocations: 56.98 kB / 0.5319 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.124e-06/0.3217, allocations: 1.25 kB / 0.5319 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.382e-05/0.3217, allocations: 5.344 kB / 0.5319 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.3218, allocations: 45.89 kB / 0.5319 GB, free: 12.29 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3219, allocations: 0 / 0.5319 GB, free: 12.29 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3219, allocations: 0 / 0.5319 GB, free: 12.29 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.3219, allocations: 1.094 kB / 0.5319 GB, free: 12.29 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.0003209/0.3222, allocations: 356.4 kB / 0.5323 GB, free: 11.89 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.3222, allocations: 9.938 kB / 0.5323 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.697e-05/0.3223, allocations: 30.75 kB / 0.5323 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.125e-05/0.3223, allocations: 2.219 kB / 0.5323 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.3224, allocations: 173.6 kB / 0.5325 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.297e-06/0.3224, allocations: 384 / 0.5325 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.837e-06/0.3225, allocations: 5.703 kB / 0.5325 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.361e-05/0.3225, allocations: 28.23 kB / 0.5325 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.525e-06/0.3226, allocations: 3.938 kB / 0.5325 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-06/0.3226, allocations: 5.219 kB / 0.5325 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-06/0.3226, allocations: 0 / 0.5325 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.551e-05/0.3226, allocations: 1.281 kB / 0.5325 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001191/0.3227, allocations: 150.9 kB / 0.5326 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.433e-05/0.3228, allocations: 29.27 kB / 0.5327 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.401e-05/0.3228, allocations: 5.984 kB / 0.5327 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.432e-06/0.3228, allocations: 0 / 0.5327 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.395e-05/0.3229, allocations: 65.45 kB / 0.5327 GB, free: 11.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3229, allocations: 1.156 kB / 0.5327 GB, free: 11.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001501/0.323, allocations: 67.33 kB / 0.5328 GB, free: 11.22 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.3231, allocations: 78.2 kB / 0.5329 GB, free: 11.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.97e-05/0.3231, allocations: 94.95 kB / 0.533 GB, free: 11.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.3232, allocations: 26.95 kB / 0.533 GB, free: 10.99 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.351e-05/0.3232, allocations: 84.12 kB / 0.5331 GB, free: 10.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.262e-05/0.3232, allocations: 4.188 kB / 0.5331 GB, free: 10.9 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.806e-05/0.3232, allocations: 16.94 kB / 0.5331 GB, free: 10.88 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.3234, allocations: 314.8 kB / 0.5334 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.023e-05/0.3234, allocations: 1.156 kB / 0.5334 GB, free: 10.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.492e-06/0.3234, allocations: 1.094 kB / 0.5334 GB, free: 10.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.394e-05/0.3234, allocations: 63.64 kB / 0.5335 GB, free: 10.49 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3234, allocations: 1 kB / 0.5335 GB, free: 10.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.877e-05/0.3235, allocations: 58.19 kB / 0.5335 GB, free: 10.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/0.3236, allocations: 43.25 kB / 0.5336 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.3236, allocations: 1.094 kB / 0.5336 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.488e-06/0.3236, allocations: 0 / 0.5336 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.744e-06/0.3236, allocations: 1.281 kB / 0.5336 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.3236, allocations: 3.938 kB / 0.5336 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.531e-05/0.3236, allocations: 0 / 0.5336 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.561e-06/0.3236, allocations: 1.156 kB / 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 7.527e-05/0.3237, allocations: 137.8 kB / 0.5337 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.034e-05/0.3237, allocations: 5.188 kB / 0.5337 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.215e-06/0.3237, allocations: 8.312 kB / 0.5337 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.3238, allocations: 3.984 kB / 0.5337 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3238, allocations: 0 / 0.5337 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-06/0.3238, allocations: 1.156 kB / 0.5337 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.127e-05/0.3239, allocations: 142.7 kB / 0.5339 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3239, allocations: 1.312 kB / 0.5339 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-07/0.3239, allocations: 0 / 0.5339 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.3239, allocations: 3.938 kB / 0.5339 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.3239, allocations: 1.375 kB / 0.5339 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3239, allocations: 7.922 kB / 0.5339 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3239, allocations: 5.625 kB / 0.5339 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.927e-05/0.324, allocations: 85.84 kB / 0.534 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.338e-05/0.3241, allocations: 85 kB / 0.534 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.3241, allocations: 9.234 kB / 0.534 GB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.271e-05/0.3241, allocations: 5.25 kB / 0.534 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.019e-05/0.3241, allocations: 3.938 kB / 0.5341 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.277e-06/0.3241, allocations: 1.469 kB / 0.5341 GB, free: 9.805 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.129e-05/0.3242, allocations: 80.47 kB / 0.5341 GB, free: 9.727 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3242, allocations: 0 / 0.5341 GB, free: 9.727 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000231/0.3244, allocations: 21.19 kB / 0.5341 GB, free: 9.719 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.0006228/0.325, allocations: 0.7195 MB / 0.5349 GB, free: 9.039 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001036/0.3251, allocations: 60.09 kB / 0.5349 GB, free: 8.973 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3252, allocations: 8 kB / 0.5349 GB, free: 8.965 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.158e-05/0.3252, allocations: 56.16 kB / 0.535 GB, free: 8.902 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001474/0.3253, allocations: 1.719 kB / 0.535 GB, free: 8.902 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002848/0.3256, allocations: 111.3 kB / 0.5351 GB, free: 8.766 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.3259, allocations: 0.6709 MB / 0.5357 GB, free: 8.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.189e-05/0.3259, allocations: 3.984 kB / 0.5357 GB, free: 8.066 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.739e-05/0.3259, allocations: 7.438 kB / 0.5357 GB, free: 8.059 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.326, allocations: 1.844 kB / 0.5357 GB, free: 8.059 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02336/0.3493, allocations: 1.482 MB / 0.5372 GB, free: 7.176 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.996/8.346, allocations: 3.109 kB / 0.5372 GB, free: 7.176 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