Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices3.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.TestMatrices3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001271/0.001271, allocations: 104.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001321/0.001321, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, 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.2302/0.2302, 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.003282/0.003282, allocations: 81.42 kB / 417.8 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1386, allocations: 62.45 MB / 480.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.002072/0.1408, allocations: 483.3 kB / 480.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002993/0.1438, allocations: 1.571 MB / 482.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.625e-05/0.1438, allocations: 0 / 482.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.239e-05/0.1439, allocations: 0 / 482.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.107e-06/0.1439, allocations: 0 / 482.2 MB, free: 3.051 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:576:3-610:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices3' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001191/0.1451, allocations: 227.4 kB / 482.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.122e-05/0.1452, allocations: 3.984 kB / 482.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.181e-05/0.1452, allocations: 3.984 kB / 482.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.604e-05/0.1453, allocations: 0 / 482.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.088e-05/0.1453, allocations: 7.938 kB / 482.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.541e-06/0.1453, allocations: 4 kB / 482.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00108/0.1464, allocations: 0.7025 MB / 483.2 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.975e-06/0.1464, allocations: 3.938 kB / 483.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.44e-05/0.1464, allocations: 0 / 483.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008338/0.1473, allocations: 0.6435 MB / 483.8 MB, free: 1.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1473, allocations: 0 / 483.8 MB, free: 1.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1473, allocations: 0 / 483.8 MB, free: 1.457 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.1473, allocations: 0 / 483.8 MB, free: 1.457 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.0006492/0.148, allocations: 361.3 kB / 484.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/0.148, allocations: 12.03 kB / 484.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.921e-05/0.1481, allocations: 38.73 kB / 484.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.999e-05/0.1481, allocations: 4.938 kB / 484.2 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001876/0.1483, allocations: 164.4 kB / 484.4 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.1483, allocations: 4.312 kB / 484.4 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.598e-06/0.1484, allocations: 4.312 kB / 484.4 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.1485, allocations: 33.83 kB / 484.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.1485, allocations: 0 / 484.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.1485, allocations: 0 / 484.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.1485, allocations: 0 / 484.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.875e-05/0.1485, allocations: 4 kB / 484.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001815/0.1487, allocations: 149.7 kB / 484.6 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.751e-05/0.1488, allocations: 14.58 kB / 484.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.274e-05/0.1488, allocations: 16.89 kB / 484.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.615e-06/0.1488, allocations: 0 / 484.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.946e-05/0.1489, allocations: 60.2 kB / 484.7 MB, free: 436 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.91e-07/0.1489, allocations: 0 / 484.7 MB, free: 436 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002029/0.1491, allocations: 67.39 kB / 484.7 MB, free: 356 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.387e-05/0.1492, allocations: 77.11 kB / 484.8 MB, free: 260 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.098e-05/0.1493, allocations: 89.86 kB / 484.9 MB, free: 160 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.1493, allocations: 33.64 kB / 484.9 MB, free: 120 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.232e-05/0.1493, allocations: 80.14 kB / 485 MB, free: 36 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.196e-05/0.1494, allocations: 4 kB / 485 MB, free: 32 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.047e-05/0.1494, allocations: 9.719 kB / 485 MB, free: 16 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.1496, allocations: 315 kB / 485.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.682e-05/0.1496, allocations: 11.92 kB / 485.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.14e-06/0.1496, allocations: 0 / 485.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.304e-05/0.1497, allocations: 60.27 kB / 485.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1497, allocations: 0 / 485.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.646e-05/0.1498, allocations: 59.41 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.997e-05/0.1499, allocations: 37.64 kB / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.1499, allocations: 3.984 kB / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.1499, allocations: 0 / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.392e-06/0.1499, allocations: 4.094 kB / 485.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.1499, allocations: 0 / 485.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.959e-05/0.15, allocations: 0 / 485.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.15, allocations: 4 kB / 485.5 MB, free: 15.49 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 0.0001259/0.1501, allocations: 135.5 kB / 485.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.027e-05/0.1501, allocations: 3.938 kB / 485.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.178e-05/0.1501, allocations: 3.125 kB / 485.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.1501, allocations: 7.938 kB / 485.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.1502, allocations: 0 / 485.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1502, allocations: 4 kB / 485.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001228/0.1503, allocations: 153.6 kB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1503, allocations: 0 / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.1503, allocations: 0 / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1503, allocations: 3.938 kB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.1503, allocations: 4 kB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1503, allocations: 0 / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1503, allocations: 4 kB / 485.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001079/0.1504, allocations: 94.83 kB / 485.9 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.031e-05/0.1505, allocations: 81.05 kB / 486 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.155e-05/0.1505, allocations: 0 / 486 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.265e-06/0.1505, allocations: 0 / 486 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.295e-05/0.1506, allocations: 3.984 kB / 486 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.1506, allocations: 11.97 kB / 486 MB, free: 14.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.475e-05/0.1506, allocations: 79.22 kB / 486.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1506, allocations: 0 / 486.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004546/0.1511, allocations: 116.3 kB / 486.2 MB, free: 14.69 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.001208/0.1523, allocations: 0.7009 MB / 486.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001147/0.1524, allocations: 59.39 kB / 487 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.1524, allocations: 4 kB / 487 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.712e-05/0.1525, allocations: 59.34 kB / 487 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.1526, allocations: 4 kB / 487 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004357/0.1531, allocations: 126.6 kB / 487.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.1535, allocations: 0.673 MB / 487.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.041e-06/0.1535, allocations: 0 / 487.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.412e-05/0.1535, allocations: 7.438 kB / 487.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1535, allocations: 0 / 487.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02891/0.1824, allocations: 4.707 MB / 492.5 MB, free: 8.281 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.121/8.303, allocations: 9.016 kB / 492.6 MB, free: 8.273 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices3_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_TestMatrices3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices3.pipe 2>&1)