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.001727/0.001727, allocations: 103.5 kB / 17.63 MB, free: 5.344 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.001997/0.001997, allocations: 192 kB / 18.56 MB, free: 4.434 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.412/1.412, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2103/0.2103, allocations: 44.19 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 63.58 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1163, allocations: 60.82 MB / 469.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001823/0.1182, allocations: 499.6 kB / 469.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003237/0.1214, allocations: 2.101 MB / 471.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.044e-05/0.1215, allocations: 0 / 471.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.814e-05/0.1215, allocations: 0 / 471.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.991e-06/0.1216, allocations: 0 / 471.9 MB, free: 11.67 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.002066/0.1236, allocations: 0.7149 MB / 472.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.417e-05/0.1237, allocations: 7.938 kB / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.161e-05/0.1238, allocations: 0 / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.661e-05/0.1238, allocations: 0 / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.204e-05/0.1238, allocations: 3.984 kB / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.632e-06/0.1238, allocations: 0 / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001858/0.1257, allocations: 1.412 MB / 474.1 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.997e-06/0.1257, allocations: 0 / 474.1 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.129e-05/0.1257, allocations: 3.938 kB / 474.1 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001525/0.1273, allocations: 1.56 MB / 475.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1273, allocations: 0 / 475.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1273, allocations: 0 / 475.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.1273, allocations: 0 / 475.6 MB, free: 7.965 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.0006104/0.1279, allocations: 425.2 kB / 476.1 MB, free: 7.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.128, allocations: 12.03 kB / 476.1 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.073e-05/0.128, allocations: 30.75 kB / 476.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.623e-05/0.128, allocations: 0.9375 kB / 476.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.1282, allocations: 164.3 kB / 476.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.1282, allocations: 384 / 476.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.005e-06/0.1282, allocations: 3.938 kB / 476.3 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.728e-05/0.1283, allocations: 33.69 kB / 476.3 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.425e-06/0.1283, allocations: 0 / 476.3 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.298e-06/0.1283, allocations: 4 kB / 476.3 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.1283, allocations: 0 / 476.3 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.015e-05/0.1284, allocations: 8 kB / 476.3 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001518/0.1285, allocations: 141.7 kB / 476.4 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.325e-05/0.1286, allocations: 22.45 kB / 476.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.288e-05/0.1286, allocations: 16.94 kB / 476.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.1286, allocations: 0 / 476.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.62e-05/0.1287, allocations: 64.27 kB / 476.5 MB, free: 6.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1287, allocations: 0 / 476.5 MB, free: 6.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002166/0.1289, allocations: 63.41 kB / 476.6 MB, free: 6.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.512e-05/0.129, allocations: 77.11 kB / 476.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.861e-05/0.1291, allocations: 93.84 kB / 476.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.1291, allocations: 25.7 kB / 476.8 MB, free: 6.574 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.619e-05/0.1291, allocations: 84.14 kB / 476.9 MB, free: 6.488 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.1292, allocations: 4.188 kB / 476.9 MB, free: 6.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-05/0.1292, allocations: 21.78 kB / 476.9 MB, free: 6.457 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.1294, allocations: 310.8 kB / 477.2 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.294e-05/0.1294, allocations: 4 kB / 477.2 MB, free: 6.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.861e-06/0.1294, allocations: 0 / 477.2 MB, free: 6.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.899e-05/0.1295, allocations: 60.27 kB / 477.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.1295, allocations: 0 / 477.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.586e-05/0.1296, allocations: 75.2 kB / 477.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/0.1296, allocations: 33.7 kB / 477.4 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.1296, allocations: 4.094 kB / 477.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.1297, allocations: 0 / 477.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.1297, allocations: 0 / 477.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.657e-06/0.1297, allocations: 0 / 477.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.68e-05/0.1297, allocations: 3.938 kB / 477.4 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.812e-06/0.1297, allocations: 4 kB / 477.4 MB, free: 5.93 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.997e-05/0.1298, allocations: 139.5 kB / 477.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.112e-05/0.1298, allocations: 3.938 kB / 477.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.44e-05/0.1299, allocations: 11.11 kB / 477.5 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1299, allocations: 4 kB / 477.5 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.1299, allocations: 0 / 477.5 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.1299, allocations: 0 / 477.5 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001149/0.13, allocations: 149.6 kB / 477.7 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.13, allocations: 0 / 477.7 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.13, allocations: 0 / 477.7 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-07/0.13, allocations: 4 kB / 477.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.13, allocations: 0 / 477.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.13, allocations: 0 / 477.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.13, allocations: 0 / 477.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001254/0.1302, allocations: 98.77 kB / 477.8 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.178e-05/0.1302, allocations: 81.11 kB / 477.9 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.1302, allocations: 0 / 477.9 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-06/0.1303, allocations: 0 / 477.9 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.618e-05/0.1303, allocations: 3.938 kB / 477.9 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-06/0.1303, allocations: 4 kB / 477.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.998e-05/0.1303, allocations: 75.28 kB / 478 MB, free: 5.258 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1303, allocations: 0 / 478 MB, free: 5.258 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008331/0.1312, allocations: 276 kB / 478.2 MB, free: 4.988 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 (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.001489/0.1327, allocations: 0.9327 MB / 479.2 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001136/0.1328, allocations: 67.33 kB / 479.2 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1328, allocations: 0 / 479.2 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.235e-05/0.1328, allocations: 59.47 kB / 479.3 MB, free: 3.891 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000128/0.133, allocations: 4 kB / 479.3 MB, free: 3.887 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004673/0.1334, allocations: 158.6 kB / 479.4 MB, free: 3.691 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.1337, allocations: 0.669 MB / 480.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.931e-06/0.1337, allocations: 4 kB / 480.1 MB, free: 2.992 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.508e-05/0.1338, allocations: 7.438 kB / 480.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1338, allocations: 0 / 480.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02938/0.1631, allocations: 8.304 MB / 488.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.952/8.116, allocations: 12.03 kB / 488.4 MB, free: 10.71 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_0_0_ModelicaTest_Math_TestMatrices2b.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe 2>&1)