Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.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.TestMatrices3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3",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.0006876/0.0006876, allocations: 94.2 kB / 17 MB, free: 6.355 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.0007664/0.0007664, allocations: 187.1 kB / 17.89 MB, free: 5.926 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.387/1.387, allocations: 223.3 MB / 241.9 MB, free: 256 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.2206/0.2206, allocations: 44.22 MB / 337.2 MB, free: 2.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003075/0.0003075, allocations: 10.03 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1391, allocations: 61.92 MB / 471.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.0006022/0.1398, allocations: 214.9 kB / 471.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00204/0.1418, allocations: 1.47 MB / 473.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.883e-05/0.1419, allocations: 4 kB / 473.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.253e-05/0.1419, allocations: 0 / 473.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.034e-06/0.1419, allocations: 0 / 473.3 MB, free: 11.94 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.0008183/0.1427, allocations: 191.6 kB / 473.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.713e-05/0.1428, allocations: 0 / 473.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.318e-05/0.1428, allocations: 3.984 kB / 473.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.094e-05/0.1429, allocations: 7.938 kB / 473.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.863e-05/0.1429, allocations: 0 / 473.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.352e-06/0.1429, allocations: 0 / 473.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009451/0.1439, allocations: 0.6714 MB / 474.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.125e-05/0.1439, allocations: 3.984 kB / 474.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.048e-05/0.1439, allocations: 33.64 kB / 474.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000444/0.1444, allocations: 447.3 kB / 474.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.1444, allocations: 0 / 474.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1444, allocations: 0 / 474.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1444, allocations: 0 / 474.7 MB, free: 10.59 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.0004455/0.1448, allocations: 363.4 kB / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.1449, allocations: 16.03 kB / 475 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.683e-05/0.1449, allocations: 34.55 kB / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.272e-05/0.145, allocations: 0 / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.1451, allocations: 159.1 kB / 475.2 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-06/0.1451, allocations: 0 / 475.2 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.758e-06/0.1451, allocations: 3.953 kB / 475.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.557e-05/0.1452, allocations: 33.64 kB / 475.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.1452, allocations: 0 / 475.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.243e-06/0.1452, allocations: 0 / 475.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.1452, allocations: 0 / 475.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.907e-05/0.1453, allocations: 8 kB / 475.3 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001497/0.1454, allocations: 145.7 kB / 475.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.08e-05/0.1455, allocations: 22.52 kB / 475.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.606e-05/0.1455, allocations: 8.953 kB / 475.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.302e-06/0.1455, allocations: 0 / 475.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.345e-05/0.1456, allocations: 68.16 kB / 475.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1456, allocations: 0 / 475.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001757/0.1458, allocations: 67.39 kB / 475.6 MB, free: 9.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.1458, allocations: 85.05 kB / 475.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.699e-05/0.1459, allocations: 89.86 kB / 475.7 MB, free: 9.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.1459, allocations: 25.7 kB / 475.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.787e-05/0.1459, allocations: 80.14 kB / 475.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.433e-05/0.1459, allocations: 4 kB / 475.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.736e-06/0.146, allocations: 0 / 475.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1461, allocations: 310.8 kB / 476.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.133e-06/0.1461, allocations: 4.125 kB / 476.2 MB, free: 8.848 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.492e-06/0.1461, allocations: 0 / 476.2 MB, free: 8.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.17e-05/0.1461, allocations: 37.62 kB / 476.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1462, allocations: 0 / 476.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.231e-05/0.1462, allocations: 63.41 kB / 476.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.928e-05/0.1463, allocations: 29.7 kB / 476.3 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.1463, allocations: 3.953 kB / 476.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.1463, allocations: 0 / 476.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.1463, allocations: 0 / 476.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.1463, allocations: 4.094 kB / 476.3 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.63e-05/0.1463, allocations: 4 kB / 476.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-06/0.1463, allocations: 3.984 kB / 476.3 MB, free: 8.68 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.0001042/0.1465, allocations: 132.1 kB / 476.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.05e-05/0.1465, allocations: 7.906 kB / 476.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.034e-05/0.1465, allocations: 3.125 kB / 476.4 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1465, allocations: 3.953 kB / 476.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.1465, allocations: 0 / 476.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1465, allocations: 0 / 476.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001414/0.1467, allocations: 149.7 kB / 476.6 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.1467, allocations: 0 / 476.6 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.625e-06/0.1467, allocations: 4 kB / 476.6 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1467, allocations: 0 / 476.6 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.1467, allocations: 0 / 476.6 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1467, allocations: 3.938 kB / 476.6 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.1467, allocations: 3.953 kB / 476.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001015/0.1468, allocations: 94.83 kB / 476.7 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.415e-05/0.1469, allocations: 85.12 kB / 476.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.1469, allocations: 0 / 476.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.085e-05/0.1469, allocations: 0 / 476.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.75e-05/0.1469, allocations: 15.83 kB / 476.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-06/0.147, allocations: 0 / 476.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.293e-05/0.147, allocations: 75.28 kB / 476.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.147, allocations: 0 / 476.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004409/0.1474, allocations: 120.3 kB / 477 MB, free: 7.887 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.001072/0.1485, allocations: 0.7039 MB / 477.7 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.787e-05/0.1486, allocations: 55.41 kB / 477.7 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1486, allocations: 0 / 477.7 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.41e-05/0.1487, allocations: 59.39 kB / 477.8 MB, free: 7.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.1488, allocations: 10.47 kB / 477.8 MB, free: 7.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004005/0.1492, allocations: 120.4 kB / 477.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.1495, allocations: 0.677 MB / 478.6 MB, free: 6.148 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.143e-06/0.1496, allocations: 4.125 kB / 478.6 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.559e-05/0.1496, allocations: 7.438 kB / 478.6 MB, free: 6.137 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1496, allocations: 3.938 kB / 478.6 MB, free: 6.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01904/0.1686, allocations: 4.725 MB / 483.4 MB, free: 1.5 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002078/0.1689, allocations: 210.1 kB / 483.6 MB, free: 1.262 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.942/2.111, allocations: 0 / 483.6 MB, free: 1.262 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe 2>&1)