Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.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.TestMatrices,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001781/0.001781, 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.00198/0.00198, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.261/0.261, allocations: 46.12 MB / 344.2 MB, free: 11.52 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.002307/0.002307, allocations: 78.09 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1181, allocations: 62.45 MB / 480.2 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001708/0.1199, allocations: 487.8 kB / 480.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002198/0.1221, allocations: 1.617 MB / 482.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.394e-05/0.1221, allocations: 0 / 482.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.133e-05/0.1221, allocations: 0 / 482.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.778e-06/0.1221, allocations: 0 / 482.3 MB, free: 2.992 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:171:3-212:15:writable] Warning: Pure function 'ModelicaTest.Math.Matrices' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008329/0.123, allocations: 275.3 kB / 482.6 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.288e-05/0.123, allocations: 4 kB / 482.6 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.521e-05/0.1231, allocations: 0 / 482.6 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.36e-05/0.1231, allocations: 0 / 482.6 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.077e-05/0.1231, allocations: 3.984 kB / 482.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.911e-06/0.1231, allocations: 0 / 482.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000732/0.1239, allocations: 0.4912 MB / 483.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.126e-05/0.1239, allocations: 0 / 483.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.783e-05/0.1239, allocations: 3.984 kB / 483.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004226/0.1244, allocations: 303.4 kB / 483.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1244, allocations: 3.938 kB / 483.4 MB, free: 1.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1244, allocations: 0 / 483.4 MB, free: 1.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.1244, allocations: 0 / 483.4 MB, free: 1.918 MB / 350.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.0003808/0.1248, allocations: 377.3 kB / 483.7 MB, free: 1.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.1248, allocations: 8.031 kB / 483.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.955e-05/0.1249, allocations: 34.75 kB / 483.8 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.052e-05/0.1249, allocations: 0.9375 kB / 483.8 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.125, allocations: 160.4 kB / 483.9 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.792e-06/0.125, allocations: 4.375 kB / 483.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.987e-06/0.125, allocations: 384 / 483.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.605e-05/0.1251, allocations: 37.75 kB / 484 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.671e-06/0.1251, allocations: 4 kB / 484 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.971e-06/0.1251, allocations: 0 / 484 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-06/0.1251, allocations: 0 / 484 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.653e-05/0.1252, allocations: 4 kB / 484 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001412/0.1253, allocations: 145.7 kB / 484.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.304e-05/0.1253, allocations: 18.61 kB / 484.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.451e-05/0.1254, allocations: 4.859 kB / 484.2 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.352e-06/0.1254, allocations: 0 / 484.2 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.811e-05/0.1254, allocations: 72.19 kB / 484.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 3.026e-06/0.1255, allocations: 3.984 kB / 484.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001439/0.1256, allocations: 67.41 kB / 484.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.1257, allocations: 81.05 kB / 484.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.183e-05/0.1257, allocations: 89.86 kB / 484.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.1257, allocations: 25.7 kB / 484.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.344e-05/0.1258, allocations: 80.14 kB / 484.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.1258, allocations: 3.906 kB / 484.6 MB, free: 500 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.181e-05/0.1258, allocations: 21.7 kB / 484.6 MB, free: 472 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.126, allocations: 310.8 kB / 484.9 MB, free: 152 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.176e-05/0.126, allocations: 4.125 kB / 484.9 MB, free: 148 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.067e-06/0.126, allocations: 7.938 kB / 484.9 MB, free: 140 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.718e-05/0.1261, allocations: 60.2 kB / 485 MB, free: 64 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1261, allocations: 0 / 485 MB, free: 64 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.705e-05/0.1262, allocations: 67.39 kB / 485 MB, free: 15.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.225e-05/0.1262, allocations: 33.64 kB / 485.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.1262, allocations: 4 kB / 485.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.1263, allocations: 0 / 485.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.02e-07/0.1263, allocations: 4.094 kB / 485.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/0.1263, allocations: 0 / 485.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.4e-05/0.1263, allocations: 0 / 485.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.1263, allocations: 4 kB / 485.1 MB, free: 15.93 MB / 366.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 9.173e-05/0.1264, allocations: 135.5 kB / 485.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.184e-05/0.1264, allocations: 7.922 kB / 485.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.183e-06/0.1264, allocations: 3.125 kB / 485.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.1264, allocations: 0 / 485.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1264, allocations: 0 / 485.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.1265, allocations: 11.94 kB / 485.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001114/0.1266, allocations: 142 kB / 485.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.1266, allocations: 0 / 485.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1266, allocations: 0 / 485.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.1266, allocations: 3.938 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.1266, allocations: 3.984 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1266, allocations: 4 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1266, allocations: 0 / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001026/0.1267, allocations: 86.84 kB / 485.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.976e-05/0.1268, allocations: 93.03 kB / 485.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.149e-05/0.1268, allocations: 0 / 485.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.476e-06/0.1268, allocations: 0 / 485.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.445e-05/0.1268, allocations: 0 / 485.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/0.1268, allocations: 0 / 485.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.556e-05/0.1269, allocations: 75.28 kB / 485.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1269, allocations: 4 kB / 485.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.1272, allocations: 59.98 kB / 485.7 MB, free: 15.21 MB / 366.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.0007838/0.128, allocations: 0.7383 MB / 486.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.967e-05/0.1281, allocations: 55.41 kB / 486.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.1281, allocations: 0 / 486.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.7e-05/0.1281, allocations: 59.39 kB / 486.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001213/0.1283, allocations: 4 kB / 486.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003042/0.1286, allocations: 138.6 kB / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.1289, allocations: 0.669 MB / 487.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.999e-06/0.1289, allocations: 0 / 487.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.103e-05/0.1289, allocations: 7.438 kB / 487.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1289, allocations: 4 kB / 487.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02268/0.1516, allocations: 2.092 MB / 489.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.985/8.137, allocations: 0.8906 kB / 489.4 MB, free: 11.38 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices_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_TestMatrices.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe 2>&1)