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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007875/0.0007875, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007694/0.0007694, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8835/0.8835, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2422/0.2422, allocations: 34.23 MB / 294.8 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 3.938 kB / 442.1 MB, free: 1.582 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.611e-05/1.743e-05, allocations: 2.281 kB / 442.1 MB, free: 1.578 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.000986/0.001003, allocations: 489.1 kB / 442.6 MB, free: 1.102 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008059/0.001809, allocations: 0.8727 MB / 443.5 MB, free: 232 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.126e-05/0.001831, allocations: 4 kB / 443.5 MB, free: 228 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.349e-05/0.001844, allocations: 0 / 443.5 MB, free: 228 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.002022, allocations: 11.88 kB / 443.5 MB, free: 216 kB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:333:3-373: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.0004968/0.002518, allocations: 66.41 kB / 443.6 MB, free: 152 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.941e-05/0.002568, allocations: 4 kB / 443.6 MB, free: 148 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.202e-05/0.0026, allocations: 0 / 443.6 MB, free: 148 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.793e-05/0.002628, allocations: 3.984 kB / 443.6 MB, free: 144 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.4e-05/0.002672, allocations: 4 kB / 443.6 MB, free: 140 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.496e-06/0.00268, allocations: 0 / 443.6 MB, free: 140 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.719e-05/0.002778, allocations: 59.88 kB / 443.6 MB, free: 80 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.173e-06/0.002785, allocations: 4 kB / 443.6 MB, free: 76 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.691e-05/0.002802, allocations: 0 / 443.6 MB, free: 76 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.002941, allocations: 63.8 kB / 443.7 MB, free: 12 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.002944, allocations: 3.984 kB / 443.7 MB, free: 8 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.002945, allocations: 0 / 443.7 MB, free: 8 kB / 410.7 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.002949, allocations: 0 / 443.7 MB, free: 8 kB / 410.7 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.1678/0.1707, allocations: 272.9 kB / 444 MB, free: 44.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.1707, allocations: 11.17 kB / 444 MB, free: 44.23 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.898e-05/0.1708, allocations: 33.47 kB / 444 MB, free: 44.19 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.644e-05/0.1708, allocations: 4.688 kB / 444 MB, free: 44.19 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.175e-05/0.1708, allocations: 105.1 kB / 444.1 MB, free: 44.06 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.408e-06/0.1709, allocations: 6.156 kB / 444.1 MB, free: 44.06 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.332e-06/0.1709, allocations: 384 / 444.1 MB, free: 44.06 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.125e-05/0.1709, allocations: 59.36 kB / 444.2 MB, free: 44 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.55e-06/0.1709, allocations: 192 / 444.2 MB, free: 44 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.221e-06/0.1709, allocations: 384 / 444.2 MB, free: 44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1709, allocations: 6.625 kB / 444.2 MB, free: 44 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.499e-05/0.171, allocations: 29.55 kB / 444.2 MB, free: 43.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.654e-05/0.171, allocations: 116.9 kB / 444.3 MB, free: 43.81 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.526e-05/0.1711, allocations: 47.95 kB / 444.4 MB, free: 43.76 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.431e-05/0.1711, allocations: 34.94 kB / 444.4 MB, free: 43.72 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.021e-06/0.1711, allocations: 0 / 444.4 MB, free: 43.72 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.1711, allocations: 59.08 kB / 444.5 MB, free: 43.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.1711, allocations: 0 / 444.5 MB, free: 43.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001588/0.1713, allocations: 122.8 kB / 444.6 MB, free: 43.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.56e-05/0.1713, allocations: 81.05 kB / 444.7 MB, free: 43.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.934e-05/0.1713, allocations: 94.48 kB / 444.8 MB, free: 43.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.238e-06/0.1713, allocations: 25.7 kB / 444.8 MB, free: 43.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.294e-06/0.1714, allocations: 85.8 kB / 444.9 MB, free: 43.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.506e-05/0.1714, allocations: 2.656 kB / 444.9 MB, free: 43.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.149e-05/0.1714, allocations: 12.34 kB / 444.9 MB, free: 43.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.888e-05/0.1714, allocations: 313.7 kB / 445.2 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.22e-05/0.1714, allocations: 31.73 kB / 445.2 MB, free: 42.86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.739e-06/0.1714, allocations: 28.98 kB / 445.3 MB, free: 42.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.006e-05/0.1715, allocations: 71.95 kB / 445.3 MB, free: 42.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.1715, allocations: 0 / 445.3 MB, free: 42.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.847e-05/0.1715, allocations: 84.55 kB / 445.4 MB, free: 42.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.1716, allocations: 36.09 kB / 445.4 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.421e-06/0.1716, allocations: 0 / 445.4 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.1716, allocations: 6.656 kB / 445.4 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.084e-06/0.1716, allocations: 3.938 kB / 445.5 MB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.1716, allocations: 0 / 445.5 MB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.112e-05/0.1716, allocations: 0 / 445.5 MB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.1716, allocations: 0 / 445.5 MB, free: 42.62 MB / 410.7 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 5.344e-05/0.1717, allocations: 137.2 kB / 445.6 MB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.209e-06/0.1717, allocations: 4.688 kB / 445.6 MB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.506e-05/0.1717, allocations: 6.328 kB / 445.6 MB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1717, allocations: 0 / 445.6 MB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.1717, allocations: 3.938 kB / 445.6 MB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1717, allocations: 3.906 kB / 445.6 MB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.968e-05/0.1718, allocations: 115.8 kB / 445.7 MB, free: 42.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1718, allocations: 0.8438 kB / 445.7 MB, free: 42.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.4e-07/0.1718, allocations: 1.406 kB / 445.7 MB, free: 42.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1718, allocations: 2.906 kB / 445.7 MB, free: 42.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.1718, allocations: 3.422 kB / 445.7 MB, free: 42.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1718, allocations: 2.688 kB / 445.7 MB, free: 42.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1718, allocations: 3.938 kB / 445.7 MB, free: 42.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.812e-05/0.1718, allocations: 121.8 kB / 445.9 MB, free: 42.19 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.076e-06/0.1719, allocations: 0 / 445.9 MB, free: 42.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.252e-05/0.1719, allocations: 2.219 kB / 445.9 MB, free: 42.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.987e-06/0.1719, allocations: 6.594 kB / 445.9 MB, free: 42.19 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.594e-05/0.1719, allocations: 3.938 kB / 445.9 MB, free: 42.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.1719, allocations: 1 kB / 445.9 MB, free: 42.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.741e-05/0.1719, allocations: 78.34 kB / 445.9 MB, free: 42.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1719, allocations: 4.219 kB / 445.9 MB, free: 42.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001712/0.1721, allocations: 19.03 kB / 446 MB, free: 42.11 MB / 410.7 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.0005421/0.1726, allocations: 0.7476 MB / 446.7 MB, free: 41.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001013/0.1727, allocations: 116.7 kB / 446.8 MB, free: 41.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1727, allocations: 4.062 kB / 446.8 MB, free: 41.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.443e-05/0.1727, allocations: 80.3 kB / 446.9 MB, free: 41.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001184/0.1729, allocations: 12.44 kB / 446.9 MB, free: 41.22 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002636/0.1731, allocations: 143.2 kB / 447.1 MB, free: 41.06 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.568e-05/0.1731, allocations: 57.5 kB / 447.1 MB, free: 40.99 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.334e-06/0.1732, allocations: 0 / 447.1 MB, free: 40.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.02e-05/0.1732, allocations: 12.44 kB / 447.1 MB, free: 40.98 MB / 410.7 MB Notification: Performance of SimCode: time 7.71e-07/0.1732, allocations: 0 / 447.1 MB, free: 40.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01564/0.1888, allocations: 2.156 MB / 449.3 MB, free: 40.03 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.818/7.007, allocations: 12.67 kB / 449.3 MB, free: 40.03 MB / 410.7 MB " [Timeout remaining time 653] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.886022496968508]