Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.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.TestMatrices2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2",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.001231/0.001231, 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.001294/0.001294, 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.322/1.322, allocations: 222.9 MB / 242.2 MB, free: 15.17 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.2324/0.2324, allocations: 44.19 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 61.02 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1018, allocations: 60.83 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001652/0.1035, allocations: 491.7 kB / 469.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007068/0.1106, allocations: 4.817 MB / 474.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.803e-05/0.1107, allocations: 0 / 474.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.309e-05/0.1107, allocations: 0 / 474.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.322e-06/0.1107, allocations: 0 / 474.7 MB, free: 8.957 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:214:3-483:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.006669/0.1174, allocations: 2.942 MB / 477.6 MB, free: 6.027 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.353e-05/0.1175, allocations: 3.938 kB / 477.6 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.835e-05/0.1175, allocations: 4 kB / 477.6 MB, free: 6.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.681e-05/0.1176, allocations: 4 kB / 477.6 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.629e-05/0.1176, allocations: 3.984 kB / 477.6 MB, free: 6.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.14e-06/0.1176, allocations: 0 / 477.6 MB, free: 6.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02571/0.1433, allocations: 18.55 MB / 496.2 MB, free: 3.445 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.179e-05/0.1434, allocations: 0 / 496.2 MB, free: 3.445 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.207e-05/0.1434, allocations: 0 / 496.2 MB, free: 3.445 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2328/0.3762, allocations: 27.47 MB / 0.5114 GB, free: 27.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.836e-06/0.3762, allocations: 0.8438 kB / 0.5114 GB, free: 27.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3762, allocations: 3.828 kB / 0.5114 GB, free: 27.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.3762, allocations: 0 / 0.5114 GB, free: 27.95 MB / 382.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.01154/0.3878, allocations: 0.6488 MB / 0.512 GB, free: 27.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.3878, allocations: 9.656 kB / 0.512 GB, free: 27.47 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.28e-05/0.3879, allocations: 35.25 kB / 0.512 GB, free: 27.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3e-05/0.3879, allocations: 3.969 kB / 0.512 GB, free: 27.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.716e-05/0.388, allocations: 164.4 kB / 0.5122 GB, free: 27.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.073e-06/0.388, allocations: 1.219 kB / 0.5122 GB, free: 27.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.107e-06/0.388, allocations: 2.844 kB / 0.5122 GB, free: 27.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.376e-05/0.3881, allocations: 29.27 kB / 0.5122 GB, free: 27.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.3881, allocations: 2.906 kB / 0.5122 GB, free: 27.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.754e-06/0.3881, allocations: 0.9375 kB / 0.5122 GB, free: 27.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.3881, allocations: 2.969 kB / 0.5122 GB, free: 27.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.666e-05/0.3881, allocations: 2.641 kB / 0.5122 GB, free: 27.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.452e-05/0.3882, allocations: 151.3 kB / 0.5124 GB, free: 27.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.073e-05/0.3883, allocations: 20.92 kB / 0.5124 GB, free: 26.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.633e-05/0.3883, allocations: 6.688 kB / 0.5124 GB, free: 26.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.36e-06/0.3883, allocations: 3.219 kB / 0.5124 GB, free: 26.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.3883, allocations: 60.97 kB / 0.5125 GB, free: 26.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.233e-06/0.3883, allocations: 0 / 0.5125 GB, free: 26.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001417/0.3885, allocations: 66.66 kB / 0.5125 GB, free: 26.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.42e-05/0.3885, allocations: 81.2 kB / 0.5126 GB, free: 26.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.625e-05/0.3885, allocations: 92.52 kB / 0.5127 GB, free: 26.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.931e-06/0.3886, allocations: 26.86 kB / 0.5127 GB, free: 26.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.005e-06/0.3886, allocations: 80.14 kB / 0.5128 GB, free: 26.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.799e-05/0.3886, allocations: 2.828 kB / 0.5128 GB, free: 26.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.263e-05/0.3886, allocations: 17.5 kB / 0.5128 GB, free: 26.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.837e-05/0.3887, allocations: 317.8 kB / 0.5131 GB, free: 26.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.177e-06/0.3887, allocations: 1.25 kB / 0.5131 GB, free: 26.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.861e-06/0.3887, allocations: 1.156 kB / 0.5131 GB, free: 26.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.293e-05/0.3887, allocations: 65.58 kB / 0.5132 GB, free: 26.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.3887, allocations: 0 / 0.5132 GB, free: 26.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.806e-05/0.3888, allocations: 64.11 kB / 0.5133 GB, free: 26.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.3888, allocations: 32.22 kB / 0.5133 GB, free: 26.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.3888, allocations: 2.094 kB / 0.5133 GB, free: 26.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3889, allocations: 0 / 0.5133 GB, free: 26.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.72e-07/0.3889, allocations: 1.094 kB / 0.5133 GB, free: 26.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-06/0.3889, allocations: 0.6094 kB / 0.5133 GB, free: 26.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.862e-05/0.3889, allocations: 4.375 kB / 0.5133 GB, free: 26.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-06/0.3889, allocations: 1.281 kB / 0.5133 GB, free: 26.04 MB / 382.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 4.85e-05/0.389, allocations: 144.7 kB / 0.5134 GB, free: 25.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.815e-06/0.389, allocations: 1.734 kB / 0.5134 GB, free: 25.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.428e-06/0.389, allocations: 4.938 kB / 0.5134 GB, free: 25.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.22e-07/0.389, allocations: 0 / 0.5134 GB, free: 25.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.389, allocations: 0 / 0.5134 GB, free: 25.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.389, allocations: 6.281 kB / 0.5134 GB, free: 25.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.731e-05/0.3891, allocations: 153.5 kB / 0.5136 GB, free: 25.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.3891, allocations: 0 / 0.5136 GB, free: 25.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.3891, allocations: 2.938 kB / 0.5136 GB, free: 25.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3891, allocations: 1.359 kB / 0.5136 GB, free: 25.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-06/0.3891, allocations: 1.031 kB / 0.5136 GB, free: 25.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.3891, allocations: 1.25 kB / 0.5136 GB, free: 25.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.3891, allocations: 0 / 0.5136 GB, free: 25.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.743e-05/0.3892, allocations: 104.2 kB / 0.5137 GB, free: 25.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.448e-05/0.3892, allocations: 82.7 kB / 0.5138 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.176e-05/0.3892, allocations: 2.781 kB / 0.5138 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.766e-06/0.3892, allocations: 0 / 0.5138 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.121e-05/0.3893, allocations: 5.375 kB / 0.5138 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.3893, allocations: 1.812 kB / 0.5138 GB, free: 25.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.768e-06/0.3893, allocations: 75.28 kB / 0.5139 GB, free: 25.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.3893, allocations: 0 / 0.5139 GB, free: 25.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01504/0.4043, allocations: 3.786 MB / 0.5176 GB, free: 25.33 MB / 382.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.03506/0.4394, allocations: 1.494 MB / 0.519 GB, free: 24.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001694/0.4396, allocations: 61.02 kB / 0.5191 GB, free: 24.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4397, allocations: 3.562 kB / 0.5191 GB, free: 24.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.537e-05/0.4397, allocations: 55 kB / 0.5191 GB, free: 24.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002056/0.4399, allocations: 2.969 kB / 0.5191 GB, free: 24.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01553/0.4554, allocations: 335.2 kB / 0.5194 GB, free: 24.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001264/0.4556, allocations: 0.6729 MB / 0.5201 GB, free: 23.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.126e-05/0.4556, allocations: 0 / 0.5201 GB, free: 23.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.472e-05/0.4557, allocations: 14.69 kB / 0.5201 GB, free: 23.53 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4557, allocations: 0 / 0.5201 GB, free: 23.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1838/0.6395, allocations: 113.8 MB / 0.6313 GB, free: 8.453 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.84/16.48, allocations: 9.656 kB / 0.6313 GB, free: 8.445 MB / 478.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2_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_TestMatrices2.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe 2>&1)