Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001149/0.001149, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001297/0.001297, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.212/0.212, allocations: 46.11 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002168/0.002169, allocations: 79.56 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1324, allocations: 62.45 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001741/0.1341, allocations: 483.7 kB / 480.6 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007311/0.1415, allocations: 4.885 MB / 485.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.958e-05/0.1415, allocations: 0 / 485.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.536e-05/0.1416, allocations: 3.938 kB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.419e-06/0.1416, allocations: 0 / 485.5 MB, free: 15.8 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.006962/0.1486, allocations: 2.934 MB / 488.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.246e-05/0.1486, allocations: 8 kB / 488.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.022e-05/0.1487, allocations: 0 / 488.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.404e-05/0.1487, allocations: 0 / 488.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.025e-05/0.1487, allocations: 7.984 kB / 488.4 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.911e-06/0.1488, allocations: 0 / 488.4 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02555/0.1743, allocations: 18.56 MB / 0.4951 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.197e-05/0.1744, allocations: 0 / 0.4951 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.948e-05/0.1744, allocations: 3.984 kB / 0.4951 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.241/0.4155, allocations: 27.47 MB / 0.5219 GB, free: 27.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.4155, allocations: 0 / 0.5219 GB, free: 27.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.919e-06/0.4155, allocations: 3.984 kB / 0.5219 GB, free: 27.19 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.619e-05/0.4156, allocations: 0.625 kB / 0.5219 GB, free: 27.19 MB / 382.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.01658/0.4322, allocations: 0.6563 MB / 0.5226 GB, free: 26.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.4322, allocations: 10.66 kB / 0.5226 GB, free: 26.64 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.708e-05/0.4323, allocations: 34 kB / 0.5226 GB, free: 26.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.261e-05/0.4323, allocations: 1.875 kB / 0.5226 GB, free: 26.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.127e-05/0.4324, allocations: 163 kB / 0.5228 GB, free: 26.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.4324, allocations: 6.656 kB / 0.5228 GB, free: 26.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.115e-06/0.4324, allocations: 3.812 kB / 0.5228 GB, free: 26.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.115e-05/0.4325, allocations: 29.69 kB / 0.5228 GB, free: 26.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.4325, allocations: 0 / 0.5228 GB, free: 26.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.764e-06/0.4325, allocations: 0 / 0.5228 GB, free: 26.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.4325, allocations: 0 / 0.5228 GB, free: 26.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.797e-05/0.4325, allocations: 4.281 kB / 0.5228 GB, free: 26.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001114/0.4326, allocations: 153.9 kB / 0.523 GB, free: 26.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.647e-05/0.4327, allocations: 19.2 kB / 0.523 GB, free: 26.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.285e-05/0.4327, allocations: 4.859 kB / 0.523 GB, free: 26.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.827e-06/0.4327, allocations: 0 / 0.523 GB, free: 26.15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.4328, allocations: 64.58 kB / 0.5231 GB, free: 26.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.4328, allocations: 0 / 0.5231 GB, free: 26.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001504/0.4329, allocations: 65.31 kB / 0.5231 GB, free: 26.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.011e-05/0.433, allocations: 79.05 kB / 0.5232 GB, free: 25.92 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.758e-05/0.433, allocations: 91.52 kB / 0.5233 GB, free: 25.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.951e-06/0.433, allocations: 25.7 kB / 0.5233 GB, free: 25.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.076e-05/0.433, allocations: 80.14 kB / 0.5234 GB, free: 25.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.708e-05/0.433, allocations: 9.906 kB / 0.5234 GB, free: 25.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.424e-05/0.4331, allocations: 19.55 kB / 0.5234 GB, free: 25.69 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.438e-05/0.4331, allocations: 316.6 kB / 0.5237 GB, free: 25.37 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.458e-06/0.4331, allocations: 2.375 kB / 0.5237 GB, free: 25.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.24e-06/0.4331, allocations: 0 / 0.5237 GB, free: 25.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.302e-05/0.4332, allocations: 60.89 kB / 0.5238 GB, free: 25.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.4332, allocations: 0 / 0.5238 GB, free: 25.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.826e-05/0.4332, allocations: 73.52 kB / 0.5238 GB, free: 25.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.4333, allocations: 29.42 kB / 0.5239 GB, free: 25.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.4333, allocations: 0 / 0.5239 GB, free: 25.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.4333, allocations: 0 / 0.5239 GB, free: 25.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.4333, allocations: 3.062 kB / 0.5239 GB, free: 25.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.4333, allocations: 4.625 kB / 0.5239 GB, free: 25.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.802e-05/0.4333, allocations: 1.875 kB / 0.5239 GB, free: 25.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.4334, allocations: 0 / 0.5239 GB, free: 25.2 MB / 382.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 5.326e-05/0.4334, allocations: 140.4 kB / 0.524 GB, free: 25.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.226e-06/0.4334, allocations: 3.984 kB / 0.524 GB, free: 25.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.095e-05/0.4334, allocations: 4.219 kB / 0.524 GB, free: 25.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.4335, allocations: 0 / 0.524 GB, free: 25.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.4335, allocations: 0 / 0.524 GB, free: 25.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.4335, allocations: 3.969 kB / 0.524 GB, free: 25.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.989e-05/0.4335, allocations: 154 kB / 0.5242 GB, free: 24.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.4335, allocations: 0 / 0.5242 GB, free: 24.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.4335, allocations: 0 / 0.5242 GB, free: 24.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.4335, allocations: 3.984 kB / 0.5242 GB, free: 24.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.4336, allocations: 3.938 kB / 0.5242 GB, free: 24.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.4336, allocations: 0 / 0.5242 GB, free: 24.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4336, allocations: 0 / 0.5242 GB, free: 24.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.739e-05/0.4336, allocations: 101.5 kB / 0.5243 GB, free: 24.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.608e-05/0.4337, allocations: 85 kB / 0.5244 GB, free: 24.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.13e-05/0.4337, allocations: 0 / 0.5244 GB, free: 24.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.256e-06/0.4337, allocations: 0 / 0.5244 GB, free: 24.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.241e-05/0.4337, allocations: 0 / 0.5244 GB, free: 24.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-06/0.4337, allocations: 4.031 kB / 0.5244 GB, free: 24.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.356e-05/0.4337, allocations: 79.28 kB / 0.5244 GB, free: 24.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4337, allocations: 0 / 0.5244 GB, free: 24.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01793/0.4517, allocations: 3.78 MB / 0.5281 GB, free: 21.33 MB / 382.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.03284/0.4845, allocations: 1.499 MB / 0.5296 GB, free: 19.92 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001171/0.4847, allocations: 62.59 kB / 0.5297 GB, free: 19.85 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4847, allocations: 0 / 0.5297 GB, free: 19.85 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.541e-05/0.4847, allocations: 55.39 kB / 0.5297 GB, free: 19.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001413/0.4849, allocations: 6.25 kB / 0.5297 GB, free: 19.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01142/0.4963, allocations: 333.9 kB / 0.53 GB, free: 19.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.368e-05/0.4964, allocations: 0.6729 MB / 0.5307 GB, free: 18.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.271e-06/0.4964, allocations: 4.125 kB / 0.5307 GB, free: 18.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.186e-05/0.4965, allocations: 11.44 kB / 0.5307 GB, free: 18.71 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4965, allocations: 0 / 0.5307 GB, free: 18.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1674/0.6638, allocations: 113.8 MB / 0.6418 GB, free: 0.8008 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.96/16.63, allocations: 22.05 kB / 0.6418 GB, free: 0.7812 MB / 478.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe 2>&1)