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.001353/0.001353, allocations: 117.7 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001483/0.001483, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2073/0.2073, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 71.88 kB / 480.8 MB, free: 4.609 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3142, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00142/0.3157, allocations: 486.2 kB / 0.531 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.3168, allocations: 0.7863 MB / 0.5317 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.379e-05/0.3168, allocations: 0 / 0.5317 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.385e-05/0.3168, allocations: 7.938 kB / 0.5317 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001579/0.317, allocations: 6.5 kB / 0.5317 GB, free: 12.43 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.0005265/0.3175, allocations: 48.75 kB / 0.5318 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.526e-05/0.3176, allocations: 6.297 kB / 0.5318 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.857e-05/0.3176, allocations: 1.188 kB / 0.5318 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.585e-05/0.3177, allocations: 1.188 kB / 0.5318 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.069e-05/0.3177, allocations: 10.39 kB / 0.5318 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.945e-06/0.3178, allocations: 1.188 kB / 0.5318 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001363/0.3179, allocations: 56.05 kB / 0.5319 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.957e-06/0.3179, allocations: 1.25 kB / 0.5319 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.152e-05/0.318, allocations: 13.34 kB / 0.5319 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000113/0.3181, allocations: 46.75 kB / 0.5319 GB, free: 12.33 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3181, allocations: 7.984 kB / 0.5319 GB, free: 12.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3181, allocations: 0 / 0.5319 GB, free: 12.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.3181, allocations: 0 / 0.5319 GB, free: 12.32 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.0003259/0.3184, allocations: 348.9 kB / 0.5323 GB, free: 11.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.3185, allocations: 9.781 kB / 0.5323 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.75e-05/0.3185, allocations: 32.66 kB / 0.5323 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.129e-05/0.3185, allocations: 0.9375 kB / 0.5323 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.552e-05/0.3186, allocations: 160.4 kB / 0.5324 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.3187, allocations: 6.156 kB / 0.5325 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.861e-06/0.3187, allocations: 384 / 0.5325 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.252e-05/0.3188, allocations: 34.11 kB / 0.5325 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.3188, allocations: 3.938 kB / 0.5325 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.163e-06/0.3188, allocations: 0 / 0.5325 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.3188, allocations: 0 / 0.5325 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.829e-05/0.3188, allocations: 13.77 kB / 0.5325 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001202/0.3189, allocations: 143.6 kB / 0.5326 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.45e-05/0.319, allocations: 20.11 kB / 0.5327 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.335e-05/0.319, allocations: 6.484 kB / 0.5327 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.933e-06/0.319, allocations: 0 / 0.5327 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.188e-05/0.3191, allocations: 65.97 kB / 0.5327 GB, free: 11.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.3191, allocations: 0 / 0.5327 GB, free: 11.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001498/0.3192, allocations: 67.22 kB / 0.5328 GB, free: 11.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.745e-05/0.3193, allocations: 78.3 kB / 0.5329 GB, free: 11.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.553e-05/0.3194, allocations: 94.83 kB / 0.533 GB, free: 11.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.3194, allocations: 35.09 kB / 0.533 GB, free: 11.04 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.463e-05/0.3194, allocations: 84.12 kB / 0.5331 GB, free: 10.95 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.613e-05/0.3195, allocations: 7.75 kB / 0.5331 GB, free: 10.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.654e-05/0.3195, allocations: 11.38 kB / 0.5331 GB, free: 10.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3196, allocations: 310.8 kB / 0.5334 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.856e-06/0.3196, allocations: 1.5 kB / 0.5334 GB, free: 10.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.252e-06/0.3196, allocations: 1.594 kB / 0.5334 GB, free: 10.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.326e-05/0.3197, allocations: 67.33 kB / 0.5335 GB, free: 10.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3197, allocations: 0 / 0.5335 GB, free: 10.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.492e-05/0.3198, allocations: 66.92 kB / 0.5335 GB, free: 10.47 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/0.3198, allocations: 35.39 kB / 0.5336 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3198, allocations: 9.422 kB / 0.5336 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.3198, allocations: 0 / 0.5336 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.3198, allocations: 0 / 0.5336 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.3198, allocations: 4.875 kB / 0.5336 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.595e-05/0.3199, allocations: 32 / 0.5336 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.3199, allocations: 5.344 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 7.328e-05/0.32, allocations: 138.2 kB / 0.5337 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.142e-05/0.32, allocations: 5.469 kB / 0.5337 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.464e-06/0.32, allocations: 3.125 kB / 0.5337 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.32, allocations: 0 / 0.5337 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.32, allocations: 0 / 0.5337 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.32, allocations: 1.438 kB / 0.5337 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.011e-05/0.3201, allocations: 151 kB / 0.5339 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.3201, allocations: 0 / 0.5339 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.055e-06/0.3201, allocations: 5.562 kB / 0.5339 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.3201, allocations: 7.875 kB / 0.5339 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.3201, allocations: 0 / 0.5339 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.3201, allocations: 1.625 kB / 0.5339 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3201, allocations: 0 / 0.5339 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.66e-05/0.3202, allocations: 94.14 kB / 0.534 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.055e-05/0.3203, allocations: 77.11 kB / 0.534 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.38e-05/0.3203, allocations: 9.125 kB / 0.534 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.069e-05/0.3203, allocations: 1.219 kB / 0.534 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.301e-05/0.3203, allocations: 1.188 kB / 0.534 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.3203, allocations: 0 / 0.534 GB, free: 9.852 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.923e-05/0.3204, allocations: 76.56 kB / 0.5341 GB, free: 9.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3204, allocations: 0 / 0.5341 GB, free: 9.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000219/0.3206, allocations: 22.73 kB / 0.5341 GB, free: 9.77 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.000582/0.3212, allocations: 0.7266 MB / 0.5348 GB, free: 9.078 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.99e-05/0.3213, allocations: 56.81 kB / 0.5349 GB, free: 9.016 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3213, allocations: 0 / 0.5349 GB, free: 9.016 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.183e-05/0.3213, allocations: 63.08 kB / 0.535 GB, free: 8.945 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001292/0.3215, allocations: 4.125 kB / 0.535 GB, free: 8.945 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002808/0.3218, allocations: 109.2 kB / 0.5351 GB, free: 8.812 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.3221, allocations: 0.6786 MB / 0.5357 GB, free: 8.109 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.406e-06/0.3221, allocations: 0 / 0.5357 GB, free: 8.109 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.976e-05/0.3221, allocations: 9.188 kB / 0.5357 GB, free: 8.102 MB / 398.1 MB Notification: Performance of SimCode: time 2.806e-06/0.3221, allocations: 0 / 0.5357 GB, free: 8.102 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01933/0.3415, allocations: 1.483 MB / 0.5372 GB, free: 7.219 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/8.095, allocations: 10.66 kB / 0.5372 GB, free: 7.215 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