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.001474/0.001474, allocations: 117.7 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001822/0.001823, allocations: 204.6 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.9 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.2134/0.2134, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 75.88 kB / 480.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.3481, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00187/0.3501, allocations: 489.2 kB / 0.5309 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.3516, allocations: 0.7871 MB / 0.5317 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.375e-05/0.3516, allocations: 0 / 0.5317 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.684e-05/0.3517, allocations: 0 / 0.5317 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002252/0.3519, allocations: 15.83 kB / 0.5317 GB, free: 12.44 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.0008447/0.3528, allocations: 51.42 kB / 0.5318 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.352e-05/0.3529, allocations: 3.812 kB / 0.5318 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.552e-05/0.3529, allocations: 4 kB / 0.5318 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.614e-05/0.353, allocations: 1.938 kB / 0.5318 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.3531, allocations: 9.906 kB / 0.5318 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.034e-05/0.3531, allocations: 1.688 kB / 0.5318 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001907/0.3533, allocations: 56.77 kB / 0.5319 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.057e-05/0.3533, allocations: 0 / 0.5319 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.015e-05/0.3533, allocations: 5.438 kB / 0.5319 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001731/0.3535, allocations: 46.06 kB / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3535, allocations: 5.344 kB / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3536, allocations: 0 / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.3536, allocations: 0 / 0.5319 GB, free: 12.34 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.0005158/0.3541, allocations: 349.8 kB / 0.5322 GB, free: 11.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/0.3541, allocations: 8.5 kB / 0.5323 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.135e-05/0.3542, allocations: 35.88 kB / 0.5323 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.595e-05/0.3542, allocations: 0.9375 kB / 0.5323 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.3544, allocations: 165.6 kB / 0.5324 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.3544, allocations: 1.656 kB / 0.5324 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.444e-05/0.3544, allocations: 8.375 kB / 0.5325 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.3545, allocations: 29.55 kB / 0.5325 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.3546, allocations: 3.938 kB / 0.5325 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.3546, allocations: 3.984 kB / 0.5325 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.3546, allocations: 1.062 kB / 0.5325 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.208e-05/0.3546, allocations: 5.125 kB / 0.5325 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000189/0.3548, allocations: 147.3 kB / 0.5326 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.151e-05/0.3549, allocations: 19.95 kB / 0.5327 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.112e-05/0.3549, allocations: 14.08 kB / 0.5327 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.3549, allocations: 1.406 kB / 0.5327 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.857e-05/0.355, allocations: 57.17 kB / 0.5327 GB, free: 11.35 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.342e-06/0.355, allocations: 0 / 0.5327 GB, free: 11.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002265/0.3552, allocations: 68.39 kB / 0.5328 GB, free: 11.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.619e-05/0.3553, allocations: 81.05 kB / 0.5329 GB, free: 11.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.3555, allocations: 103.5 kB / 0.533 GB, free: 11.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.3555, allocations: 27.3 kB / 0.533 GB, free: 11.04 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.052e-05/0.3555, allocations: 80.14 kB / 0.5331 GB, free: 10.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3e-05/0.3556, allocations: 6.156 kB / 0.5331 GB, free: 10.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.212e-05/0.3556, allocations: 11.88 kB / 0.5331 GB, free: 10.94 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.3558, allocations: 315.9 kB / 0.5334 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.605e-05/0.3558, allocations: 1.188 kB / 0.5334 GB, free: 10.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.307e-06/0.3559, allocations: 1.375 kB / 0.5334 GB, free: 10.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.429e-05/0.3559, allocations: 67.52 kB / 0.5335 GB, free: 10.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.356, allocations: 0 / 0.5335 GB, free: 10.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.63e-05/0.3561, allocations: 63.81 kB / 0.5335 GB, free: 10.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.713e-05/0.3561, allocations: 38.94 kB / 0.5336 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.3561, allocations: 4 kB / 0.5336 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.3561, allocations: 1.531 kB / 0.5336 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.233e-06/0.3562, allocations: 0 / 0.5336 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.3562, allocations: 0 / 0.5336 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.761e-05/0.3562, allocations: 1.438 kB / 0.5336 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.3562, allocations: 4.031 kB / 0.5336 GB, free: 10.43 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.0001124/0.3563, allocations: 134.5 kB / 0.5337 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.58e-05/0.3564, allocations: 9.406 kB / 0.5337 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.087e-05/0.3564, allocations: 3.125 kB / 0.5337 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.3564, allocations: 3.984 kB / 0.5337 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.3564, allocations: 1.562 kB / 0.5337 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.3564, allocations: 0 / 0.5337 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001129/0.3565, allocations: 147.5 kB / 0.5338 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3565, allocations: 0 / 0.5338 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.198e-06/0.3565, allocations: 0 / 0.5338 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.3565, allocations: 13.62 kB / 0.5339 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.3566, allocations: 0 / 0.5339 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3566, allocations: 0 / 0.5339 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.3566, allocations: 5.797 kB / 0.5339 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000107/0.3567, allocations: 89.84 kB / 0.534 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.963e-05/0.3567, allocations: 77.11 kB / 0.534 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.79e-05/0.3567, allocations: 9.672 kB / 0.534 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.154e-05/0.3568, allocations: 4.031 kB / 0.534 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.451e-05/0.3568, allocations: 1.781 kB / 0.534 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-06/0.3568, allocations: 0 / 0.534 GB, free: 9.859 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.289e-05/0.3568, allocations: 77.06 kB / 0.5341 GB, free: 9.785 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3568, allocations: 0 / 0.5341 GB, free: 9.785 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002306/0.3571, allocations: 22.34 kB / 0.5341 GB, free: 9.777 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.0006809/0.3578, allocations: 0.7244 MB / 0.5348 GB, free: 9.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.752e-05/0.3579, allocations: 64.06 kB / 0.5349 GB, free: 9.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3579, allocations: 2.875 kB / 0.5349 GB, free: 9.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.383e-05/0.3579, allocations: 53.38 kB / 0.535 GB, free: 8.957 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.3581, allocations: 2.062 kB / 0.535 GB, free: 8.957 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003342/0.3584, allocations: 113.2 kB / 0.5351 GB, free: 8.82 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002539/0.3587, allocations: 0.669 MB / 0.5357 GB, free: 8.125 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.204e-05/0.3587, allocations: 11.11 kB / 0.5357 GB, free: 8.117 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.293e-05/0.3587, allocations: 7.438 kB / 0.5357 GB, free: 8.109 MB / 398.1 MB Notification: Performance of SimCode: time 1.774e-06/0.3587, allocations: 0 / 0.5357 GB, free: 8.109 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02143/0.3802, allocations: 1.49 MB / 0.5372 GB, free: 7.223 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.746/8.126, allocations: 6.609 kB / 0.5372 GB, free: 7.223 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