Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.TestMatrices,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001239/0.001239, 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.001519/0.001519, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2221/0.2221, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00268/0.00268, allocations: 77.77 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1226, allocations: 62.44 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001627/0.1242, allocations: 0.491 MB / 480.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.1261, allocations: 1.61 MB / 482.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.334e-05/0.1262, allocations: 0 / 482.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.011e-05/0.1262, allocations: 4 kB / 482.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.218e-06/0.1262, allocations: 0 / 482.2 MB, free: 3.078 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:171:3-212:15:writable] Warning: Pure function 'ModelicaTest.Math.Matrices' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008181/0.127, allocations: 267.3 kB / 482.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.513e-05/0.1271, allocations: 7.984 kB / 482.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.125e-05/0.1271, allocations: 0 / 482.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.353e-05/0.1271, allocations: 0 / 482.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.793e-05/0.1272, allocations: 4 kB / 482.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.849e-06/0.1272, allocations: 4 kB / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006726/0.1278, allocations: 498.9 kB / 483 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.503e-06/0.1279, allocations: 0 / 483 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.849e-05/0.1279, allocations: 4 kB / 483 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004129/0.1283, allocations: 307.4 kB / 483.3 MB, free: 2.008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.1283, allocations: 3.938 kB / 483.3 MB, free: 2.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1283, allocations: 0 / 483.3 MB, free: 2.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.1283, allocations: 0 / 483.3 MB, free: 2.004 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.0003241/0.1287, allocations: 377.3 kB / 483.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.1287, allocations: 8.031 kB / 483.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.46e-05/0.1287, allocations: 30.75 kB / 483.7 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.244e-05/0.1288, allocations: 4.938 kB / 483.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.252e-05/0.1288, allocations: 164.4 kB / 483.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.696e-06/0.1289, allocations: 384 / 483.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.954e-06/0.1289, allocations: 384 / 483.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.435e-05/0.129, allocations: 45.75 kB / 483.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.721e-06/0.129, allocations: 0 / 483.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.041e-06/0.129, allocations: 4 kB / 483.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.129, allocations: 0 / 483.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.448e-05/0.129, allocations: 0 / 483.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000112/0.1291, allocations: 145.7 kB / 484.1 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.374e-05/0.1292, allocations: 18.56 kB / 484.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.281e-05/0.1292, allocations: 4.859 kB / 484.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.964e-06/0.1292, allocations: 96 / 484.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.576e-05/0.1292, allocations: 76.14 kB / 484.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.1293, allocations: 0 / 484.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001386/0.1294, allocations: 63.39 kB / 484.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/0.1294, allocations: 77.11 kB / 484.3 MB, free: 0.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.469e-05/0.1295, allocations: 89.86 kB / 484.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.1295, allocations: 25.7 kB / 484.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.189e-05/0.1295, allocations: 80.14 kB / 484.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.41e-05/0.1295, allocations: 3.906 kB / 484.5 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.77e-05/0.1296, allocations: 21.84 kB / 484.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.356e-05/0.1297, allocations: 310.8 kB / 484.8 MB, free: 244 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.017e-05/0.1297, allocations: 0 / 484.8 MB, free: 244 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.765e-06/0.1297, allocations: 7.938 kB / 484.8 MB, free: 236 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.443e-05/0.1298, allocations: 64.19 kB / 484.9 MB, free: 156 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1298, allocations: 4 kB / 484.9 MB, free: 152 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.202e-05/0.1298, allocations: 59.41 kB / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.314e-05/0.1299, allocations: 37.73 kB / 485 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1299, allocations: 8 kB / 485 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.1299, allocations: 0 / 485 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.1299, allocations: 0 / 485 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.1299, allocations: 3.938 kB / 485 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.414e-05/0.1299, allocations: 0 / 485 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-06/0.1299, allocations: 0 / 485 MB, free: 24 kB / 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.909e-05/0.13, allocations: 139.5 kB / 485.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-06/0.13, allocations: 3.938 kB / 485.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.077e-06/0.1301, allocations: 7.125 kB / 485.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1301, allocations: 4 kB / 485.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1301, allocations: 0 / 485.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.1301, allocations: 3.938 kB / 485.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.604e-05/0.1302, allocations: 150 kB / 485.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1302, allocations: 0 / 485.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.1302, allocations: 0 / 485.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1302, allocations: 3.938 kB / 485.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.724e-06/0.1302, allocations: 4 kB / 485.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1302, allocations: 0 / 485.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1302, allocations: 0 / 485.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.164e-05/0.1303, allocations: 94.83 kB / 485.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.304e-05/0.1304, allocations: 81.05 kB / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.1304, allocations: 0 / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.778e-06/0.1304, allocations: 0 / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.293e-05/0.1304, allocations: 0 / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-06/0.1304, allocations: 4 kB / 485.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.453e-05/0.1304, allocations: 75.28 kB / 485.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1304, allocations: 4.031 kB / 485.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003346/0.1308, allocations: 63.98 kB / 485.6 MB, free: 15.29 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.0007291/0.1315, allocations: 0.7248 MB / 486.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.818e-05/0.1316, allocations: 59.39 kB / 486.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1316, allocations: 0 / 486.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.364e-05/0.1317, allocations: 59.47 kB / 486.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00013/0.1318, allocations: 4 kB / 486.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003255/0.1321, allocations: 134.5 kB / 486.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.1324, allocations: 0.669 MB / 487.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.171e-06/0.1324, allocations: 0 / 487.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.526e-05/0.1324, allocations: 11.42 kB / 487.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1324, allocations: 4 kB / 487.3 MB, free: 13.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01818/0.1506, allocations: 2.075 MB / 489.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.785/7.936, allocations: 11.95 kB / 489.4 MB, free: 11.47 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1)