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.001478/0.001478, allocations: 104.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.001882/0.001882, 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.355/1.355, allocations: 222.9 MB / 242.3 MB, free: 15.14 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.2139/0.2139, allocations: 44.18 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 60.7 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1177, allocations: 60.83 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.001685/0.1194, allocations: 491.8 kB / 469.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001912/0.1213, allocations: 1.516 MB / 471.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.899e-05/0.1214, allocations: 0 / 471.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.123e-05/0.1214, allocations: 0 / 471.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.629e-06/0.1214, allocations: 0 / 471.4 MB, free: 12.25 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.0008213/0.1222, allocations: 227.4 kB / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.806e-05/0.1223, allocations: 0 / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.773e-05/0.1224, allocations: 8 kB / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.709e-05/0.1224, allocations: 3.984 kB / 471.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.619e-05/0.1224, allocations: 0 / 471.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.571e-06/0.1224, allocations: 0 / 471.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009506/0.1234, allocations: 0.6986 MB / 472.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.013e-06/0.1234, allocations: 0 / 472.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.812e-05/0.1234, allocations: 3.938 kB / 472.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006966/0.1241, allocations: 0.6395 MB / 472.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1241, allocations: 4 kB / 472.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1241, allocations: 0 / 472.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.441e-06/0.1241, allocations: 0 / 472.9 MB, free: 10.66 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.0004518/0.1246, allocations: 365.3 kB / 473.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.1247, allocations: 8.031 kB / 473.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.984e-05/0.1247, allocations: 30.75 kB / 473.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.408e-05/0.1247, allocations: 0.9375 kB / 473.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.1248, allocations: 164.4 kB / 473.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.1248, allocations: 4.375 kB / 473.5 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.1249, allocations: 384 / 473.5 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.247e-05/0.125, allocations: 41.75 kB / 473.5 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.125, allocations: 0 / 473.5 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.125, allocations: 4 kB / 473.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.125, allocations: 0 / 473.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.704e-05/0.125, allocations: 7.922 kB / 473.5 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001425/0.1252, allocations: 149.7 kB / 473.7 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.55e-05/0.1252, allocations: 18.61 kB / 473.7 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.288e-05/0.1252, allocations: 12.8 kB / 473.7 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-06/0.1252, allocations: 0 / 473.7 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.766e-05/0.1253, allocations: 68.2 kB / 473.8 MB, free: 9.625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.1253, allocations: 0 / 473.8 MB, free: 9.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001691/0.1255, allocations: 63.39 kB / 473.9 MB, free: 9.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.1255, allocations: 81.11 kB / 473.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.427e-05/0.1256, allocations: 89.86 kB / 474 MB, free: 9.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.1256, allocations: 25.7 kB / 474 MB, free: 9.324 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.431e-05/0.1256, allocations: 84.27 kB / 474.1 MB, free: 9.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.615e-05/0.1257, allocations: 0 / 474.1 MB, free: 9.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.801e-05/0.1257, allocations: 13.72 kB / 474.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.1258, allocations: 314.8 kB / 474.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.496e-06/0.1258, allocations: 0 / 474.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.15e-06/0.1258, allocations: 0 / 474.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.854e-05/0.1259, allocations: 68.19 kB / 474.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.1259, allocations: 4.062 kB / 474.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.32e-05/0.126, allocations: 59.41 kB / 474.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/0.126, allocations: 37.64 kB / 474.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.126, allocations: 0 / 474.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.126, allocations: 0 / 474.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.81e-07/0.126, allocations: 4 kB / 474.6 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.1261, allocations: 3.984 kB / 474.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.593e-05/0.1261, allocations: 0 / 474.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.1261, allocations: 0 / 474.6 MB, free: 8.695 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.4e-05/0.1262, allocations: 139.6 kB / 474.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.062e-05/0.1262, allocations: 7.844 kB / 474.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.758e-06/0.1262, allocations: 3.125 kB / 474.8 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.1262, allocations: 0 / 474.8 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.1262, allocations: 0 / 474.8 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.1262, allocations: 4 kB / 474.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.801e-05/0.1263, allocations: 149.7 kB / 474.9 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1264, allocations: 0 / 474.9 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.1264, allocations: 3.938 kB / 474.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.1264, allocations: 3.938 kB / 474.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.1264, allocations: 4 kB / 474.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1264, allocations: 0 / 474.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1264, allocations: 3.938 kB / 474.9 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.066e-05/0.1265, allocations: 90.83 kB / 475 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.1266, allocations: 81.05 kB / 475.1 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.231e-05/0.1266, allocations: 3.938 kB / 475.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-06/0.1266, allocations: 4 kB / 475.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.428e-05/0.1267, allocations: 4 kB / 475.1 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.1267, allocations: 4.031 kB / 475.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.41e-05/0.1267, allocations: 75.28 kB / 475.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1267, allocations: 0 / 475.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003729/0.1271, allocations: 120.3 kB / 475.3 MB, free: 7.898 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.0009374/0.128, allocations: 0.7098 MB / 476 MB, free: 7.164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001099/0.1281, allocations: 63.39 kB / 476.1 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.1282, allocations: 4.062 kB / 476.1 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.81e-05/0.1282, allocations: 55.41 kB / 476.1 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.0001266/0.1283, allocations: 0 / 476.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003874/0.1287, allocations: 130.5 kB / 476.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.129, allocations: 0.669 MB / 476.9 MB, free: 6.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.542e-06/0.129, allocations: 4 kB / 476.9 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.597e-05/0.129, allocations: 7.438 kB / 476.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.129, allocations: 0 / 476.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02308/0.1521, allocations: 4.691 MB / 481.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.59/7.742, allocations: 8.109 kB / 481.6 MB, free: 1.488 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3_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_TestMatrices3.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe 2>&1)