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.001515/0.001515, allocations: 114.4 kB / 17.78 MB, free: 5.277 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.001674/0.001674, allocations: 183.8 kB / 18.72 MB, free: 4.352 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.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.211/0.211, allocations: 44.18 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3593, allocations: 60.82 MB / 0.5184 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001809/0.3612, allocations: 0.4937 MB / 0.5189 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007771/0.369, allocations: 4.828 MB / 0.5236 GB, free: 15.81 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.742e-05/0.3691, allocations: 0 / 0.5236 GB, free: 15.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.929e-05/0.3691, allocations: 0 / 0.5236 GB, free: 15.81 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.033e-06/0.3691, allocations: 5.094 kB / 0.5236 GB, free: 15.8 MB / 398.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.008437/0.3776, allocations: 2.947 MB / 0.5265 GB, free: 14.6 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.386e-05/0.3777, allocations: 5.469 kB / 0.5265 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.55e-05/0.3777, allocations: 5.203 kB / 0.5265 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.519e-05/0.3777, allocations: 0 / 0.5265 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.718e-05/0.3778, allocations: 1.219 kB / 0.5265 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.3e-06/0.3778, allocations: 0 / 0.5265 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02888/0.4066, allocations: 18.81 MB / 0.5449 GB, free: 1.023 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.38e-05/0.4067, allocations: 0 / 0.5449 GB, free: 1.023 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.867e-05/0.4067, allocations: 4 kB / 0.5449 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04124/0.448, allocations: 27.48 MB / 0.5717 GB, free: 5.5 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.448, allocations: 4 kB / 0.5717 GB, free: 5.496 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.448, allocations: 0 / 0.5717 GB, free: 5.496 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.4481, allocations: 0 / 0.5717 GB, free: 5.496 MB / 430.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.009629/0.4577, allocations: 0.6697 MB / 0.5724 GB, free: 4.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.4578, allocations: 12.02 kB / 0.5724 GB, free: 4.758 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.658e-05/0.4578, allocations: 34.75 kB / 0.5724 GB, free: 4.715 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.371e-05/0.4579, allocations: 0.9375 kB / 0.5724 GB, free: 4.715 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.458, allocations: 167 kB / 0.5726 GB, free: 4.512 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.458, allocations: 0 / 0.5726 GB, free: 4.512 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.344e-05/0.458, allocations: 0 / 0.5726 GB, free: 4.512 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001102/0.4581, allocations: 41.58 kB / 0.5726 GB, free: 4.465 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.4581, allocations: 0 / 0.5726 GB, free: 4.465 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.4582, allocations: 0 / 0.5726 GB, free: 4.465 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.4582, allocations: 0 / 0.5726 GB, free: 4.465 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.258e-05/0.4582, allocations: 3.984 kB / 0.5726 GB, free: 4.461 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001676/0.4584, allocations: 153.6 kB / 0.5728 GB, free: 4.262 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.723e-05/0.4584, allocations: 14.58 kB / 0.5728 GB, free: 4.238 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.242e-05/0.4585, allocations: 12.95 kB / 0.5728 GB, free: 4.223 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.079e-05/0.4585, allocations: 3.938 kB / 0.5728 GB, free: 4.219 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.256e-05/0.4585, allocations: 56.27 kB / 0.5728 GB, free: 4.148 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.4585, allocations: 3.938 kB / 0.5728 GB, free: 4.145 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002018/0.4587, allocations: 67.39 kB / 0.5729 GB, free: 4.066 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.4588, allocations: 77.11 kB / 0.573 GB, free: 3.973 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.221e-05/0.4589, allocations: 89.86 kB / 0.5731 GB, free: 3.875 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/0.4589, allocations: 25.7 kB / 0.5731 GB, free: 3.844 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.067e-05/0.4589, allocations: 84.27 kB / 0.5732 GB, free: 3.758 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.512e-05/0.459, allocations: 11.94 kB / 0.5732 GB, free: 3.746 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.555e-05/0.459, allocations: 13.72 kB / 0.5732 GB, free: 3.727 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.4591, allocations: 318.8 kB / 0.5735 GB, free: 3.406 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.47e-05/0.4591, allocations: 4 kB / 0.5735 GB, free: 3.402 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.775e-06/0.4592, allocations: 3.938 kB / 0.5735 GB, free: 3.398 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.549e-05/0.4592, allocations: 60.27 kB / 0.5736 GB, free: 3.324 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.4592, allocations: 4.062 kB / 0.5736 GB, free: 3.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.563e-05/0.4593, allocations: 55.41 kB / 0.5736 GB, free: 3.254 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.097e-05/0.4594, allocations: 41.69 kB / 0.5737 GB, free: 3.207 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.4594, allocations: 0 / 0.5737 GB, free: 3.207 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.4594, allocations: 0 / 0.5737 GB, free: 3.207 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.4594, allocations: 0 / 0.5737 GB, free: 3.207 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.4594, allocations: 0 / 0.5737 GB, free: 3.207 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.068e-05/0.4594, allocations: 3.938 kB / 0.5737 GB, free: 3.203 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-06/0.4594, allocations: 4 kB / 0.5737 GB, free: 3.199 MB / 430.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.741e-05/0.4595, allocations: 135.6 kB / 0.5738 GB, free: 3.051 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.317e-06/0.4596, allocations: 0 / 0.5738 GB, free: 3.051 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.335e-05/0.4596, allocations: 7.125 kB / 0.5738 GB, free: 3.043 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.4596, allocations: 3.938 kB / 0.5738 GB, free: 3.039 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.4596, allocations: 3.984 kB / 0.5738 GB, free: 3.035 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.4596, allocations: 3.938 kB / 0.5738 GB, free: 3.031 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.661e-05/0.4597, allocations: 141.7 kB / 0.574 GB, free: 2.844 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.4597, allocations: 0 / 0.574 GB, free: 2.844 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.798e-06/0.4597, allocations: 4 kB / 0.574 GB, free: 2.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.4597, allocations: 4 kB / 0.574 GB, free: 2.836 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-06/0.4598, allocations: 4 kB / 0.574 GB, free: 2.832 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.4598, allocations: 3.938 kB / 0.574 GB, free: 2.828 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4598, allocations: 0 / 0.574 GB, free: 2.828 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000104/0.4599, allocations: 94.77 kB / 0.5741 GB, free: 2.711 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.041e-05/0.4599, allocations: 77.11 kB / 0.5741 GB, free: 2.617 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.265e-05/0.4599, allocations: 3.938 kB / 0.5741 GB, free: 2.613 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.344e-05/0.46, allocations: 7.984 kB / 0.5741 GB, free: 2.605 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.776e-05/0.46, allocations: 8.031 kB / 0.5741 GB, free: 2.598 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-06/0.46, allocations: 3.938 kB / 0.5742 GB, free: 2.594 MB / 430.1 MB Notification: Performance of sorting global known variables: time 2.679e-05/0.46, allocations: 75.28 kB / 0.5742 GB, free: 2.52 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.46, allocations: 0 / 0.5742 GB, free: 2.52 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01126/0.4713, allocations: 3.784 MB / 0.5779 GB, free: 14.73 MB / 446.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.02087/0.4922, allocations: 1.506 MB / 0.5794 GB, free: 13.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000175/0.4924, allocations: 67.34 kB / 0.5795 GB, free: 13.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.4924, allocations: 0 / 0.5795 GB, free: 13.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 3.916e-05/0.4925, allocations: 51.41 kB / 0.5795 GB, free: 13.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001602/0.4927, allocations: 7.938 kB / 0.5795 GB, free: 13.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00923/0.5019, allocations: 340.9 kB / 0.5798 GB, free: 12.69 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.5023, allocations: 0.6806 MB / 0.5805 GB, free: 11.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.214e-05/0.5023, allocations: 0 / 0.5805 GB, free: 11.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.95e-05/0.5024, allocations: 11.44 kB / 0.5805 GB, free: 11.97 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5024, allocations: 0 / 0.5805 GB, free: 11.97 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1823/0.6848, allocations: 113.8 MB / 0.6917 GB, free: 10.01 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.36/16.05, allocations: 8.844 kB / 0.6917 GB, free: 10 MB / 0.545 GB (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)