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.001576/0.001576, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.001852/0.001852, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.475/1.475, allocations: 230.2 MB / 254.5 MB, free: 15.26 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.2695/0.2695, allocations: 46.89 MB / 357.4 MB, free: 10.52 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.002297/0.002297, allocations: 83.84 kB / 0.4912 GB, free: 8.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1192, allocations: 65.99 MB / 0.5556 GB, free: 6.465 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001685/0.1209, allocations: 484.9 kB / 0.5561 GB, free: 5.984 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.1222, allocations: 0.7821 MB / 0.5569 GB, free: 5.199 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.974e-05/0.1222, allocations: 0 / 0.5569 GB, free: 5.199 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.338e-05/0.1222, allocations: 0 / 0.5569 GB, free: 5.199 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001843/0.1224, allocations: 15.94 kB / 0.5569 GB, free: 5.184 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.0007554/0.1232, allocations: 62.47 kB / 0.5569 GB, free: 5.125 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.332e-05/0.1232, allocations: 3.984 kB / 0.5569 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.935e-05/0.1233, allocations: 4 kB / 0.5569 GB, free: 5.117 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.846e-05/0.1233, allocations: 0 / 0.5569 GB, free: 5.117 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.348e-05/0.1234, allocations: 4 kB / 0.5569 GB, free: 5.113 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.017e-06/0.1234, allocations: 0 / 0.5569 GB, free: 5.113 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.1236, allocations: 63.94 kB / 0.557 GB, free: 5.051 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.654e-06/0.1236, allocations: 0 / 0.557 GB, free: 5.051 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.828e-05/0.1236, allocations: 3.938 kB / 0.557 GB, free: 5.047 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.1237, allocations: 47.92 kB / 0.5571 GB, free: 5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1237, allocations: 3.938 kB / 0.5571 GB, free: 4.996 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1237, allocations: 3.938 kB / 0.5571 GB, free: 4.992 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.1237, allocations: 0 / 0.5571 GB, free: 4.992 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.0004171/0.1242, allocations: 361 kB / 0.5574 GB, free: 4.582 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.1242, allocations: 12.03 kB / 0.5574 GB, free: 4.57 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.641e-05/0.1242, allocations: 34.75 kB / 0.5575 GB, free: 4.527 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.277e-05/0.1243, allocations: 0.9375 kB / 0.5575 GB, free: 4.527 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.1244, allocations: 160.4 kB / 0.5576 GB, free: 4.332 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.1244, allocations: 4.312 kB / 0.5576 GB, free: 4.328 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.1244, allocations: 4.375 kB / 0.5576 GB, free: 4.324 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.931e-05/0.1245, allocations: 30.25 kB / 0.5576 GB, free: 4.289 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.1245, allocations: 3.938 kB / 0.5577 GB, free: 4.285 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-06/0.1245, allocations: 0 / 0.5577 GB, free: 4.285 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.1245, allocations: 0 / 0.5577 GB, free: 4.285 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.699e-05/0.1245, allocations: 7.938 kB / 0.5577 GB, free: 4.277 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001504/0.1247, allocations: 149.7 kB / 0.5578 GB, free: 4.082 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.693e-05/0.1247, allocations: 18.61 kB / 0.5578 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.745e-05/0.1248, allocations: 8.844 kB / 0.5578 GB, free: 4.043 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.565e-06/0.1248, allocations: 0 / 0.5578 GB, free: 4.043 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.789e-05/0.1248, allocations: 56.27 kB / 0.5579 GB, free: 3.973 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1248, allocations: 0 / 0.5579 GB, free: 3.973 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001745/0.125, allocations: 79.34 kB / 0.558 GB, free: 3.883 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/0.1251, allocations: 81.09 kB / 0.558 GB, free: 3.785 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.78e-05/0.1251, allocations: 89.86 kB / 0.5581 GB, free: 3.688 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.1251, allocations: 25.7 kB / 0.5581 GB, free: 3.656 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.182e-05/0.1252, allocations: 80.14 kB / 0.5582 GB, free: 3.574 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.516e-05/0.1252, allocations: 4 kB / 0.5582 GB, free: 3.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.897e-05/0.1252, allocations: 13.72 kB / 0.5582 GB, free: 3.551 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1254, allocations: 315.1 kB / 0.5585 GB, free: 3.234 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.179e-05/0.1254, allocations: 4 kB / 0.5585 GB, free: 3.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.202e-06/0.1254, allocations: 0 / 0.5585 GB, free: 3.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.347e-05/0.1254, allocations: 64.25 kB / 0.5586 GB, free: 3.152 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1254, allocations: 0 / 0.5586 GB, free: 3.152 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.074e-05/0.1255, allocations: 67.34 kB / 0.5587 GB, free: 3.074 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.693e-05/0.1256, allocations: 33.64 kB / 0.5587 GB, free: 3.035 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.1256, allocations: 0 / 0.5587 GB, free: 3.035 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.1256, allocations: 96 / 0.5587 GB, free: 3.035 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.1256, allocations: 4 kB / 0.5587 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.1256, allocations: 4 kB / 0.5587 GB, free: 3.027 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.752e-05/0.1256, allocations: 3.984 kB / 0.5587 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.1256, allocations: 0 / 0.5587 GB, free: 3.023 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.925e-05/0.1257, allocations: 131.5 kB / 0.5588 GB, free: 2.879 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.07e-05/0.1257, allocations: 7.938 kB / 0.5588 GB, free: 2.871 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.895e-06/0.1257, allocations: 7.062 kB / 0.5589 GB, free: 2.867 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.1257, allocations: 3.938 kB / 0.5589 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1257, allocations: 4 kB / 0.5589 GB, free: 2.859 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.1257, allocations: 0 / 0.5589 GB, free: 2.859 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001203/0.1259, allocations: 157.7 kB / 0.559 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1259, allocations: 0 / 0.559 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.1259, allocations: 0 / 0.559 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.05e-05/0.1259, allocations: 3.938 kB / 0.559 GB, free: 2.652 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.912e-06/0.1259, allocations: 0 / 0.559 GB, free: 2.652 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1259, allocations: 0 / 0.559 GB, free: 2.652 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1259, allocations: 0 / 0.559 GB, free: 2.652 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001136/0.126, allocations: 100.5 kB / 0.5591 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.628e-05/0.126, allocations: 81.06 kB / 0.5592 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.707e-05/0.1261, allocations: 7.938 kB / 0.5592 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.096e-05/0.1261, allocations: 0 / 0.5592 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.529e-05/0.1261, allocations: 0 / 0.5592 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.1261, allocations: 3.984 kB / 0.5592 GB, free: 2.422 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.299e-05/0.1261, allocations: 83.27 kB / 0.5593 GB, free: 2.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1261, allocations: 0 / 0.5593 GB, free: 2.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002439/0.1264, allocations: 15.94 kB / 0.5593 GB, free: 2.324 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.0008143/0.1272, allocations: 0.7139 MB / 0.56 GB, free: 1.602 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001194/0.1273, allocations: 59.39 kB / 0.56 GB, free: 1.531 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1273, allocations: 3.938 kB / 0.56 GB, free: 1.527 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.163e-05/0.1274, allocations: 55.41 kB / 0.5601 GB, free: 1.461 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001363/0.1275, allocations: 4.062 kB / 0.5601 GB, free: 1.457 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003486/0.1278, allocations: 130.6 kB / 0.5602 GB, free: 1.289 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.1282, allocations: 0.669 MB / 0.5609 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.855e-06/0.1282, allocations: 0 / 0.5609 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.299e-05/0.1282, allocations: 11.44 kB / 0.5609 GB, free: 0.582 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.1282, allocations: 0 / 0.5609 GB, free: 0.582 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02422/0.1524, allocations: 1.506 MB / 0.5624 GB, free: 15.16 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.22/8.372, allocations: 3.75 kB / 0.5624 GB, free: 15.16 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.23347289673984] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.43936388893053 8.454453625 8.327834399 Calling exit ...