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.001531/0.001531, allocations: 117 kB / 18.49 MB, free: 4.566 MB / 14.72 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.001743/0.001743, allocations: 216.7 kB / 21.46 MB, free: 1.613 MB / 14.72 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 1.476/1.476, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] 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.23/0.23, allocations: 46.92 MB / 357.7 MB, free: 10.18 MB / 286.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002235/0.002235, allocations: 75.88 kB / 0.4916 GB, free: 7.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.122, allocations: 66.05 MB / 0.5561 GB, free: 5.551 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001504/0.1235, allocations: 493 kB / 0.5566 GB, free: 5.062 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.1248, allocations: 0.786 MB / 0.5574 GB, free: 4.273 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.487e-05/0.1248, allocations: 0 / 0.5574 GB, free: 4.273 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.101e-05/0.1248, allocations: 0 / 0.5574 GB, free: 4.273 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.125, allocations: 11.94 kB / 0.5574 GB, free: 4.262 MB / 414.1 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.000555/0.1255, allocations: 49.66 kB / 0.5574 GB, free: 4.215 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.763e-05/0.1256, allocations: 4 kB / 0.5574 GB, free: 4.211 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.751e-05/0.1256, allocations: 11.98 kB / 0.5574 GB, free: 4.199 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.395e-05/0.1256, allocations: 0 / 0.5574 GB, free: 4.199 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.918e-05/0.1257, allocations: 7.984 kB / 0.5574 GB, free: 4.191 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.534e-06/0.1257, allocations: 0 / 0.5574 GB, free: 4.191 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001359/0.1258, allocations: 57.78 kB / 0.5575 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.282e-06/0.1258, allocations: 0 / 0.5575 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.795e-05/0.1259, allocations: 3.938 kB / 0.5575 GB, free: 4.133 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.126, allocations: 47.88 kB / 0.5576 GB, free: 4.086 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.126, allocations: 0 / 0.5576 GB, free: 4.086 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.126, allocations: 0 / 0.5576 GB, free: 4.086 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.126, allocations: 0 / 0.5576 GB, free: 4.086 MB / 414.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.0003986/0.1264, allocations: 357.1 kB / 0.5579 GB, free: 3.68 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.1264, allocations: 19.95 kB / 0.5579 GB, free: 3.66 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.097e-05/0.1264, allocations: 192 / 0.5579 GB, free: 3.66 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.531e-05/0.1265, allocations: 34.75 kB / 0.5579 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.174e-05/0.1265, allocations: 4.875 kB / 0.558 GB, free: 3.613 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.1266, allocations: 160.4 kB / 0.5581 GB, free: 3.418 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.212e-06/0.1266, allocations: 4.312 kB / 0.5581 GB, free: 3.414 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.848e-06/0.1267, allocations: 4.375 kB / 0.5581 GB, free: 3.41 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.211e-05/0.1267, allocations: 34.02 kB / 0.5581 GB, free: 3.371 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.1267, allocations: 0 / 0.5581 GB, free: 3.371 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.397e-06/0.1268, allocations: 4 kB / 0.5581 GB, free: 3.367 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-06/0.1268, allocations: 0 / 0.5581 GB, free: 3.367 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.841e-05/0.1268, allocations: 3.984 kB / 0.5582 GB, free: 3.363 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000144/0.1269, allocations: 141.7 kB / 0.5583 GB, free: 3.176 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.474e-05/0.127, allocations: 26.55 kB / 0.5583 GB, free: 3.141 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.472e-05/0.127, allocations: 4.859 kB / 0.5583 GB, free: 3.133 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.406e-06/0.127, allocations: 4 kB / 0.5583 GB, free: 3.129 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.907e-05/0.127, allocations: 64.27 kB / 0.5584 GB, free: 3.051 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.273e-06/0.127, allocations: 0 / 0.5584 GB, free: 3.051 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001716/0.1272, allocations: 63.39 kB / 0.5584 GB, free: 2.977 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.504e-05/0.1273, allocations: 85.05 kB / 0.5585 GB, free: 2.875 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.227e-05/0.1274, allocations: 89.86 kB / 0.5586 GB, free: 2.777 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.1274, allocations: 25.95 kB / 0.5586 GB, free: 2.746 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.873e-05/0.1274, allocations: 92.12 kB / 0.5587 GB, free: 2.652 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.232e-05/0.1274, allocations: 0 / 0.5587 GB, free: 2.652 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.634e-05/0.1275, allocations: 9.719 kB / 0.5587 GB, free: 2.637 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1276, allocations: 310.8 kB / 0.559 GB, free: 2.324 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.561e-05/0.1276, allocations: 4 kB / 0.559 GB, free: 2.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.388e-06/0.1276, allocations: 5.656 kB / 0.559 GB, free: 2.316 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.356e-05/0.1277, allocations: 60.27 kB / 0.5591 GB, free: 2.242 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1277, allocations: 4.062 kB / 0.5591 GB, free: 2.238 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.979e-05/0.1278, allocations: 63.39 kB / 0.5592 GB, free: 2.164 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.572e-05/0.1278, allocations: 33.64 kB / 0.5592 GB, free: 2.125 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.1278, allocations: 7.938 kB / 0.5592 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.1278, allocations: 0 / 0.5592 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.369e-06/0.1278, allocations: 7.984 kB / 0.5592 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.447e-06/0.1278, allocations: 0 / 0.5592 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.469e-05/0.1279, allocations: 0 / 0.5592 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-06/0.1279, allocations: 0 / 0.5592 GB, free: 2.109 MB / 414.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 9.915e-05/0.128, allocations: 147.6 kB / 0.5593 GB, free: 1.949 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.082e-05/0.128, allocations: 3.938 kB / 0.5594 GB, free: 1.945 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.025e-06/0.128, allocations: 3.125 kB / 0.5594 GB, free: 1.945 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.128, allocations: 3.938 kB / 0.5594 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.128, allocations: 3.938 kB / 0.5594 GB, free: 1.938 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-06/0.128, allocations: 0 / 0.5594 GB, free: 1.938 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.1281, allocations: 153.7 kB / 0.5595 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.1281, allocations: 0 / 0.5595 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1281, allocations: 0 / 0.5595 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.1281, allocations: 3.938 kB / 0.5595 GB, free: 1.734 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.1281, allocations: 4 kB / 0.5595 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1281, allocations: 0 / 0.5595 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.1281, allocations: 4 kB / 0.5595 GB, free: 1.727 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001041/0.1282, allocations: 90.77 kB / 0.5596 GB, free: 1.613 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.695e-05/0.1283, allocations: 89 kB / 0.5597 GB, free: 1.508 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.127e-05/0.1283, allocations: 0 / 0.5597 GB, free: 1.508 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.045e-05/0.1283, allocations: 0 / 0.5597 GB, free: 1.508 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.403e-05/0.1283, allocations: 0 / 0.5597 GB, free: 1.508 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.1283, allocations: 4.031 kB / 0.5597 GB, free: 1.504 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.466e-05/0.1284, allocations: 83.28 kB / 0.5598 GB, free: 1.422 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1284, allocations: 0 / 0.5598 GB, free: 1.422 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002157/0.1286, allocations: 19.92 kB / 0.5598 GB, free: 1.402 MB / 414.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.0007507/0.1293, allocations: 0.7131 MB / 0.5605 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001025/0.1294, allocations: 67.34 kB / 0.5606 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1294, allocations: 0 / 0.5606 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.306e-05/0.1295, allocations: 63.33 kB / 0.5606 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001251/0.1296, allocations: 1.719 kB / 0.5606 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003122/0.1299, allocations: 126.6 kB / 0.5607 GB, free: 368 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.1302, allocations: 0.6768 MB / 0.5614 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.323e-06/0.1302, allocations: 0 / 0.5614 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.162e-05/0.1303, allocations: 7.438 kB / 0.5614 GB, free: 15.65 MB / 430.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1303, allocations: 4.125 kB / 0.5614 GB, free: 15.64 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02541/0.1557, allocations: 1.522 MB / 0.5629 GB, free: 14.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.32/8.476, allocations: 7.859 kB / 0.5629 GB, free: 14.2 MB / 430.1 MB " [Timeout remaining time 651] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.314098979986738]