Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.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.001656/0.001656, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001984/0.001984, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.481/1.481, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.2479/0.2479, allocations: 46.92 MB / 357.1 MB, free: 10.32 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.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 67.89 kB / 0.4909 GB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1292, allocations: 65.99 MB / 0.5554 GB, free: 5.863 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001524/0.1307, allocations: 489 kB / 0.5558 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007578/0.1383, allocations: 4.915 MB / 0.5606 GB, free: 448 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.269e-05/0.1383, allocations: 0 / 0.5606 GB, free: 448 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 9.517e-06/0.1383, allocations: 4 kB / 0.5606 GB, free: 444 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 3.838e-06/0.1383, allocations: 0 / 0.5606 GB, free: 444 kB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.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.006583/0.1449, allocations: 2.935 MB / 0.5635 GB, free: 13.51 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.478e-05/0.1449, allocations: 7.984 kB / 0.5635 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.624e-05/0.1449, allocations: 0 / 0.5635 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.426e-05/0.145, allocations: 0 / 0.5635 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.195e-05/0.145, allocations: 4 kB / 0.5635 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.568e-06/0.145, allocations: 0 / 0.5635 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02701/0.172, allocations: 19.57 MB / 0.5826 GB, free: 9.914 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.13e-05/0.172, allocations: 7.922 kB / 0.5826 GB, free: 9.906 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.79e-05/0.172, allocations: 0 / 0.5826 GB, free: 9.906 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2893/0.4613, allocations: 27.48 MB / 0.6095 GB, free: 20.97 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.4614, allocations: 0 / 0.6095 GB, free: 20.97 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.4614, allocations: 2.031 kB / 0.6095 GB, free: 20.97 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.4614, allocations: 0 / 0.6095 GB, free: 20.97 MB / 446.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.01526/0.4766, allocations: 0.6748 MB / 0.6101 GB, free: 20.38 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.4767, allocations: 9.656 kB / 0.6101 GB, free: 20.38 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.054e-05/0.4767, allocations: 33.97 kB / 0.6102 GB, free: 20.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.501e-05/0.4767, allocations: 2.938 kB / 0.6102 GB, free: 20.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.596e-05/0.4768, allocations: 165.2 kB / 0.6103 GB, free: 20.14 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.422e-06/0.4768, allocations: 1.312 kB / 0.6103 GB, free: 20.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.4768, allocations: 1.438 kB / 0.6103 GB, free: 20.14 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.62e-05/0.4769, allocations: 27.39 kB / 0.6103 GB, free: 20.11 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.4769, allocations: 0 / 0.6103 GB, free: 20.11 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.314e-06/0.4769, allocations: 3.562 kB / 0.6104 GB, free: 20.11 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.4769, allocations: 0 / 0.6104 GB, free: 20.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.766e-05/0.4769, allocations: 9.047 kB / 0.6104 GB, free: 20.11 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.82e-05/0.477, allocations: 147.3 kB / 0.6105 GB, free: 19.92 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.411e-05/0.477, allocations: 20.59 kB / 0.6105 GB, free: 19.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.261e-05/0.477, allocations: 8.172 kB / 0.6105 GB, free: 19.89 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.635e-06/0.477, allocations: 0 / 0.6105 GB, free: 19.89 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.4771, allocations: 64.17 kB / 0.6106 GB, free: 19.82 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.4771, allocations: 0.9375 kB / 0.6106 GB, free: 19.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001484/0.4772, allocations: 64.19 kB / 0.6107 GB, free: 19.76 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.688e-05/0.4772, allocations: 77.11 kB / 0.6107 GB, free: 19.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.646e-05/0.4772, allocations: 93.48 kB / 0.6108 GB, free: 19.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.431e-06/0.4772, allocations: 25.7 kB / 0.6108 GB, free: 19.54 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.337e-06/0.4773, allocations: 85.39 kB / 0.6109 GB, free: 19.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.032e-05/0.4773, allocations: 1.375 kB / 0.6109 GB, free: 19.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.13e-05/0.4773, allocations: 11.22 kB / 0.6109 GB, free: 19.44 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.976e-05/0.4773, allocations: 320.1 kB / 0.6112 GB, free: 19.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.105e-06/0.4773, allocations: 0 / 0.6112 GB, free: 19.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.292e-06/0.4774, allocations: 5.016 kB / 0.6112 GB, free: 19.12 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.99e-05/0.4774, allocations: 65.67 kB / 0.6113 GB, free: 19.05 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4774, allocations: 3.938 kB / 0.6113 GB, free: 19.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.117e-05/0.4774, allocations: 62.36 kB / 0.6114 GB, free: 18.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.4775, allocations: 31.27 kB / 0.6114 GB, free: 18.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.416e-06/0.4775, allocations: 0.75 kB / 0.6114 GB, free: 18.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.4775, allocations: 2.75 kB / 0.6114 GB, free: 18.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.904e-06/0.4775, allocations: 5.406 kB / 0.6114 GB, free: 18.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.4775, allocations: 5.531 kB / 0.6114 GB, free: 18.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.383e-05/0.4775, allocations: 0 / 0.6114 GB, free: 18.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.802e-06/0.4775, allocations: 3.844 kB / 0.6114 GB, free: 18.95 MB / 446.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 4.772e-05/0.4775, allocations: 150.8 kB / 0.6116 GB, free: 18.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.944e-06/0.4776, allocations: 2.344 kB / 0.6116 GB, free: 18.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.336e-06/0.4776, allocations: 4.938 kB / 0.6116 GB, free: 18.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.01e-07/0.4776, allocations: 0 / 0.6116 GB, free: 18.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.4776, allocations: 0 / 0.6116 GB, free: 18.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-06/0.4776, allocations: 0 / 0.6116 GB, free: 18.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.207e-05/0.4776, allocations: 151.1 kB / 0.6117 GB, free: 18.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.4776, allocations: 2.188 kB / 0.6117 GB, free: 18.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.4776, allocations: 1.781 kB / 0.6117 GB, free: 18.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.4776, allocations: 0 / 0.6117 GB, free: 18.61 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-06/0.4776, allocations: 0.7812 kB / 0.6117 GB, free: 18.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.4776, allocations: 1.812 kB / 0.6117 GB, free: 18.61 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4776, allocations: 1.031 kB / 0.6117 GB, free: 18.61 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.845e-05/0.4777, allocations: 94.47 kB / 0.6118 GB, free: 18.51 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.416e-05/0.4777, allocations: 77.11 kB / 0.6119 GB, free: 18.42 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.226e-05/0.4777, allocations: 3.688 kB / 0.6119 GB, free: 18.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.001e-05/0.4777, allocations: 2.766 kB / 0.6119 GB, free: 18.42 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.701e-05/0.4778, allocations: 2.719 kB / 0.6119 GB, free: 18.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.4778, allocations: 3 kB / 0.6119 GB, free: 18.42 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.178e-05/0.4778, allocations: 77.78 kB / 0.612 GB, free: 18.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4778, allocations: 4 kB / 0.612 GB, free: 18.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.02033/0.4981, allocations: 3.784 MB / 0.6157 GB, free: 17.62 MB / 446.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.04301/0.5411, allocations: 1.513 MB / 0.6171 GB, free: 16.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001531/0.5413, allocations: 62.41 kB / 0.6172 GB, free: 16.25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.5413, allocations: 3.844 kB / 0.6172 GB, free: 16.25 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.711e-05/0.5413, allocations: 58.17 kB / 0.6173 GB, free: 16.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002417/0.5416, allocations: 4.719 kB / 0.6173 GB, free: 16.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01877/0.5603, allocations: 338.8 kB / 0.6176 GB, free: 15.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001165/0.5604, allocations: 0.6742 MB / 0.6182 GB, free: 15.14 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.224e-06/0.5604, allocations: 0 / 0.6182 GB, free: 15.14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.65e-05/0.5605, allocations: 11.44 kB / 0.6183 GB, free: 15.13 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5605, allocations: 4.125 kB / 0.6183 GB, free: 15.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.229/0.7895, allocations: 113.8 MB / 0.7294 GB, free: 13.34 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.69/16.48, allocations: 17.61 kB / 0.7294 GB, free: 13.33 MB / 0.545 GB " [Timeout remaining time 643] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.442136026918888] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 16.588377013104036 16.604857142 16.140243634 Calling exit ...