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.001296/0.001296, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001387/0.001387, allocations: 202.5 kB / 23.73 MB, free: 4.379 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.424/1.424, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2224/0.2224, allocations: 46.94 MB / 360.9 MB, free: 4.066 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.00205/0.00205, allocations: 67.89 kB / 0.4961 GB, free: 7.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3074, allocations: 66.04 MB / 0.5606 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001726/0.3091, allocations: 497 kB / 0.561 GB, free: 3.789 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007541/0.3166, allocations: 4.58 MB / 0.5655 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.542e-05/0.3167, allocations: 0 / 0.5655 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.08e-05/0.3167, allocations: 3.938 kB / 0.5655 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.33e-06/0.3167, allocations: 0 / 0.5655 GB, free: 15.18 MB / 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.007603/0.3243, allocations: 3.282 MB / 0.5687 GB, free: 11.91 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.839e-05/0.3243, allocations: 0 / 0.5687 GB, free: 11.91 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.321e-05/0.3244, allocations: 8 kB / 0.5687 GB, free: 11.9 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.239e-05/0.3244, allocations: 0 / 0.5687 GB, free: 11.9 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.458e-05/0.3244, allocations: 0 / 0.5687 GB, free: 11.9 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.451e-06/0.3244, allocations: 4 kB / 0.5687 GB, free: 11.89 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03108/0.3555, allocations: 19.97 MB / 0.5882 GB, free: 7.898 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.612e-05/0.3555, allocations: 0 / 0.5882 GB, free: 7.898 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.402e-05/0.3555, allocations: 4 kB / 0.5882 GB, free: 7.895 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03576/0.3913, allocations: 26.13 MB / 0.6138 GB, free: 13.72 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3913, allocations: 3.938 kB / 0.6138 GB, free: 13.71 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3913, allocations: 0 / 0.6138 GB, free: 13.71 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.3913, allocations: 0 / 0.6138 GB, free: 13.71 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.006554/0.3979, allocations: 0.5943 MB / 0.6143 GB, free: 13.09 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.3979, allocations: 8.031 kB / 0.6144 GB, free: 13.08 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.691e-05/0.398, allocations: 38.75 kB / 0.6144 GB, free: 13.03 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.956e-05/0.398, allocations: 0.9375 kB / 0.6144 GB, free: 13.03 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.945e-05/0.3981, allocations: 113.2 kB / 0.6145 GB, free: 12.89 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.3981, allocations: 3.984 kB / 0.6145 GB, free: 12.89 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/0.3981, allocations: 0 / 0.6145 GB, free: 12.89 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.3982, allocations: 59.34 kB / 0.6146 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-06/0.3982, allocations: 0 / 0.6146 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-06/0.3982, allocations: 3.938 kB / 0.6146 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.3982, allocations: 0 / 0.6146 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.196e-05/0.3983, allocations: 29.7 kB / 0.6146 GB, free: 12.78 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001421/0.3984, allocations: 132.6 kB / 0.6147 GB, free: 12.61 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.365e-05/0.3985, allocations: 44.31 kB / 0.6148 GB, free: 12.55 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.993e-05/0.3985, allocations: 30.56 kB / 0.6148 GB, free: 12.51 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-06/0.3985, allocations: 0 / 0.6148 GB, free: 12.51 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.185e-05/0.3986, allocations: 68.27 kB / 0.6149 GB, free: 12.43 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3986, allocations: 0 / 0.6149 GB, free: 12.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001968/0.3988, allocations: 114.8 kB / 0.615 GB, free: 12.29 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.234e-05/0.3988, allocations: 77.11 kB / 0.615 GB, free: 12.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.479e-05/0.3989, allocations: 93.8 kB / 0.6151 GB, free: 12.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.3989, allocations: 25.7 kB / 0.6152 GB, free: 12.07 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.542e-05/0.3989, allocations: 92.25 kB / 0.6152 GB, free: 11.97 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.801e-05/0.399, allocations: 4 kB / 0.6152 GB, free: 11.97 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.582e-05/0.399, allocations: 9.719 kB / 0.6153 GB, free: 11.95 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3991, allocations: 318.8 kB / 0.6156 GB, free: 11.63 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.576e-05/0.3991, allocations: 29.7 kB / 0.6156 GB, free: 11.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.032e-05/0.3992, allocations: 25.7 kB / 0.6156 GB, free: 11.57 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.525e-05/0.3992, allocations: 68.2 kB / 0.6157 GB, free: 11.48 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3992, allocations: 0 / 0.6157 GB, free: 11.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.886e-05/0.3993, allocations: 89.09 kB / 0.6158 GB, free: 11.38 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/0.3994, allocations: 33.8 kB / 0.6158 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.3994, allocations: 0 / 0.6158 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.3994, allocations: 4 kB / 0.6158 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.3994, allocations: 0 / 0.6158 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.3994, allocations: 0 / 0.6158 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.75e-05/0.3994, allocations: 3.938 kB / 0.6158 GB, free: 11.33 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.3994, allocations: 0 / 0.6158 GB, free: 11.33 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 0.0001018/0.3995, allocations: 143.5 kB / 0.6159 GB, free: 11.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.995e-06/0.3995, allocations: 0 / 0.6159 GB, free: 11.18 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.175e-05/0.3995, allocations: 3 kB / 0.6159 GB, free: 11.17 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.3995, allocations: 0 / 0.6159 GB, free: 11.17 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.3995, allocations: 4 kB / 0.6159 GB, free: 11.17 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.3995, allocations: 3.938 kB / 0.6159 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.814e-05/0.3996, allocations: 116.8 kB / 0.6161 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3996, allocations: 0 / 0.6161 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.595e-06/0.3996, allocations: 3.938 kB / 0.6161 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.3996, allocations: 0 / 0.6161 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.3996, allocations: 3.984 kB / 0.6161 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3997, allocations: 8 kB / 0.6161 GB, free: 10.99 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3997, allocations: 0 / 0.6161 GB, free: 10.99 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001178/0.3998, allocations: 120.4 kB / 0.6162 GB, free: 10.84 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.402e-06/0.3998, allocations: 8.016 kB / 0.6162 GB, free: 10.84 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.098e-05/0.3998, allocations: 0 / 0.6162 GB, free: 10.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.496e-06/0.3998, allocations: 0 / 0.6162 GB, free: 10.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.728e-05/0.3998, allocations: 4 kB / 0.6162 GB, free: 10.83 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.049e-06/0.3998, allocations: 7.875 kB / 0.6162 GB, free: 10.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.971e-05/0.3999, allocations: 75.28 kB / 0.6163 GB, free: 10.75 MB / 462.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3999, allocations: 0 / 0.6163 GB, free: 10.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01029/0.4101, allocations: 3.787 MB / 0.62 GB, free: 6.961 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.01808/0.4282, allocations: 1.544 MB / 0.6215 GB, free: 5.402 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001774/0.4284, allocations: 114.8 kB / 0.6216 GB, free: 5.266 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4284, allocations: 0 / 0.6216 GB, free: 5.266 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 5.75e-05/0.4285, allocations: 89.03 kB / 0.6217 GB, free: 5.16 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001395/0.4286, allocations: 6.438 kB / 0.6217 GB, free: 5.156 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008206/0.4368, allocations: 374.6 kB / 0.622 GB, free: 4.742 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.634e-05/0.4369, allocations: 55.36 kB / 0.6221 GB, free: 4.668 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 6.893e-06/0.4369, allocations: 0 / 0.6221 GB, free: 4.668 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.469e-05/0.4369, allocations: 15.56 kB / 0.6221 GB, free: 4.652 MB / 462.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4369, allocations: 0 / 0.6221 GB, free: 4.652 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1806/0.6175, allocations: 114.4 MB / 0.7338 GB, free: 2.176 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.54/19.16, allocations: 3.125 kB / 0.7338 GB, free: 2.176 MB / 0.5606 GB " [Timeout remaining time 641] (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: 22.155096530972514] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 19.298876079992624 19.540170182 19.146479087 Calling exit ...