Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.00136/0.00136, allocations: 122.5 kB / 18.51 MB, free: 4.539 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.001576/0.001576, allocations: 215.2 kB / 21.46 MB, free: 1.59 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.471/1.471, allocations: 230.4 MB / 254.7 MB, free: 15.17 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2282/0.2282, allocations: 46.92 MB / 357.7 MB, free: 10.23 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-beta.om/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_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002391/0.002391, allocations: 79.86 kB / 0.4916 GB, free: 7.793 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1251, allocations: 66.04 MB / 0.5561 GB, free: 5.621 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001608/0.1267, allocations: 491.3 kB / 0.5566 GB, free: 5.137 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.1281, allocations: 0.7821 MB / 0.5574 GB, free: 4.352 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.885e-05/0.1281, allocations: 0 / 0.5574 GB, free: 4.352 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.388e-05/0.1282, allocations: 0 / 0.5574 GB, free: 4.352 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.1283, allocations: 19.86 kB / 0.5574 GB, free: 4.332 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.000583/0.1289, allocations: 45.42 kB / 0.5574 GB, free: 4.289 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.319e-05/0.129, allocations: 11.94 kB / 0.5574 GB, free: 4.277 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.368e-05/0.129, allocations: 7.984 kB / 0.5575 GB, free: 4.27 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.028e-05/0.129, allocations: 4 kB / 0.5575 GB, free: 4.266 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.863e-05/0.1291, allocations: 0 / 0.5575 GB, free: 4.266 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.474e-06/0.1291, allocations: 0 / 0.5575 GB, free: 4.266 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.1293, allocations: 59.95 kB / 0.5575 GB, free: 4.207 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.394e-06/0.1293, allocations: 0 / 0.5575 GB, free: 4.207 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.205e-05/0.1293, allocations: 7.922 kB / 0.5575 GB, free: 4.199 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.1294, allocations: 47.88 kB / 0.5576 GB, free: 4.152 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.1294, allocations: 3.984 kB / 0.5576 GB, free: 4.148 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1294, allocations: 0 / 0.5576 GB, free: 4.148 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.1294, allocations: 4 kB / 0.5576 GB, free: 4.145 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.0003985/0.1298, allocations: 353.1 kB / 0.5579 GB, free: 3.742 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.1299, allocations: 8.031 kB / 0.5579 GB, free: 3.734 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.621e-05/0.1299, allocations: 34.75 kB / 0.5579 GB, free: 3.691 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.251e-05/0.1299, allocations: 0.9375 kB / 0.558 GB, free: 3.691 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.1301, allocations: 160.4 kB / 0.5581 GB, free: 3.496 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.988e-06/0.1301, allocations: 4.312 kB / 0.5581 GB, free: 3.492 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.1301, allocations: 8.312 kB / 0.5581 GB, free: 3.484 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.146e-05/0.1302, allocations: 34.27 kB / 0.5581 GB, free: 3.445 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.1302, allocations: 3.938 kB / 0.5582 GB, free: 3.441 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.573e-06/0.1302, allocations: 0 / 0.5582 GB, free: 3.441 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.1302, allocations: 0 / 0.5582 GB, free: 3.441 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.831e-05/0.1302, allocations: 7.984 kB / 0.5582 GB, free: 3.434 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001722/0.1304, allocations: 141.7 kB / 0.5583 GB, free: 3.246 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.341e-05/0.1304, allocations: 18.52 kB / 0.5583 GB, free: 3.219 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.024e-05/0.1304, allocations: 12.95 kB / 0.5583 GB, free: 3.203 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.878e-06/0.1304, allocations: 4 kB / 0.5583 GB, free: 3.199 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.566e-05/0.1305, allocations: 60.25 kB / 0.5584 GB, free: 3.125 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1305, allocations: 0 / 0.5584 GB, free: 3.125 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.00017/0.1306, allocations: 63.34 kB / 0.5584 GB, free: 3.051 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/0.1307, allocations: 81.11 kB / 0.5585 GB, free: 2.953 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.042e-05/0.1308, allocations: 93.86 kB / 0.5586 GB, free: 2.852 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.1308, allocations: 25.95 kB / 0.5586 GB, free: 2.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.989e-05/0.1308, allocations: 88.12 kB / 0.5587 GB, free: 2.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.347e-05/0.1308, allocations: 0 / 0.5587 GB, free: 2.73 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.889e-05/0.1309, allocations: 17.66 kB / 0.5587 GB, free: 2.707 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.131, allocations: 314.8 kB / 0.559 GB, free: 2.391 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.906e-06/0.131, allocations: 0 / 0.559 GB, free: 2.391 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.759e-06/0.131, allocations: 4 kB / 0.559 GB, free: 2.387 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.871e-05/0.1311, allocations: 60.27 kB / 0.5591 GB, free: 2.312 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1311, allocations: 8.062 kB / 0.5591 GB, free: 2.305 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.71e-05/0.1312, allocations: 59.39 kB / 0.5592 GB, free: 2.234 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.617e-05/0.1312, allocations: 37.64 kB / 0.5592 GB, free: 2.191 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1312, allocations: 0 / 0.5592 GB, free: 2.191 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.1312, allocations: 0 / 0.5592 GB, free: 2.191 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.066e-06/0.1312, allocations: 4 kB / 0.5592 GB, free: 2.188 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.1312, allocations: 0 / 0.5592 GB, free: 2.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.795e-05/0.1313, allocations: 3.984 kB / 0.5592 GB, free: 2.184 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.623e-06/0.1313, allocations: 7.938 kB / 0.5592 GB, free: 2.176 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.0001048/0.1314, allocations: 139.6 kB / 0.5593 GB, free: 2.023 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.575e-05/0.1314, allocations: 11.94 kB / 0.5594 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.845e-06/0.1314, allocations: 3.125 kB / 0.5594 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.1314, allocations: 0 / 0.5594 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1314, allocations: 3.938 kB / 0.5594 GB, free: 2.008 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.1314, allocations: 0 / 0.5594 GB, free: 2.008 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001152/0.1315, allocations: 145.7 kB / 0.5595 GB, free: 1.816 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1315, allocations: 4 kB / 0.5595 GB, free: 1.812 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1315, allocations: 0 / 0.5595 GB, free: 1.812 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.1315, allocations: 3.938 kB / 0.5595 GB, free: 1.809 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-06/0.1315, allocations: 4 kB / 0.5595 GB, free: 1.805 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.1315, allocations: 0 / 0.5595 GB, free: 1.805 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1315, allocations: 0 / 0.5595 GB, free: 1.805 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001042/0.1316, allocations: 92.48 kB / 0.5596 GB, free: 1.691 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.04e-05/0.1317, allocations: 81.06 kB / 0.5597 GB, free: 1.594 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.1317, allocations: 3.938 kB / 0.5597 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.044e-05/0.1317, allocations: 4 kB / 0.5597 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.496e-05/0.1317, allocations: 3.938 kB / 0.5597 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-06/0.1317, allocations: 4.031 kB / 0.5597 GB, free: 1.578 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.696e-05/0.1318, allocations: 75.28 kB / 0.5598 GB, free: 1.504 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1318, allocations: 0 / 0.5598 GB, free: 1.504 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002219/0.132, allocations: 27.92 kB / 0.5598 GB, free: 1.477 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.0007581/0.1327, allocations: 0.7212 MB / 0.5605 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001062/0.1329, allocations: 63.41 kB / 0.5606 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1329, allocations: 0 / 0.5606 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.297e-05/0.1329, allocations: 63.33 kB / 0.5606 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.133, allocations: 0 / 0.5606 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003188/0.1333, allocations: 118.6 kB / 0.5607 GB, free: 452 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003206/0.1337, allocations: 0.6729 MB / 0.5614 GB, free: 15.74 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.163e-06/0.1337, allocations: 0 / 0.5614 GB, free: 15.74 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.858e-05/0.1337, allocations: 7.438 kB / 0.5614 GB, free: 15.73 MB / 430.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1337, allocations: 4.125 kB / 0.5614 GB, free: 15.73 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02582/0.1595, allocations: 1.499 MB / 0.5629 GB, free: 14.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.119/8.279, allocations: 9.953 kB / 0.5629 GB, free: 14.31 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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-beta_om_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.256168451625854] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.351500774268061 8.380106424 8.245911836 Calling exit ...