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.001317/0.001317, allocations: 121.9 kB / 18.51 MB, free: 4.535 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.00143/0.00143, allocations: 219.2 kB / 21.46 MB, free: 1.582 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.47/1.47, allocations: 230.2 MB / 254.5 MB, free: 15.41 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.2328/0.2328, allocations: 46.9 MB / 357.4 MB, free: 10.5 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="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 0.002213/0.002213, allocations: 77.16 kB / 0.4912 GB, free: 26.82 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1107, allocations: 65.98 MB / 0.5557 GB, free: 9.129 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001592/0.1123, allocations: 493 kB / 0.5561 GB, free: 8.641 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.1138, allocations: 0.7935 MB / 0.5569 GB, free: 7.844 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.205e-05/0.1138, allocations: 0 / 0.5569 GB, free: 7.844 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.202e-05/0.1138, allocations: 0 / 0.5569 GB, free: 7.844 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001701/0.114, allocations: 7.938 kB / 0.5569 GB, free: 7.836 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.0006006/0.1146, allocations: 49.94 kB / 0.557 GB, free: 7.789 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.553e-05/0.1146, allocations: 4 kB / 0.557 GB, free: 7.785 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.929e-05/0.1147, allocations: 7.984 kB / 0.557 GB, free: 7.777 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.466e-05/0.1147, allocations: 3.984 kB / 0.557 GB, free: 7.773 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.433e-05/0.1148, allocations: 4 kB / 0.557 GB, free: 7.77 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.206e-06/0.1148, allocations: 4 kB / 0.557 GB, free: 7.766 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001468/0.1149, allocations: 55.95 kB / 0.557 GB, free: 7.711 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.607e-06/0.1149, allocations: 4 kB / 0.557 GB, free: 7.707 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.867e-05/0.115, allocations: 3.938 kB / 0.557 GB, free: 7.703 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001191/0.1151, allocations: 44.16 kB / 0.5571 GB, free: 7.66 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1151, allocations: 7.984 kB / 0.5571 GB, free: 7.652 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1151, allocations: 0 / 0.5571 GB, free: 7.652 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.1151, allocations: 0 / 0.5571 GB, free: 7.652 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.0003839/0.1155, allocations: 357 kB / 0.5574 GB, free: 7.246 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.1155, allocations: 8.031 kB / 0.5574 GB, free: 7.238 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.495e-05/0.1155, allocations: 38.69 kB / 0.5575 GB, free: 7.191 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.24e-05/0.1156, allocations: 0.9375 kB / 0.5575 GB, free: 7.191 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.1157, allocations: 164.4 kB / 0.5576 GB, free: 6.992 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.202e-06/0.1157, allocations: 384 / 0.5576 GB, free: 6.992 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.1157, allocations: 384 / 0.5576 GB, free: 6.992 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.768e-05/0.1158, allocations: 38.25 kB / 0.5577 GB, free: 6.949 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.1158, allocations: 3.938 kB / 0.5577 GB, free: 6.945 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.592e-06/0.1158, allocations: 3.938 kB / 0.5577 GB, free: 6.941 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.1158, allocations: 0 / 0.5577 GB, free: 6.941 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.64e-05/0.1158, allocations: 7.984 kB / 0.5577 GB, free: 6.934 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001424/0.116, allocations: 145.7 kB / 0.5578 GB, free: 6.742 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.251e-05/0.116, allocations: 22.45 kB / 0.5579 GB, free: 6.711 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.723e-05/0.116, allocations: 8.859 kB / 0.5579 GB, free: 6.699 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.893e-06/0.116, allocations: 4.094 kB / 0.5579 GB, free: 6.695 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.444e-05/0.1161, allocations: 64.25 kB / 0.5579 GB, free: 6.617 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1161, allocations: 4 kB / 0.5579 GB, free: 6.613 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001634/0.1162, allocations: 63.34 kB / 0.558 GB, free: 6.539 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.1164, allocations: 81.05 kB / 0.5581 GB, free: 6.441 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.625e-05/0.1164, allocations: 97.86 kB / 0.5582 GB, free: 6.336 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.1165, allocations: 25.7 kB / 0.5582 GB, free: 6.305 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.234e-05/0.1165, allocations: 84.12 kB / 0.5583 GB, free: 6.219 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.191e-05/0.1165, allocations: 0 / 0.5583 GB, free: 6.219 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.1165, allocations: 13.97 kB / 0.5583 GB, free: 6.199 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1167, allocations: 314.8 kB / 0.5586 GB, free: 5.883 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.997e-06/0.1167, allocations: 0 / 0.5586 GB, free: 5.883 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.581e-06/0.1167, allocations: 0 / 0.5586 GB, free: 5.883 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.158e-05/0.1167, allocations: 64.27 kB / 0.5586 GB, free: 5.805 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1167, allocations: 0 / 0.5586 GB, free: 5.805 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.556e-05/0.1168, allocations: 67.38 kB / 0.5587 GB, free: 5.727 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.432e-05/0.1169, allocations: 41.58 kB / 0.5587 GB, free: 5.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/0.1169, allocations: 0 / 0.5587 GB, free: 5.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.1169, allocations: 4.094 kB / 0.5588 GB, free: 5.676 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.1169, allocations: 0 / 0.5588 GB, free: 5.676 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.1169, allocations: 0 / 0.5588 GB, free: 5.676 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.512e-05/0.1169, allocations: 0 / 0.5588 GB, free: 5.676 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.1169, allocations: 0 / 0.5588 GB, free: 5.676 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 0.0001077/0.117, allocations: 139.5 kB / 0.5589 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.207e-05/0.117, allocations: 7.938 kB / 0.5589 GB, free: 5.516 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.923e-06/0.117, allocations: 3.125 kB / 0.5589 GB, free: 5.516 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-06/0.117, allocations: 0 / 0.5589 GB, free: 5.516 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.117, allocations: 8 kB / 0.5589 GB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.684e-06/0.117, allocations: 0 / 0.5589 GB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.1172, allocations: 145.7 kB / 0.559 GB, free: 5.316 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1172, allocations: 0 / 0.559 GB, free: 5.316 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1172, allocations: 0 / 0.559 GB, free: 5.316 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1172, allocations: 3.938 kB / 0.559 GB, free: 5.312 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.126e-06/0.1172, allocations: 4 kB / 0.559 GB, free: 5.309 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1172, allocations: 3.938 kB / 0.5591 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1172, allocations: 0 / 0.5591 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001077/0.1173, allocations: 104.4 kB / 0.5592 GB, free: 5.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.622e-05/0.1173, allocations: 81.06 kB / 0.5592 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.1173, allocations: 3.938 kB / 0.5592 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.015e-05/0.1173, allocations: 0 / 0.5592 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.564e-05/0.1174, allocations: 4 kB / 0.5592 GB, free: 5.074 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.1174, allocations: 0 / 0.5592 GB, free: 5.074 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.716e-05/0.1174, allocations: 75.28 kB / 0.5593 GB, free: 5 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1174, allocations: 0 / 0.5593 GB, free: 5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002206/0.1177, allocations: 32.05 kB / 0.5593 GB, free: 4.969 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.000755/0.1184, allocations: 0.7058 MB / 0.56 GB, free: 4.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001173/0.1185, allocations: 63.34 kB / 0.5601 GB, free: 4.176 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1185, allocations: 0 / 0.5601 GB, free: 4.176 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.151e-05/0.1186, allocations: 59.39 kB / 0.5601 GB, free: 4.105 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.1187, allocations: 8.125 kB / 0.5602 GB, free: 4.098 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002947/0.119, allocations: 110.7 kB / 0.5603 GB, free: 3.949 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.1193, allocations: 0.6768 MB / 0.5609 GB, free: 3.246 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.983e-06/0.1193, allocations: 0 / 0.5609 GB, free: 3.246 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.863e-05/0.1193, allocations: 7.438 kB / 0.5609 GB, free: 3.238 MB / 414.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1193, allocations: 3.938 kB / 0.5609 GB, free: 3.234 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02649/0.1458, allocations: 1.494 MB / 0.5624 GB, free: 1.812 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.301/8.447, allocations: 7.969 kB / 0.5624 GB, free: 1.805 MB / 414.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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.324696356896311]