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.001812/0.001812, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002022/0.002022, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2389/0.2389, allocations: 46.1 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 73.47 kB / 417.7 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1518, allocations: 62.44 MB / 480.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002338/0.1542, allocations: 486.4 kB / 480.6 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.1557, allocations: 0.7841 MB / 481.4 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.734e-05/0.1558, allocations: 3.938 kB / 481.4 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.788e-05/0.1558, allocations: 3.938 kB / 481.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002325/0.1561, allocations: 11.98 kB / 481.4 MB, free: 3.953 MB / 350.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.0007487/0.1568, allocations: 50.33 kB / 481.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.014e-05/0.1569, allocations: 0 / 481.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.934e-05/0.157, allocations: 4 kB / 481.4 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.082e-05/0.157, allocations: 0 / 481.4 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/0.1571, allocations: 15.97 kB / 481.5 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.03e-05/0.1571, allocations: 4 kB / 481.5 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001513/0.1573, allocations: 47.97 kB / 481.5 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.548e-06/0.1573, allocations: 0 / 481.5 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.855e-05/0.1573, allocations: 4 kB / 481.5 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001591/0.1575, allocations: 55.8 kB / 481.6 MB, free: 3.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1575, allocations: 0 / 481.6 MB, free: 3.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1575, allocations: 0 / 481.6 MB, free: 3.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.1575, allocations: 0 / 481.6 MB, free: 3.777 MB / 350.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.0004926/0.158, allocations: 353.3 kB / 481.9 MB, free: 3.375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.1581, allocations: 12.03 kB / 481.9 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.946e-05/0.1581, allocations: 34.75 kB / 482 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.501e-05/0.1582, allocations: 0.9375 kB / 482 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001552/0.1583, allocations: 160.4 kB / 482.1 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.1584, allocations: 4.375 kB / 482.1 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.1584, allocations: 384 / 482.1 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.662e-05/0.1585, allocations: 26.27 kB / 482.2 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.1585, allocations: 3.938 kB / 482.2 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.1585, allocations: 7.984 kB / 482.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.1585, allocations: 0 / 482.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.8e-05/0.1586, allocations: 11.92 kB / 482.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001718/0.1587, allocations: 145.7 kB / 482.3 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.37e-05/0.1588, allocations: 18.61 kB / 482.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.907e-05/0.1588, allocations: 4.859 kB / 482.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.1588, allocations: 3.938 kB / 482.3 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.181e-05/0.1589, allocations: 64.31 kB / 482.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.352e-06/0.1589, allocations: 4 kB / 482.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001975/0.1591, allocations: 79.2 kB / 482.5 MB, free: 2.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/0.1592, allocations: 77.11 kB / 482.6 MB, free: 2.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.959e-05/0.1592, allocations: 93.84 kB / 482.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.1593, allocations: 29.7 kB / 482.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.06e-05/0.1593, allocations: 80.14 kB / 482.8 MB, free: 2.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.03e-05/0.1593, allocations: 3.906 kB / 482.8 MB, free: 2.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.433e-05/0.1594, allocations: 9.969 kB / 482.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.1595, allocations: 322.8 kB / 483.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.126e-05/0.1595, allocations: 0 / 483.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.731e-06/0.1596, allocations: 0 / 483.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.038e-05/0.1596, allocations: 60.27 kB / 483.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1596, allocations: 0 / 483.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.931e-05/0.1597, allocations: 67.33 kB / 483.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.638e-05/0.1597, allocations: 33.64 kB / 483.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.1598, allocations: 0 / 483.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.1598, allocations: 8.094 kB / 483.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-06/0.1598, allocations: 0 / 483.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.1598, allocations: 0 / 483.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.905e-05/0.1598, allocations: 288 / 483.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.974e-06/0.1598, allocations: 0 / 483.3 MB, free: 1.809 MB / 350.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.0001059/0.1599, allocations: 143.5 kB / 483.4 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.149e-05/0.16, allocations: 3.938 kB / 483.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.129e-05/0.16, allocations: 7.125 kB / 483.4 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.16, allocations: 0 / 483.4 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.16, allocations: 4 kB / 483.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.16, allocations: 0 / 483.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.1601, allocations: 153.6 kB / 483.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.1601, allocations: 0 / 483.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.42e-07/0.1601, allocations: 0 / 483.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1602, allocations: 3.938 kB / 483.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.1602, allocations: 0 / 483.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1602, allocations: 4 kB / 483.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1602, allocations: 0 / 483.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001034/0.1603, allocations: 102.7 kB / 483.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.549e-05/0.1603, allocations: 77.11 kB / 483.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.1604, allocations: 3.938 kB / 483.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.156e-05/0.1604, allocations: 0 / 483.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.65e-05/0.1604, allocations: 4 kB / 483.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.1604, allocations: 4 kB / 483.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.476e-05/0.1604, allocations: 75.28 kB / 483.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1605, allocations: 0 / 483.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002481/0.1607, allocations: 24.11 kB / 483.9 MB, free: 1.105 MB / 350.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.0006959/0.1614, allocations: 0.7281 MB / 484.6 MB, free: 376 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001145/0.1615, allocations: 59.41 kB / 484.6 MB, free: 304 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1615, allocations: 0 / 484.6 MB, free: 304 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.963e-05/0.1616, allocations: 59.39 kB / 484.7 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001408/0.1617, allocations: 8.125 kB / 484.7 MB, free: 224 kB / 350.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00037/0.1621, allocations: 114.6 kB / 484.8 MB, free: 68 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.1624, allocations: 0.6729 MB / 485.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.598e-06/0.1624, allocations: 0 / 485.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.856e-05/0.1624, allocations: 7.438 kB / 485.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of SimCode: time 1.903e-06/0.1625, allocations: 0 / 485.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5174/0.6799, allocations: 1.449 MB / 486.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/11.06, allocations: 4.062 kB / 487 MB, free: 13.96 MB / 366.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