Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.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.001713/0.001713, allocations: 114.9 kB / 18.45 MB, free: 4.613 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.002244/0.002244, allocations: 210.5 kB / 21.41 MB, free: 1.66 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.482/1.482, allocations: 227.4 MB / 251.7 MB, free: 80 kB / 190.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.2305/0.2305, allocations: 46.16 MB / 351.1 MB, free: 14.4 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.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2",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.002303/0.002303, allocations: 81.23 kB / 489.6 MB, free: 28.24 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1341, allocations: 62.45 MB / 0.5392 GB, free: 4.812 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001716/0.1358, allocations: 490.4 kB / 0.5396 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008393/0.1443, allocations: 4.877 MB / 0.5444 GB, free: 15.42 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.315e-05/0.1443, allocations: 4 kB / 0.5444 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.946e-05/0.1444, allocations: 3.938 kB / 0.5444 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.622e-06/0.1444, allocations: 0 / 0.5444 GB, free: 15.41 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:214:3-483:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.007349/0.1518, allocations: 2.941 MB / 0.5473 GB, free: 12.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.184e-05/0.1518, allocations: 0 / 0.5473 GB, free: 12.48 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.407e-05/0.1519, allocations: 3.984 kB / 0.5473 GB, free: 12.48 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.773e-05/0.1519, allocations: 4 kB / 0.5473 GB, free: 12.47 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.987e-05/0.1519, allocations: 4 kB / 0.5473 GB, free: 12.47 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.693e-06/0.1519, allocations: 0 / 0.5473 GB, free: 12.47 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0286/0.1805, allocations: 18.81 MB / 0.5656 GB, free: 9.641 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.261e-05/0.1806, allocations: 7.984 kB / 0.5657 GB, free: 9.633 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.122e-05/0.1807, allocations: 3.938 kB / 0.5657 GB, free: 9.629 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03931/0.22, allocations: 27.49 MB / 0.5925 GB, free: 14.1 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.22, allocations: 0 / 0.5925 GB, free: 14.1 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.22, allocations: 0 / 0.5925 GB, free: 14.1 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.2201, allocations: 4 kB / 0.5925 GB, free: 14.09 MB / 462.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.007068/0.2271, allocations: 0.6684 MB / 0.5932 GB, free: 13.38 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.2272, allocations: 12.03 kB / 0.5932 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.343e-05/0.2272, allocations: 30.75 kB / 0.5932 GB, free: 13.32 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.826e-05/0.2273, allocations: 4.875 kB / 0.5932 GB, free: 13.32 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.2274, allocations: 171.6 kB / 0.5934 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.2274, allocations: 0 / 0.5934 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.139e-05/0.2274, allocations: 0 / 0.5934 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.168e-05/0.2275, allocations: 33.64 kB / 0.5934 GB, free: 13.07 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.2275, allocations: 0 / 0.5934 GB, free: 13.07 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.753e-06/0.2275, allocations: 0 / 0.5934 GB, free: 13.07 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.2275, allocations: 0 / 0.5934 GB, free: 13.07 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.984e-05/0.2276, allocations: 8 kB / 0.5934 GB, free: 13.07 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000148/0.2277, allocations: 149.6 kB / 0.5935 GB, free: 12.87 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.702e-05/0.2278, allocations: 26.66 kB / 0.5936 GB, free: 12.84 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.605e-05/0.2278, allocations: 8.797 kB / 0.5936 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.744e-06/0.2278, allocations: 0 / 0.5936 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.348e-05/0.2279, allocations: 60.27 kB / 0.5936 GB, free: 12.75 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.2279, allocations: 0 / 0.5936 GB, free: 12.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001629/0.228, allocations: 63.39 kB / 0.5937 GB, free: 12.68 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/0.2281, allocations: 81.23 kB / 0.5938 GB, free: 12.58 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.954e-05/0.2282, allocations: 89.86 kB / 0.5939 GB, free: 12.48 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.2282, allocations: 29.7 kB / 0.5939 GB, free: 12.45 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.188e-05/0.2282, allocations: 80.14 kB / 0.594 GB, free: 12.36 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.911e-05/0.2282, allocations: 3.984 kB / 0.594 GB, free: 12.36 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.007e-05/0.2283, allocations: 17.72 kB / 0.594 GB, free: 12.34 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.2284, allocations: 318.8 kB / 0.5943 GB, free: 12.02 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.09e-05/0.2284, allocations: 0 / 0.5943 GB, free: 12.02 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.646e-06/0.2284, allocations: 11.94 kB / 0.5943 GB, free: 12 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.273e-05/0.2285, allocations: 64.25 kB / 0.5944 GB, free: 11.93 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2285, allocations: 3.938 kB / 0.5944 GB, free: 11.92 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.146e-05/0.2286, allocations: 63.41 kB / 0.5944 GB, free: 11.85 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.762e-05/0.2286, allocations: 29.7 kB / 0.5945 GB, free: 11.81 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.2287, allocations: 0 / 0.5945 GB, free: 11.81 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.2287, allocations: 0 / 0.5945 GB, free: 11.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.2287, allocations: 0 / 0.5945 GB, free: 11.81 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.2287, allocations: 4 kB / 0.5945 GB, free: 11.81 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.498e-05/0.2287, allocations: 4.094 kB / 0.5945 GB, free: 11.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-06/0.2287, allocations: 3.984 kB / 0.5945 GB, free: 11.8 MB / 462.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.149e-05/0.2288, allocations: 139.5 kB / 0.5946 GB, free: 11.65 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-06/0.2288, allocations: 7.875 kB / 0.5946 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.556e-06/0.2288, allocations: 3.125 kB / 0.5946 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.61e-07/0.2289, allocations: 0 / 0.5946 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.2289, allocations: 0 / 0.5946 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.2289, allocations: 0 / 0.5946 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.229, allocations: 153.6 kB / 0.5948 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.229, allocations: 4 kB / 0.5948 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.229, allocations: 0 / 0.5948 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.229, allocations: 0 / 0.5948 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.082e-06/0.229, allocations: 0 / 0.5948 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.229, allocations: 0 / 0.5948 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.229, allocations: 0 / 0.5948 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001043/0.2291, allocations: 98.77 kB / 0.5949 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.887e-05/0.2292, allocations: 77.11 kB / 0.5949 GB, free: 11.22 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.2292, allocations: 4.031 kB / 0.5949 GB, free: 11.22 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.136e-06/0.2292, allocations: 4 kB / 0.5949 GB, free: 11.21 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.278e-05/0.2292, allocations: 0 / 0.5949 GB, free: 11.21 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-06/0.2292, allocations: 0 / 0.5949 GB, free: 11.21 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.43e-05/0.2293, allocations: 75.28 kB / 0.595 GB, free: 11.14 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2293, allocations: 3.938 kB / 0.595 GB, free: 11.14 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01013/0.2394, allocations: 3.791 MB / 0.5987 GB, free: 7.344 MB / 462.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.01918/0.2586, allocations: 1.507 MB / 0.6002 GB, free: 5.812 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001514/0.2588, allocations: 71.27 kB / 0.6003 GB, free: 5.73 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.2588, allocations: 0 / 0.6003 GB, free: 5.73 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 3.811e-05/0.2589, allocations: 55.41 kB / 0.6003 GB, free: 5.664 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001366/0.259, allocations: 1.531 kB / 0.6003 GB, free: 5.664 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006201/0.2652, allocations: 348.9 kB / 0.6006 GB, free: 5.281 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.2656, allocations: 0.6728 MB / 0.6013 GB, free: 4.582 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 6.472e-06/0.2656, allocations: 0 / 0.6013 GB, free: 4.582 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.456e-05/0.2656, allocations: 11.44 kB / 0.6013 GB, free: 4.57 MB / 462.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2656, allocations: 0 / 0.6013 GB, free: 4.57 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4288/0.6944, allocations: 113.8 MB / 0.7125 GB, free: 356 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.46/16.16, allocations: 15.2 kB / 0.7125 GB, free: 352 kB / 0.4981 GB " [Timeout remaining time 644] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.12585995788686] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 16.264200445031747 16.285985629 16.062766124 Calling exit ...