Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 121.6 kB / 17.79 MB, free: 5.113 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 204.3 kB / 20.74 MB, free: 2.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.486/1.486, allocations: 230.6 MB / 254.1 MB, free: 15.2 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2292/0.2292, allocations: 46.92 MB / 357.1 MB, free: 10.3 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 59.91 kB / 0.4909 GB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1296, allocations: 65.98 MB / 0.5553 GB, free: 5.871 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001651/0.1313, allocations: 490.8 kB / 0.5558 GB, free: 5.391 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.1326, allocations: 0.786 MB / 0.5566 GB, free: 4.602 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.198e-05/0.1326, allocations: 0 / 0.5566 GB, free: 4.602 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.315e-05/0.1326, allocations: 3.938 kB / 0.5566 GB, free: 4.598 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001508/0.1328, allocations: 15.98 kB / 0.5566 GB, free: 4.582 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.0005844/0.1334, allocations: 53.52 kB / 0.5566 GB, free: 4.531 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.858e-05/0.1334, allocations: 0 / 0.5566 GB, free: 4.531 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.428e-05/0.1334, allocations: 0 / 0.5566 GB, free: 4.531 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.861e-05/0.1335, allocations: 8 kB / 0.5567 GB, free: 4.523 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.361e-05/0.1335, allocations: 3.984 kB / 0.5567 GB, free: 4.52 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.504e-06/0.1335, allocations: 0 / 0.5567 GB, free: 4.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001692/0.1337, allocations: 63.94 kB / 0.5567 GB, free: 4.457 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.623e-06/0.1337, allocations: 3.938 kB / 0.5567 GB, free: 4.453 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.948e-05/0.1337, allocations: 3.938 kB / 0.5567 GB, free: 4.449 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001288/0.1339, allocations: 47.88 kB / 0.5568 GB, free: 4.402 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1339, allocations: 0 / 0.5568 GB, free: 4.402 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1339, allocations: 0 / 0.5568 GB, free: 4.402 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.1339, allocations: 0 / 0.5568 GB, free: 4.402 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.0003979/0.1343, allocations: 361.1 kB / 0.5571 GB, free: 3.992 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.1343, allocations: 8.031 kB / 0.5571 GB, free: 3.984 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.549e-05/0.1343, allocations: 34.75 kB / 0.5572 GB, free: 3.941 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.186e-05/0.1344, allocations: 0.9375 kB / 0.5572 GB, free: 3.941 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/0.1345, allocations: 164.4 kB / 0.5573 GB, free: 3.742 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.1345, allocations: 384 / 0.5573 GB, free: 3.742 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.304e-06/0.1345, allocations: 4.312 kB / 0.5573 GB, free: 3.738 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.448e-05/0.1346, allocations: 30.27 kB / 0.5573 GB, free: 3.703 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.1346, allocations: 3.938 kB / 0.5574 GB, free: 3.699 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.183e-06/0.1346, allocations: 4 kB / 0.5574 GB, free: 3.695 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.1346, allocations: 0 / 0.5574 GB, free: 3.695 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.062e-05/0.1347, allocations: 7.938 kB / 0.5574 GB, free: 3.688 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001677/0.1348, allocations: 149.7 kB / 0.5575 GB, free: 3.492 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.661e-05/0.1349, allocations: 22.59 kB / 0.5575 GB, free: 3.461 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.429e-05/0.1349, allocations: 4.859 kB / 0.5575 GB, free: 3.453 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.727e-06/0.1349, allocations: 0 / 0.5575 GB, free: 3.453 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.257e-05/0.135, allocations: 60.27 kB / 0.5576 GB, free: 3.379 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.135, allocations: 3.938 kB / 0.5576 GB, free: 3.375 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001766/0.1351, allocations: 75.33 kB / 0.5577 GB, free: 3.289 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/0.1352, allocations: 81.11 kB / 0.5577 GB, free: 3.191 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.354e-05/0.1353, allocations: 89.86 kB / 0.5578 GB, free: 3.094 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.1353, allocations: 25.7 kB / 0.5579 GB, free: 3.062 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.235e-05/0.1353, allocations: 80.14 kB / 0.5579 GB, free: 2.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.684e-05/0.1353, allocations: 4.234 kB / 0.5579 GB, free: 2.977 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.013e-05/0.1354, allocations: 21.72 kB / 0.558 GB, free: 2.949 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.1355, allocations: 314.8 kB / 0.5583 GB, free: 2.633 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.516e-06/0.1355, allocations: 0 / 0.5583 GB, free: 2.633 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.306e-06/0.1355, allocations: 4 kB / 0.5583 GB, free: 2.629 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.141e-05/0.1356, allocations: 60.27 kB / 0.5583 GB, free: 2.555 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.1356, allocations: 0 / 0.5583 GB, free: 2.555 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.691e-05/0.1357, allocations: 67.34 kB / 0.5584 GB, free: 2.477 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.567e-05/0.1357, allocations: 41.72 kB / 0.5584 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.1357, allocations: 0 / 0.5584 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.1357, allocations: 0 / 0.5584 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.1357, allocations: 0 / 0.5584 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.1357, allocations: 0 / 0.5584 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.679e-05/0.1357, allocations: 4 kB / 0.5584 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/0.1358, allocations: 0 / 0.5584 GB, free: 2.426 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.0001027/0.1359, allocations: 133.7 kB / 0.5586 GB, free: 2.281 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.305e-05/0.1359, allocations: 7.938 kB / 0.5586 GB, free: 2.273 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.885e-06/0.1359, allocations: 7.125 kB / 0.5586 GB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.1359, allocations: 0 / 0.5586 GB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.1359, allocations: 7.922 kB / 0.5586 GB, free: 2.262 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1359, allocations: 0 / 0.5586 GB, free: 2.262 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001192/0.136, allocations: 145.7 kB / 0.5587 GB, free: 2.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.136, allocations: 4 kB / 0.5587 GB, free: 2.066 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.525e-06/0.136, allocations: 4 kB / 0.5587 GB, free: 2.062 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.136, allocations: 3.938 kB / 0.5587 GB, free: 2.059 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.136, allocations: 0 / 0.5587 GB, free: 2.059 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.136, allocations: 0 / 0.5587 GB, free: 2.059 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.136, allocations: 3.984 kB / 0.5587 GB, free: 2.055 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001114/0.1361, allocations: 96.44 kB / 0.5588 GB, free: 1.938 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.66e-05/0.1362, allocations: 81.06 kB / 0.5589 GB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.1362, allocations: 11.92 kB / 0.5589 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.021e-05/0.1362, allocations: 0 / 0.5589 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.318e-06/0.1362, allocations: 0 / 0.5589 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.1362, allocations: 0 / 0.5589 GB, free: 1.828 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.841e-05/0.1363, allocations: 79.31 kB / 0.559 GB, free: 1.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1363, allocations: 0 / 0.559 GB, free: 1.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002174/0.1365, allocations: 23.88 kB / 0.559 GB, free: 1.727 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.00084/0.1373, allocations: 0.7247 MB / 0.5597 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001233/0.1374, allocations: 55.41 kB / 0.5598 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1374, allocations: 0 / 0.5598 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.129e-05/0.1375, allocations: 59.47 kB / 0.5598 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001374/0.1376, allocations: 4 kB / 0.5598 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003355/0.138, allocations: 122.6 kB / 0.5599 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.1383, allocations: 0.669 MB / 0.5606 GB, free: 0 / 414.1 MB Notification: Performance of simCode: alias equations: time 9.648e-06/0.1383, allocations: 0 / 0.5606 GB, free: 0 / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.208e-05/0.1383, allocations: 15.48 kB / 0.5606 GB, free: 15.98 MB / 430.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1383, allocations: 0 / 0.5606 GB, free: 15.98 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02585/0.1642, allocations: 1.497 MB / 0.5621 GB, free: 14.56 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.117/8.281, allocations: 7.984 kB / 0.5621 GB, free: 14.55 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_4_1_0_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.245266867001192]