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.001843/0.001843, allocations: 109 kB / 21.23 MB, free: 0.6641 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.002274/0.002274, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.487/1.487, allocations: 230.5 MB / 258.2 MB, free: 8.004 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.2367/0.2367, allocations: 46.94 MB / 361.6 MB, free: 4.215 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.002536/0.002536, allocations: 79.88 kB / 0.497 GB, free: 7.812 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3226, allocations: 66.08 MB / 0.5615 GB, free: 4.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001575/0.3242, allocations: 0.4888 MB / 0.562 GB, free: 3.863 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.3256, allocations: 0.8708 MB / 0.5628 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.236e-05/0.3256, allocations: 0 / 0.5628 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.373e-05/0.3256, allocations: 0 / 0.5628 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.3258, allocations: 3.938 kB / 0.5628 GB, free: 2.988 MB / 398.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.0006611/0.3265, allocations: 59.11 kB / 0.5629 GB, free: 2.934 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.669e-05/0.3265, allocations: 7.938 kB / 0.5629 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.083e-05/0.3266, allocations: 7.969 kB / 0.5629 GB, free: 2.918 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.828e-05/0.3266, allocations: 0 / 0.5629 GB, free: 2.918 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.185e-05/0.3267, allocations: 4 kB / 0.5629 GB, free: 2.914 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.197e-06/0.3267, allocations: 4 kB / 0.5629 GB, free: 2.91 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001646/0.3269, allocations: 59.95 kB / 0.563 GB, free: 2.852 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.19e-05/0.3269, allocations: 3.938 kB / 0.563 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.308e-05/0.3269, allocations: 4 kB / 0.563 GB, free: 2.844 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001501/0.327, allocations: 51.72 kB / 0.563 GB, free: 2.797 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.327, allocations: 3.984 kB / 0.563 GB, free: 2.793 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.327, allocations: 0 / 0.563 GB, free: 2.793 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.3271, allocations: 0 / 0.563 GB, free: 2.793 MB / 398.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.0003831/0.3274, allocations: 274.1 kB / 0.5633 GB, free: 2.488 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.3275, allocations: 16.02 kB / 0.5633 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.629e-05/0.3275, allocations: 34.75 kB / 0.5633 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.398e-05/0.3275, allocations: 0.9375 kB / 0.5633 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/0.3276, allocations: 110.5 kB / 0.5634 GB, free: 2.297 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.3277, allocations: 4.312 kB / 0.5634 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.235e-06/0.3277, allocations: 8.312 kB / 0.5634 GB, free: 2.285 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.605e-05/0.3277, allocations: 26.27 kB / 0.5635 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.3277, allocations: 3.938 kB / 0.5635 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.3278, allocations: 0 / 0.5635 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.3278, allocations: 4 kB / 0.5635 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.643e-05/0.3278, allocations: 4 kB / 0.5635 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001377/0.3279, allocations: 116.8 kB / 0.5636 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.415e-05/0.328, allocations: 26.55 kB / 0.5636 GB, free: 2.051 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.451e-05/0.328, allocations: 4.859 kB / 0.5636 GB, free: 2.043 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.116e-06/0.328, allocations: 0 / 0.5636 GB, free: 2.043 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.925e-05/0.328, allocations: 60.33 kB / 0.5637 GB, free: 1.969 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.328, allocations: 0 / 0.5637 GB, free: 1.969 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001778/0.3282, allocations: 71.33 kB / 0.5637 GB, free: 1.887 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.468e-05/0.3283, allocations: 77.11 kB / 0.5638 GB, free: 1.793 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.242e-05/0.3284, allocations: 93.86 kB / 0.5639 GB, free: 1.691 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.3284, allocations: 25.7 kB / 0.5639 GB, free: 1.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.916e-05/0.3284, allocations: 84.14 kB / 0.564 GB, free: 1.574 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.328e-05/0.3284, allocations: 0 / 0.564 GB, free: 1.574 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.121e-05/0.3285, allocations: 17.64 kB / 0.564 GB, free: 1.551 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.3286, allocations: 319.1 kB / 0.5643 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.889e-06/0.3286, allocations: 0 / 0.5643 GB, free: 1.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.057e-06/0.3287, allocations: 4 kB / 0.5643 GB, free: 1.227 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.256e-05/0.3287, allocations: 60.27 kB / 0.5644 GB, free: 1.152 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3287, allocations: 4 kB / 0.5644 GB, free: 1.148 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.279e-05/0.3288, allocations: 63.39 kB / 0.5645 GB, free: 1.074 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.77e-05/0.3288, allocations: 33.64 kB / 0.5645 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3288, allocations: 0 / 0.5645 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.3288, allocations: 8.094 kB / 0.5645 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.3288, allocations: 0 / 0.5645 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.3289, allocations: 0 / 0.5645 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.522e-05/0.3289, allocations: 3.938 kB / 0.5645 GB, free: 1.023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.3289, allocations: 0 / 0.5645 GB, free: 1.023 MB / 398.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.0001039/0.329, allocations: 139.5 kB / 0.5646 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.48e-05/0.329, allocations: 7.922 kB / 0.5646 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.226e-05/0.329, allocations: 6.938 kB / 0.5646 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.329, allocations: 0 / 0.5646 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.329, allocations: 4 kB / 0.5647 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.329, allocations: 0 / 0.5647 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001015/0.3291, allocations: 116.8 kB / 0.5648 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3291, allocations: 0 / 0.5648 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3291, allocations: 0 / 0.5648 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.3291, allocations: 7.922 kB / 0.5648 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.3291, allocations: 7.938 kB / 0.5648 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.3291, allocations: 0 / 0.5648 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3291, allocations: 0 / 0.5648 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001141/0.3292, allocations: 90.84 kB / 0.5649 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.194e-06/0.3293, allocations: 7.938 kB / 0.5649 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.3293, allocations: 3.938 kB / 0.5649 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.053e-05/0.3293, allocations: 0 / 0.5649 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.91e-05/0.3293, allocations: 7.938 kB / 0.5649 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.509e-06/0.3293, allocations: 4 kB / 0.5649 GB, free: 0.543 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.936e-05/0.3293, allocations: 75.28 kB / 0.565 GB, free: 480 kB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3293, allocations: 0 / 0.565 GB, free: 480 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002261/0.3296, allocations: 24.06 kB / 0.565 GB, free: 456 kB / 398.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.0008023/0.3304, allocations: 0.7118 MB / 0.5657 GB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001098/0.3305, allocations: 63.41 kB / 0.5657 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3305, allocations: 0 / 0.5657 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.888e-05/0.3305, allocations: 55.34 kB / 0.5658 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001433/0.3307, allocations: 8.125 kB / 0.5658 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003438/0.331, allocations: 122.6 kB / 0.5659 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.3313, allocations: 0.6768 MB / 0.5666 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.005e-06/0.3313, allocations: 0 / 0.5666 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.244e-05/0.3313, allocations: 11.38 kB / 0.5666 GB, free: 14.7 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3313, allocations: 0 / 0.5666 GB, free: 14.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.3578, allocations: 1.51 MB / 0.5681 GB, free: 13.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.272/8.63, allocations: 4.062 kB / 0.5681 GB, free: 13.25 MB / 414.1 MB " [Timeout remaining time 651] (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.433288149535656] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.705831571947783 8.733229754 8.40142494 Calling exit ...