Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006902/0.0006903, allocations: 98.03 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007574/0.0007574, allocations: 190.9 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 223.2 MB / 241.9 MB, free: 276 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2323/0.2323, allocations: 44.22 MB / 337.2 MB, free: 2.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004976/0.0004977, allocations: 12 kB / 409.7 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1614/0.1619, allocations: 61.93 MB / 471.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.000659/0.1626, allocations: 214.9 kB / 471.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003007/0.1656, allocations: 2 MB / 473.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.837e-05/0.1656, allocations: 0 / 473.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.464e-05/0.1657, allocations: 0 / 473.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.135e-06/0.1657, allocations: 4 kB / 473.9 MB, free: 11.45 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.001779/0.1675, allocations: 0.638 MB / 474.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.602e-05/0.1675, allocations: 0 / 474.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.178e-05/0.1676, allocations: 3.938 kB / 474.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.067e-05/0.1676, allocations: 0 / 474.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.971e-05/0.1676, allocations: 4 kB / 474.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.764e-06/0.1676, allocations: 0 / 474.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001924/0.1696, allocations: 1.35 MB / 475.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.616e-06/0.1696, allocations: 4 kB / 475.9 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.857e-05/0.1696, allocations: 25.7 kB / 475.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001156/0.1708, allocations: 1.146 MB / 477 MB, free: 8.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1708, allocations: 0 / 477 MB, free: 8.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1708, allocations: 0 / 477 MB, free: 8.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.1708, allocations: 0 / 477 MB, free: 8.27 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.0006087/0.1714, allocations: 423.3 kB / 477.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.1715, allocations: 8.031 kB / 477.5 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.731e-05/0.1715, allocations: 30.56 kB / 477.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.743e-05/0.1716, allocations: 0 / 477.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.1717, allocations: 159.1 kB / 477.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.1717, allocations: 4 kB / 477.6 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.012e-05/0.1717, allocations: 3.953 kB / 477.6 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.873e-05/0.1718, allocations: 33.62 kB / 477.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.273e-06/0.1718, allocations: 4 kB / 477.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.248e-06/0.1719, allocations: 7.984 kB / 477.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.1719, allocations: 0 / 477.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.65e-05/0.1719, allocations: 0 / 477.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001547/0.172, allocations: 145.7 kB / 477.8 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.687e-05/0.1721, allocations: 18.61 kB / 477.8 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.193e-05/0.1721, allocations: 4.859 kB / 477.9 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.177e-06/0.1721, allocations: 7.891 kB / 477.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.315e-05/0.1722, allocations: 68.31 kB / 477.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.1722, allocations: 0 / 477.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001951/0.1724, allocations: 59.41 kB / 478 MB, free: 7.117 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.094e-05/0.1725, allocations: 81.11 kB / 478.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.365e-05/0.1725, allocations: 89.86 kB / 478.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.1726, allocations: 25.7 kB / 478.2 MB, free: 6.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.636e-05/0.1726, allocations: 80.14 kB / 478.3 MB, free: 6.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.58e-05/0.1726, allocations: 4.188 kB / 478.3 MB, free: 6.805 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-06/0.1726, allocations: 0 / 478.3 MB, free: 6.805 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.1728, allocations: 319 kB / 478.6 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.055e-05/0.1729, allocations: 4 kB / 478.6 MB, free: 6.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.247e-06/0.1729, allocations: 7.938 kB / 478.6 MB, free: 6.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.098e-05/0.1729, allocations: 29.64 kB / 478.6 MB, free: 6.438 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1729, allocations: 0 / 478.6 MB, free: 6.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.743e-05/0.173, allocations: 59.41 kB / 478.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.224e-05/0.173, allocations: 37.64 kB / 478.7 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.173, allocations: 0 / 478.7 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.1731, allocations: 8.094 kB / 478.7 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.196e-06/0.1731, allocations: 0 / 478.7 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.1731, allocations: 3.938 kB / 478.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.485e-05/0.1731, allocations: 0 / 478.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.1731, allocations: 0 / 478.7 MB, free: 6.312 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.1732, allocations: 140 kB / 478.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.512e-06/0.1732, allocations: 0 / 478.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.614e-05/0.1733, allocations: 11.08 kB / 478.9 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.1733, allocations: 0 / 478.9 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1733, allocations: 4 kB / 478.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1733, allocations: 3.984 kB / 478.9 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001135/0.1734, allocations: 145.7 kB / 479 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.1734, allocations: 0 / 479 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.625e-06/0.1734, allocations: 0 / 479 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.1734, allocations: 3.938 kB / 479 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.1734, allocations: 0 / 479 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.1735, allocations: 7.953 kB / 479 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1735, allocations: 4 kB / 479 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.826e-05/0.1736, allocations: 90.83 kB / 479.1 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.169e-05/0.1736, allocations: 77.11 kB / 479.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.1736, allocations: 4 kB / 479.2 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.567e-06/0.1737, allocations: 0 / 479.2 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.891e-05/0.1737, allocations: 7.938 kB / 479.2 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.1737, allocations: 0 / 479.2 MB, free: 5.715 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.463e-05/0.1737, allocations: 75.28 kB / 479.3 MB, free: 5.641 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1737, allocations: 0 / 479.3 MB, free: 5.641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008935/0.1746, allocations: 268 kB / 479.5 MB, free: 5.379 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001683/0.1763, allocations: 0.9554 MB / 480.5 MB, free: 4.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.1764, allocations: 59.41 kB / 480.6 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1765, allocations: 0 / 480.6 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.28e-05/0.1765, allocations: 51.41 kB / 480.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.1766, allocations: 12.08 kB / 480.6 MB, free: 4.266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004763/0.1771, allocations: 156.3 kB / 480.8 MB, free: 4.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.1774, allocations: 0.677 MB / 481.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.643e-06/0.1774, allocations: 0 / 481.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.558e-05/0.1775, allocations: 11.44 kB / 481.5 MB, free: 3.355 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1775, allocations: 0 / 481.5 MB, free: 3.355 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05185/0.2293, allocations: 8.272 MB / 489.7 MB, free: 11.17 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001873/0.2296, allocations: 217 kB / 489.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.135/2.364, allocations: 0 / 489.9 MB, free: 10.93 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2b_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2b.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe 2>&1)