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) 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 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001318/0.001318, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2345/0.2345, allocations: 46.11 MB / 344.2 MB, free: 11.59 MB / 286.1 MB 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.002216/0.002216, allocations: 75.38 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1184, allocations: 62.46 MB / 480.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001757/0.1202, allocations: 490.3 kB / 480.7 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007976/0.1282, allocations: 4.88 MB / 485.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.884e-05/0.1283, allocations: 0 / 485.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.055e-05/0.1283, allocations: 0 / 485.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.308e-06/0.1283, allocations: 0 / 485.6 MB, free: 15.79 MB / 366.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.007228/0.1356, allocations: 2.929 MB / 488.5 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.591e-05/0.1356, allocations: 3.984 kB / 488.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.163e-05/0.1357, allocations: 4 kB / 488.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.49e-05/0.1357, allocations: 7.938 kB / 488.5 MB, free: 12.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.115e-05/0.1357, allocations: 7.984 kB / 488.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.2e-06/0.1357, allocations: 0 / 488.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02792/0.1636, allocations: 18.56 MB / 0.4952 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.198e-05/0.1637, allocations: 0 / 0.4952 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.27e-05/0.1637, allocations: 0 / 0.4952 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2438/0.4076, allocations: 27.48 MB / 0.522 GB, free: 27.19 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.728e-06/0.4076, allocations: 0 / 0.522 GB, free: 27.19 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.4076, allocations: 0 / 0.522 GB, free: 27.19 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.4077, allocations: 3.406 kB / 0.522 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.01579/0.4235, allocations: 0.6538 MB / 0.5227 GB, free: 26.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.4235, allocations: 9.688 kB / 0.5227 GB, free: 26.64 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.243e-05/0.4235, allocations: 35 kB / 0.5227 GB, free: 26.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.886e-05/0.4236, allocations: 1.875 kB / 0.5227 GB, free: 26.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.674e-05/0.4236, allocations: 169.9 kB / 0.5229 GB, free: 26.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.4237, allocations: 0 / 0.5229 GB, free: 26.4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.578e-06/0.4237, allocations: 2.812 kB / 0.5229 GB, free: 26.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.933e-05/0.4238, allocations: 27.3 kB / 0.5229 GB, free: 26.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.4238, allocations: 0.7188 kB / 0.5229 GB, free: 26.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.024e-06/0.4238, allocations: 3.984 kB / 0.5229 GB, free: 26.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.4238, allocations: 2.438 kB / 0.5229 GB, free: 26.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.054e-05/0.4238, allocations: 2.188 kB / 0.5229 GB, free: 26.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.594e-05/0.4239, allocations: 152.1 kB / 0.5231 GB, free: 26.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.569e-05/0.424, allocations: 21.02 kB / 0.5231 GB, free: 26.15 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.281e-05/0.424, allocations: 5.359 kB / 0.5231 GB, free: 26.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.747e-06/0.424, allocations: 4.062 kB / 0.5231 GB, free: 26.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.424, allocations: 56.77 kB / 0.5231 GB, free: 26.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.263e-06/0.424, allocations: 1.125 kB / 0.5231 GB, free: 26.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001539/0.4242, allocations: 69.45 kB / 0.5232 GB, free: 26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.4242, allocations: 82.23 kB / 0.5233 GB, free: 25.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.857e-05/0.4243, allocations: 89.86 kB / 0.5234 GB, free: 25.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.905e-06/0.4243, allocations: 25.7 kB / 0.5234 GB, free: 25.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.141e-05/0.4243, allocations: 80.14 kB / 0.5235 GB, free: 25.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.728e-05/0.4243, allocations: 2.469 kB / 0.5235 GB, free: 25.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.871e-05/0.4243, allocations: 24.64 kB / 0.5235 GB, free: 25.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.448e-05/0.4244, allocations: 314.8 kB / 0.5238 GB, free: 25.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.002e-05/0.4244, allocations: 3.188 kB / 0.5238 GB, free: 25.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.813e-06/0.4244, allocations: 3.281 kB / 0.5238 GB, free: 25.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.053e-05/0.4245, allocations: 61.52 kB / 0.5239 GB, free: 25.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.4245, allocations: 0 / 0.5239 GB, free: 25.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.524e-05/0.4245, allocations: 69.78 kB / 0.5239 GB, free: 25.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.4246, allocations: 29.23 kB / 0.524 GB, free: 25.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.4246, allocations: 3.656 kB / 0.524 GB, free: 25.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.4246, allocations: 3 kB / 0.524 GB, free: 25.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.282e-06/0.4246, allocations: 3.5 kB / 0.524 GB, free: 25.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.4246, allocations: 2.719 kB / 0.524 GB, free: 25.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.578e-05/0.4246, allocations: 3.25 kB / 0.524 GB, free: 25.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.4246, allocations: 0 / 0.524 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.294e-05/0.4247, allocations: 139.1 kB / 0.5241 GB, free: 25.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.734e-06/0.4247, allocations: 0 / 0.5241 GB, free: 25.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.165e-05/0.4247, allocations: 10.42 kB / 0.5241 GB, free: 25.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.4247, allocations: 1.812 kB / 0.5241 GB, free: 25.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.4247, allocations: 0 / 0.5241 GB, free: 25.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-06/0.4247, allocations: 0 / 0.5241 GB, free: 25.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.954e-05/0.4248, allocations: 149.5 kB / 0.5243 GB, free: 24.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.4248, allocations: 0 / 0.5243 GB, free: 24.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.4248, allocations: 2.156 kB / 0.5243 GB, free: 24.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.4248, allocations: 2.672 kB / 0.5243 GB, free: 24.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.4248, allocations: 0 / 0.5243 GB, free: 24.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.4248, allocations: 7.922 kB / 0.5243 GB, free: 24.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.4249, allocations: 3.938 kB / 0.5243 GB, free: 24.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.933e-05/0.4249, allocations: 91 kB / 0.5244 GB, free: 24.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.188e-05/0.425, allocations: 84.77 kB / 0.5244 GB, free: 24.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.425, allocations: 3.984 kB / 0.5244 GB, free: 24.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.578e-06/0.425, allocations: 0 / 0.5244 GB, free: 24.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.555e-05/0.425, allocations: 256 / 0.5244 GB, free: 24.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.425, allocations: 11.19 kB / 0.5245 GB, free: 24.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.268e-05/0.425, allocations: 75.28 kB / 0.5245 GB, free: 24.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.425, allocations: 0 / 0.5245 GB, free: 24.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01741/0.4425, allocations: 3.777 MB / 0.5282 GB, free: 21.3 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.03518/0.4777, allocations: 1.499 MB / 0.5297 GB, free: 19.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001381/0.4778, allocations: 58.31 kB / 0.5297 GB, free: 19.83 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.4779, allocations: 0 / 0.5297 GB, free: 19.83 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.023e-05/0.4779, allocations: 55.41 kB / 0.5298 GB, free: 19.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001857/0.4781, allocations: 7.25 kB / 0.5298 GB, free: 19.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01522/0.4933, allocations: 334.6 kB / 0.5301 GB, free: 19.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001168/0.4935, allocations: 0.673 MB / 0.5308 GB, free: 18.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.899e-06/0.4935, allocations: 3.984 kB / 0.5308 GB, free: 18.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.153e-05/0.4935, allocations: 11.44 kB / 0.5308 GB, free: 18.68 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4935, allocations: 0 / 0.5308 GB, free: 18.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2131/0.7066, allocations: 113.8 MB / 0.6419 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.24/16.94, allocations: 4 kB / 0.6419 GB, free: 0.7539 MB / 478.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe 2>&1)