Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 110.4 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 183.9 kB / 18.71 MB, free: 4.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2094/0.2094, allocations: 44.18 MB / 336.7 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001402, allocations: 63.89 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3644, allocations: 60.82 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001386/0.3658, allocations: 498.5 kB / 0.5189 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006455/0.3723, allocations: 4.831 MB / 0.5236 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.594e-05/0.3723, allocations: 5.531 kB / 0.5236 GB, free: 15.78 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.681e-05/0.3724, allocations: 0 / 0.5236 GB, free: 15.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.061e-06/0.3724, allocations: 0 / 0.5236 GB, free: 15.78 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.008061/0.3804, allocations: 2.934 MB / 0.5265 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.91e-05/0.3805, allocations: 1.344 kB / 0.5265 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.135e-05/0.3806, allocations: 5.359 kB / 0.5265 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.808e-05/0.3806, allocations: 3.984 kB / 0.5265 GB, free: 14.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.555e-05/0.3806, allocations: 5.344 kB / 0.5265 GB, free: 14.58 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.571e-06/0.3806, allocations: 0 / 0.5265 GB, free: 14.58 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03573/0.4163, allocations: 18.81 MB / 0.5449 GB, free: 1.035 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.14e-05/0.4164, allocations: 4 kB / 0.5449 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.327e-05/0.4165, allocations: 0 / 0.5449 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03683/0.4533, allocations: 27.47 MB / 0.5717 GB, free: 5.523 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.4533, allocations: 0 / 0.5717 GB, free: 5.523 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4534, allocations: 0 / 0.5717 GB, free: 5.523 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.4534, allocations: 0 / 0.5717 GB, free: 5.523 MB / 430.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.007782/0.4612, allocations: 0.6534 MB / 0.5723 GB, free: 4.816 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.4612, allocations: 8.031 kB / 0.5723 GB, free: 4.809 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.085e-05/0.4613, allocations: 30.75 kB / 0.5724 GB, free: 4.77 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.4613, allocations: 8.875 kB / 0.5724 GB, free: 4.762 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.4615, allocations: 167 kB / 0.5725 GB, free: 4.559 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.4615, allocations: 4 kB / 0.5725 GB, free: 4.555 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.4615, allocations: 0 / 0.5725 GB, free: 4.555 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001008/0.4616, allocations: 33.64 kB / 0.5726 GB, free: 4.516 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.4616, allocations: 0 / 0.5726 GB, free: 4.516 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.4616, allocations: 4 kB / 0.5726 GB, free: 4.512 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.4616, allocations: 3.984 kB / 0.5726 GB, free: 4.508 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.046e-05/0.4617, allocations: 0 / 0.5726 GB, free: 4.508 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001513/0.4618, allocations: 145.6 kB / 0.5727 GB, free: 4.316 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.737e-05/0.4619, allocations: 26.55 kB / 0.5727 GB, free: 4.281 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.663e-05/0.4619, allocations: 4.859 kB / 0.5727 GB, free: 4.273 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.492e-06/0.4619, allocations: 0 / 0.5727 GB, free: 4.273 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.751e-05/0.462, allocations: 68.27 kB / 0.5728 GB, free: 4.191 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.462, allocations: 0 / 0.5728 GB, free: 4.191 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001941/0.4622, allocations: 59.39 kB / 0.5729 GB, free: 4.121 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.4622, allocations: 89.17 kB / 0.5729 GB, free: 4.016 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.062e-05/0.4623, allocations: 89.86 kB / 0.573 GB, free: 3.918 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.4623, allocations: 25.7 kB / 0.5731 GB, free: 3.887 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.737e-05/0.4624, allocations: 80.14 kB / 0.5731 GB, free: 3.805 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.4624, allocations: 3.906 kB / 0.5731 GB, free: 3.801 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.163e-05/0.4624, allocations: 17.72 kB / 0.5731 GB, free: 3.777 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.4625, allocations: 318.8 kB / 0.5735 GB, free: 3.457 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.021e-05/0.4626, allocations: 0 / 0.5735 GB, free: 3.457 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.824e-06/0.4626, allocations: 4 kB / 0.5735 GB, free: 3.453 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.085e-05/0.4626, allocations: 60.27 kB / 0.5735 GB, free: 3.379 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4626, allocations: 0 / 0.5735 GB, free: 3.379 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.618e-05/0.4627, allocations: 67.39 kB / 0.5736 GB, free: 3.301 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.567e-05/0.4628, allocations: 29.7 kB / 0.5736 GB, free: 3.266 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.4628, allocations: 4 kB / 0.5736 GB, free: 3.262 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.4628, allocations: 3.938 kB / 0.5736 GB, free: 3.258 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.4628, allocations: 0 / 0.5736 GB, free: 3.258 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.4628, allocations: 0 / 0.5736 GB, free: 3.258 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.869e-05/0.4628, allocations: 8.031 kB / 0.5736 GB, free: 3.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-06/0.4628, allocations: 0 / 0.5736 GB, free: 3.25 MB / 430.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 8.378e-05/0.4629, allocations: 135.5 kB / 0.5738 GB, free: 3.102 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.476e-06/0.4629, allocations: 0 / 0.5738 GB, free: 3.102 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.344e-05/0.463, allocations: 7.109 kB / 0.5738 GB, free: 3.094 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.463, allocations: 0 / 0.5738 GB, free: 3.094 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.463, allocations: 0 / 0.5738 GB, free: 3.094 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.463, allocations: 3.938 kB / 0.5738 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.74e-05/0.4631, allocations: 145.7 kB / 0.5739 GB, free: 2.898 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.4631, allocations: 4 kB / 0.5739 GB, free: 2.895 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.22e-07/0.4631, allocations: 0 / 0.5739 GB, free: 2.895 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.4631, allocations: 0 / 0.5739 GB, free: 2.895 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.4631, allocations: 4 kB / 0.5739 GB, free: 2.891 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.4631, allocations: 7.938 kB / 0.5739 GB, free: 2.883 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.4631, allocations: 7.984 kB / 0.5739 GB, free: 2.875 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001057/0.4632, allocations: 90.72 kB / 0.574 GB, free: 2.762 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.78e-05/0.4633, allocations: 81.05 kB / 0.5741 GB, free: 2.664 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/0.4633, allocations: 12.02 kB / 0.5741 GB, free: 2.652 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.109e-05/0.4633, allocations: 0 / 0.5741 GB, free: 2.652 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.433e-05/0.4634, allocations: 0 / 0.5741 GB, free: 2.652 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.4634, allocations: 3.938 kB / 0.5741 GB, free: 2.648 MB / 430.1 MB Notification: Performance of sorting global known variables: time 2.614e-05/0.4634, allocations: 75.28 kB / 0.5742 GB, free: 2.574 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4634, allocations: 0 / 0.5742 GB, free: 2.574 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01286/0.4763, allocations: 3.781 MB / 0.5779 GB, free: 14.79 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.02412/0.5004, allocations: 1.491 MB / 0.5793 GB, free: 13.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000153/0.5006, allocations: 59.41 kB / 0.5794 GB, free: 13.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5006, allocations: 0 / 0.5794 GB, free: 13.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.575e-05/0.5007, allocations: 55.41 kB / 0.5794 GB, free: 13.15 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001668/0.5009, allocations: 8.062 kB / 0.5794 GB, free: 13.14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008378/0.5093, allocations: 330.5 kB / 0.5798 GB, free: 12.78 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.5096, allocations: 0.6766 MB / 0.5804 GB, free: 12.08 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.738e-06/0.5096, allocations: 0 / 0.5804 GB, free: 12.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.214e-05/0.5096, allocations: 11.44 kB / 0.5804 GB, free: 12.07 MB / 446.1 MB Notification: Performance of SimCode: time 1.232e-06/0.5096, allocations: 0 / 0.5804 GB, free: 12.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.182/0.6917, allocations: 113.8 MB / 0.6916 GB, free: 10.11 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.53/16.22, allocations: 12.78 kB / 0.6916 GB, free: 10.09 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe 2>&1)