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.001892/0.001892, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002401/0.002401, allocations: 206.6 kB / 20.75 MB, free: 2.312 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.544/1.544, allocations: 230.4 MB / 254 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.2427/0.2427, allocations: 46.91 MB / 357 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="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.002394/0.002394, allocations: 71.88 kB / 0.4909 GB, free: 7.727 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1299, allocations: 66.05 MB / 0.5554 GB, free: 5.543 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001686/0.1316, allocations: 490.5 kB / 0.5559 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.1329, allocations: 0.7821 MB / 0.5567 GB, free: 4.273 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.272e-05/0.1329, allocations: 0 / 0.5567 GB, free: 4.273 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.134e-05/0.133, allocations: 0 / 0.5567 GB, free: 4.273 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001676/0.1331, allocations: 19.92 kB / 0.5567 GB, free: 4.254 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.0006452/0.1338, allocations: 51.92 kB / 0.5567 GB, free: 4.207 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.972e-05/0.1338, allocations: 3.938 kB / 0.5567 GB, free: 4.203 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.211e-05/0.1339, allocations: 8 kB / 0.5568 GB, free: 4.195 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.103e-05/0.1339, allocations: 3.984 kB / 0.5568 GB, free: 4.191 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.158e-05/0.134, allocations: 4 kB / 0.5568 GB, free: 4.188 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.105e-06/0.134, allocations: 0 / 0.5568 GB, free: 4.188 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.1341, allocations: 55.95 kB / 0.5568 GB, free: 4.133 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.793e-06/0.1341, allocations: 0 / 0.5568 GB, free: 4.133 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.239e-05/0.1342, allocations: 7.922 kB / 0.5568 GB, free: 4.125 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.1343, allocations: 47.88 kB / 0.5569 GB, free: 4.078 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1343, allocations: 4 kB / 0.5569 GB, free: 4.074 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1343, allocations: 0 / 0.5569 GB, free: 4.074 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1343, allocations: 0 / 0.5569 GB, free: 4.074 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.0004912/0.1348, allocations: 353.1 kB / 0.5572 GB, free: 3.672 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.1348, allocations: 12.03 kB / 0.5572 GB, free: 3.66 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.824e-05/0.1349, allocations: 38.67 kB / 0.5573 GB, free: 3.613 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.666e-05/0.1349, allocations: 0.9375 kB / 0.5573 GB, free: 3.613 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00029/0.1352, allocations: 164.3 kB / 0.5574 GB, free: 3.414 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.1352, allocations: 384 / 0.5574 GB, free: 3.414 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.1352, allocations: 12.31 kB / 0.5574 GB, free: 3.402 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.106e-05/0.1353, allocations: 30.27 kB / 0.5575 GB, free: 3.367 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.1353, allocations: 3.938 kB / 0.5575 GB, free: 3.363 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.273e-06/0.1353, allocations: 0 / 0.5575 GB, free: 3.363 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.1353, allocations: 4 kB / 0.5575 GB, free: 3.359 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.762e-05/0.1354, allocations: 0 / 0.5575 GB, free: 3.359 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002715/0.1356, allocations: 145.7 kB / 0.5576 GB, free: 3.168 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.201e-05/0.1357, allocations: 22.55 kB / 0.5576 GB, free: 3.137 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.12e-05/0.1357, allocations: 12.86 kB / 0.5576 GB, free: 3.121 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.847e-06/0.1357, allocations: 0 / 0.5576 GB, free: 3.121 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001791/0.1359, allocations: 56.27 kB / 0.5577 GB, free: 3.051 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.303e-06/0.1359, allocations: 4.062 kB / 0.5577 GB, free: 3.047 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000193/0.1361, allocations: 67.33 kB / 0.5578 GB, free: 2.969 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.324e-05/0.1361, allocations: 77.11 kB / 0.5578 GB, free: 2.875 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.1363, allocations: 97.98 kB / 0.5579 GB, free: 2.77 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.1364, allocations: 25.7 kB / 0.5579 GB, free: 2.738 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.101e-05/0.1364, allocations: 84.08 kB / 0.558 GB, free: 2.652 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.801e-05/0.1364, allocations: 4 kB / 0.558 GB, free: 2.648 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.267e-05/0.1364, allocations: 13.7 kB / 0.558 GB, free: 2.629 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002178/0.1367, allocations: 310.8 kB / 0.5583 GB, free: 2.316 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.245e-05/0.1367, allocations: 4 kB / 0.5583 GB, free: 2.312 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.632e-06/0.1367, allocations: 0 / 0.5583 GB, free: 2.312 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.77e-05/0.1367, allocations: 68.45 kB / 0.5584 GB, free: 2.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1367, allocations: 0 / 0.5584 GB, free: 2.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.429e-05/0.1368, allocations: 63.39 kB / 0.5585 GB, free: 2.156 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/0.1369, allocations: 33.64 kB / 0.5585 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.1369, allocations: 0 / 0.5585 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.1369, allocations: 0 / 0.5585 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.1369, allocations: 0 / 0.5585 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.1369, allocations: 7.938 kB / 0.5585 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.814e-05/0.1369, allocations: 0 / 0.5585 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.1369, allocations: 0 / 0.5585 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.81e-05/0.137, allocations: 139.6 kB / 0.5586 GB, free: 1.957 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.503e-05/0.137, allocations: 11.92 kB / 0.5587 GB, free: 1.945 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.404e-06/0.137, allocations: 3.125 kB / 0.5587 GB, free: 1.945 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.137, allocations: 0 / 0.5587 GB, free: 1.945 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.137, allocations: 3.938 kB / 0.5587 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.137, allocations: 0 / 0.5587 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000117/0.1372, allocations: 149.6 kB / 0.5588 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1372, allocations: 0 / 0.5588 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.48e-06/0.1372, allocations: 7.984 kB / 0.5588 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.1372, allocations: 11.92 kB / 0.5588 GB, free: 1.727 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.281e-06/0.1372, allocations: 0 / 0.5588 GB, free: 1.727 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1372, allocations: 0 / 0.5588 GB, free: 1.727 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1372, allocations: 0 / 0.5588 GB, free: 1.727 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.1373, allocations: 88.5 kB / 0.5589 GB, free: 1.617 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.876e-05/0.1373, allocations: 85.05 kB / 0.559 GB, free: 1.516 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.1373, allocations: 7.938 kB / 0.559 GB, free: 1.508 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.178e-05/0.1374, allocations: 3.969 kB / 0.559 GB, free: 1.504 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.237e-05/0.1374, allocations: 4 kB / 0.559 GB, free: 1.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.1374, allocations: 0 / 0.559 GB, free: 1.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.002e-05/0.1374, allocations: 79.28 kB / 0.5591 GB, free: 1.422 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1374, allocations: 0 / 0.5591 GB, free: 1.422 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002589/0.1377, allocations: 19.94 kB / 0.5591 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.0008532/0.1385, allocations: 0.7202 MB / 0.5598 GB, free: 0.668 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001032/0.1386, allocations: 63.34 kB / 0.5599 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1386, allocations: 0 / 0.5599 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.751e-05/0.1387, allocations: 55.41 kB / 0.5599 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001334/0.1388, allocations: 8.188 kB / 0.5599 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003404/0.1391, allocations: 122.6 kB / 0.56 GB, free: 372 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.1395, allocations: 0.6729 MB / 0.5607 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.314e-06/0.1395, allocations: 128 / 0.5607 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.961e-05/0.1395, allocations: 15.44 kB / 0.5607 GB, free: 15.65 MB / 430.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1395, allocations: 0 / 0.5607 GB, free: 15.65 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02988/0.1694, allocations: 1.485 MB / 0.5622 GB, free: 14.23 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.002/8.171, allocations: 0 / 0.5622 GB, free: 14.23 MB / 430.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.csv","/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.247801107005216]