Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2b.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.TestMatrices2b,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001323/0.001323, 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.00125/0.00125, 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.442/1.442, allocations: 227.4 MB / 246.8 MB, free: 10.51 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.2262/0.2262, allocations: 46.11 MB / 344.2 MB, free: 11.55 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.002857/0.002857, allocations: 80.83 kB / 417.7 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.1574, allocations: 62.46 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001812/0.1592, allocations: 483.8 kB / 480.7 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003173/0.1624, allocations: 2.144 MB / 482.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.03e-05/0.1625, allocations: 0 / 482.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.13e-05/0.1625, allocations: 7.938 kB / 482.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.028e-06/0.1625, allocations: 0 / 482.8 MB, free: 2.484 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:485:3-574:17:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2b' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001993/0.1645, allocations: 0.7264 MB / 483.6 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.077e-05/0.1646, allocations: 7.984 kB / 483.6 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.471e-05/0.1646, allocations: 0 / 483.6 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.616e-05/0.1646, allocations: 7.938 kB / 483.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.647e-05/0.1646, allocations: 0 / 483.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.35e-06/0.1647, allocations: 0 / 483.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002001/0.1667, allocations: 1.404 MB / 485 MB, free: 352 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.144e-05/0.1667, allocations: 3.984 kB / 485 MB, free: 348 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.354e-05/0.1667, allocations: 8 kB / 485 MB, free: 340 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001766/0.1685, allocations: 1.56 MB / 486.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1685, allocations: 4 kB / 486.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1685, allocations: 0 / 486.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.1685, allocations: 3.938 kB / 486.6 MB, free: 14.76 MB / 366.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.0006369/0.1692, allocations: 417.2 kB / 487 MB, free: 14.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.1692, allocations: 8.031 kB / 487 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.21e-05/0.1693, allocations: 30.75 kB / 487 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.428e-05/0.1693, allocations: 4.938 kB / 487 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.1694, allocations: 160.4 kB / 487.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.1694, allocations: 4.375 kB / 487.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.113e-05/0.1695, allocations: 3.938 kB / 487.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.247e-05/0.1695, allocations: 29.69 kB / 487.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.1696, allocations: 7.984 kB / 487.2 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.534e-06/0.1696, allocations: 3.938 kB / 487.2 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1696, allocations: 0 / 487.2 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.6e-05/0.1696, allocations: 0 / 487.2 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001571/0.1698, allocations: 149.7 kB / 487.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.038e-05/0.1698, allocations: 26.53 kB / 487.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.655e-05/0.1698, allocations: 8.859 kB / 487.4 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.1699, allocations: 0 / 487.4 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.267e-05/0.1699, allocations: 60.33 kB / 487.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1699, allocations: 0 / 487.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001698/0.1701, allocations: 63.44 kB / 487.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.78e-05/0.1702, allocations: 89.12 kB / 487.6 MB, free: 13.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.118e-05/0.1702, allocations: 89.86 kB / 487.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.1703, allocations: 29.64 kB / 487.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.213e-05/0.1703, allocations: 80.14 kB / 487.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.955e-05/0.1703, allocations: 4.188 kB / 487.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.23e-05/0.1704, allocations: 13.72 kB / 487.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1705, allocations: 314.8 kB / 488.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.979e-06/0.1705, allocations: 0 / 488.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.42e-06/0.1705, allocations: 4 kB / 488.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.279e-05/0.1706, allocations: 64.2 kB / 488.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1706, allocations: 0 / 488.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.656e-05/0.1707, allocations: 67.33 kB / 488.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.758e-05/0.1708, allocations: 29.7 kB / 488.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1708, allocations: 0 / 488.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.1708, allocations: 0 / 488.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.685e-06/0.1708, allocations: 8 kB / 488.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.1708, allocations: 4.094 kB / 488.3 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.43e-05/0.1708, allocations: 0 / 488.3 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-06/0.1708, allocations: 0 / 488.3 MB, free: 12.74 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.0001063/0.1709, allocations: 147.5 kB / 488.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-06/0.171, allocations: 3.938 kB / 488.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.615e-06/0.171, allocations: 3.125 kB / 488.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.171, allocations: 3.938 kB / 488.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.171, allocations: 0 / 488.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.171, allocations: 0 / 488.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001183/0.1711, allocations: 157.6 kB / 488.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1711, allocations: 0 / 488.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-07/0.1711, allocations: 0 / 488.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.1711, allocations: 0 / 488.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-06/0.1711, allocations: 0 / 488.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1712, allocations: 3.938 kB / 488.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1712, allocations: 0 / 488.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001032/0.1713, allocations: 94.77 kB / 488.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.711e-05/0.1713, allocations: 81.14 kB / 488.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.1713, allocations: 4 kB / 488.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.717e-06/0.1714, allocations: 0 / 488.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.308e-05/0.1714, allocations: 0 / 488.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.1714, allocations: 0 / 488.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.61e-05/0.1714, allocations: 83.22 kB / 488.9 MB, free: 12.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1714, allocations: 0 / 488.9 MB, free: 12.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008732/0.1723, allocations: 276 kB / 489.1 MB, free: 11.8 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.001768/0.1741, allocations: 0.9311 MB / 490.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001316/0.1742, allocations: 67.39 kB / 490.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1742, allocations: 0 / 490.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.176e-05/0.1743, allocations: 55.41 kB / 490.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.1744, allocations: 2.344 kB / 490.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005277/0.175, allocations: 170.6 kB / 490.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.1753, allocations: 0.6728 MB / 491 MB, free: 9.789 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.304e-06/0.1753, allocations: 0 / 491 MB, free: 9.789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.462e-05/0.1753, allocations: 7.438 kB / 491 MB, free: 9.785 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1753, allocations: 0 / 491 MB, free: 9.785 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03745/0.2128, allocations: 8.309 MB / 499.3 MB, free: 1.516 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.302/8.514, allocations: 13.88 kB / 499.4 MB, free: 1.504 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2b.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2b_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_TestMatrices2b.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2b.pipe 2>&1)