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.001151/0.001151, allocations: 94.92 kB / 16.99 MB, free: 6.07 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.001483/0.001483, allocations: 184.8 kB / 17.88 MB, free: 5.691 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.385/1.385, allocations: 223.2 MB / 241.8 MB, free: 14.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2089/0.2089, allocations: 44.22 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004507/0.0004508, allocations: 8 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1432, allocations: 61.92 MB / 471.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.0005278/0.1438, allocations: 214.9 kB / 471.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00253/0.1463, allocations: 1.973 MB / 473.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.4e-05/0.1464, allocations: 0 / 473.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.035e-05/0.1464, allocations: 4 kB / 473.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.05e-06/0.1464, allocations: 0 / 473.7 MB, free: 11.44 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.001603/0.148, allocations: 0.6121 MB / 474.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.032e-05/0.148, allocations: 0 / 474.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.269e-05/0.1481, allocations: 0 / 474.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.574e-05/0.1481, allocations: 0 / 474.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.34e-05/0.1481, allocations: 4 kB / 474.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.461e-06/0.1481, allocations: 0 / 474.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001687/0.1498, allocations: 1.272 MB / 475.6 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.955e-06/0.1499, allocations: 11.92 kB / 475.6 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.019e-05/0.1499, allocations: 25.7 kB / 475.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00113/0.151, allocations: 1.154 MB / 476.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.151, allocations: 0 / 476.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.151, allocations: 0 / 476.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.1511, allocations: 0 / 476.8 MB, free: 8.359 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.0005599/0.1516, allocations: 413 kB / 477.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.1517, allocations: 8.031 kB / 477.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.431e-05/0.1517, allocations: 42.48 kB / 477.3 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.557e-05/0.1518, allocations: 4 kB / 477.3 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.1519, allocations: 159.1 kB / 477.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.1519, allocations: 0 / 477.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.084e-05/0.1519, allocations: 3.953 kB / 477.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.519e-05/0.152, allocations: 29.7 kB / 477.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-06/0.152, allocations: 0 / 477.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.152, allocations: 0 / 477.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.152, allocations: 3.984 kB / 477.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.73e-05/0.1521, allocations: 0 / 477.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001516/0.1522, allocations: 157.7 kB / 477.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.186e-05/0.1523, allocations: 18.52 kB / 477.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.442e-06/0.1523, allocations: 0 / 477.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.219e-05/0.1523, allocations: 60.22 kB / 477.7 MB, free: 7.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.1523, allocations: 4.094 kB / 477.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000167/0.1525, allocations: 63.39 kB / 477.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.525e-05/0.1526, allocations: 85.23 kB / 477.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.871e-05/0.1526, allocations: 93.8 kB / 477.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.1527, allocations: 25.7 kB / 477.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.259e-05/0.1527, allocations: 80.14 kB / 478 MB, free: 6.902 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.605e-05/0.1527, allocations: 8.125 kB / 478 MB, free: 6.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.984e-06/0.1527, allocations: 0 / 478 MB, free: 6.895 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1528, allocations: 310.8 kB / 478.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.783e-06/0.1529, allocations: 0 / 478.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.971e-06/0.1529, allocations: 8 kB / 478.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.97e-05/0.1529, allocations: 25.7 kB / 478.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1529, allocations: 0 / 478.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.542e-05/0.153, allocations: 67.39 kB / 478.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.523e-05/0.153, allocations: 31.89 kB / 478.5 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.153, allocations: 3.953 kB / 478.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.153, allocations: 0 / 478.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.1531, allocations: 4 kB / 478.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.1531, allocations: 0 / 478.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.504e-05/0.1531, allocations: 0 / 478.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.802e-06/0.1531, allocations: 8.031 kB / 478.5 MB, free: 6.414 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 9.753e-05/0.1532, allocations: 147.9 kB / 478.6 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.061e-06/0.1532, allocations: 0 / 478.6 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.249e-05/0.1532, allocations: 3.125 kB / 478.6 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.1532, allocations: 3.953 kB / 478.6 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1532, allocations: 0 / 478.6 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.1532, allocations: 0 / 478.6 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.735e-05/0.1533, allocations: 153.7 kB / 478.8 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1534, allocations: 0 / 478.8 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1534, allocations: 4 kB / 478.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.1534, allocations: 4 kB / 478.8 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-06/0.1534, allocations: 0 / 478.8 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.1534, allocations: 0 / 478.8 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1534, allocations: 3.953 kB / 478.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.366e-05/0.1535, allocations: 90.83 kB / 478.9 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.464e-05/0.1535, allocations: 77.11 kB / 479 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.1535, allocations: 4 kB / 479 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.516e-06/0.1536, allocations: 4.031 kB / 479 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.606e-05/0.1536, allocations: 3.953 kB / 479 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-06/0.1536, allocations: 0 / 479 MB, free: 5.816 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.566e-05/0.1536, allocations: 79.22 kB / 479 MB, free: 5.738 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.553e-06/0.1536, allocations: 0 / 479 MB, free: 5.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008256/0.1545, allocations: 279.9 kB / 479.3 MB, free: 5.465 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.001475/0.1559, allocations: 0.928 MB / 480.3 MB, free: 4.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.638e-05/0.156, allocations: 55.41 kB / 480.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.1561, allocations: 4 kB / 480.3 MB, free: 4.449 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.331e-05/0.1561, allocations: 59.33 kB / 480.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.667e-05/0.1562, allocations: 4 kB / 480.4 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004604/0.1567, allocations: 160.3 kB / 480.5 MB, free: 4.176 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002325/0.1569, allocations: 0.6733 MB / 481.2 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.45e-06/0.1569, allocations: 0 / 481.2 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.182e-05/0.1569, allocations: 11.44 kB / 481.2 MB, free: 3.465 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1569, allocations: 0 / 481.2 MB, free: 3.465 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02357/0.1805, allocations: 8.288 MB / 489.5 MB, free: 11.26 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/0.1807, allocations: 207 kB / 489.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.076/2.256, allocations: 7.938 kB / 489.7 MB, free: 11.02 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)