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.001096/0.001096, allocations: 112.7 kB / 17.78 MB, free: 5.281 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.001157/0.001157, allocations: 180.1 kB / 18.71 MB, free: 4.363 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.319/1.319, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2098/0.2098, allocations: 44.19 MB / 336.8 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 67.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3598, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001502/0.3614, allocations: 0.4899 MB / 0.5189 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002616/0.364, allocations: 2.09 MB / 0.5209 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.182e-05/0.364, allocations: 1.125 kB / 0.5209 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.831e-05/0.3641, allocations: 3.938 kB / 0.5209 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.883e-06/0.3641, allocations: 4 kB / 0.5209 GB, free: 1.516 MB / 382.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.00195/0.366, allocations: 0.7192 MB / 0.5216 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.787e-05/0.3661, allocations: 10.25 kB / 0.5216 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.428e-05/0.3661, allocations: 1.875 kB / 0.5216 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.605e-05/0.3662, allocations: 1.156 kB / 0.5217 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.177e-05/0.3662, allocations: 3.938 kB / 0.5217 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.56e-06/0.3662, allocations: 0 / 0.5217 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002785/0.369, allocations: 1.501 MB / 0.5231 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.397e-05/0.369, allocations: 4 kB / 0.5231 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.243e-05/0.3691, allocations: 1.594 kB / 0.5231 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002657/0.3717, allocations: 1.547 MB / 0.5246 GB, free: 396 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.3718, allocations: 0 / 0.5246 GB, free: 396 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3718, allocations: 0 / 0.5246 GB, free: 396 kB / 382.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.3718, allocations: 0 / 0.5246 GB, free: 396 kB / 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.0008564/0.3726, allocations: 421.4 kB / 0.525 GB, free: 15.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.3727, allocations: 13.25 kB / 0.5251 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.347e-05/0.3727, allocations: 30.75 kB / 0.5251 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.719e-05/0.3728, allocations: 1.812 kB / 0.5251 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.3729, allocations: 160.4 kB / 0.5252 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-06/0.3729, allocations: 8.969 kB / 0.5252 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.3729, allocations: 4.844 kB / 0.5252 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.694e-05/0.373, allocations: 32.78 kB / 0.5253 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.3731, allocations: 0 / 0.5253 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.3731, allocations: 4 kB / 0.5253 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.3731, allocations: 1.375 kB / 0.5253 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.058e-05/0.3731, allocations: 9.359 kB / 0.5253 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001315/0.3733, allocations: 143 kB / 0.5254 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.486e-05/0.3733, allocations: 23.86 kB / 0.5255 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.748e-05/0.3733, allocations: 6.234 kB / 0.5255 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.047e-06/0.3733, allocations: 3.984 kB / 0.5255 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.175e-05/0.3734, allocations: 61.64 kB / 0.5255 GB, free: 15.35 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.3734, allocations: 4 kB / 0.5255 GB, free: 15.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001778/0.3736, allocations: 58.44 kB / 0.5256 GB, free: 15.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.3736, allocations: 78.52 kB / 0.5257 GB, free: 15.19 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.198e-05/0.3737, allocations: 89.86 kB / 0.5257 GB, free: 15.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.3737, allocations: 31.09 kB / 0.5258 GB, free: 15.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.348e-05/0.3737, allocations: 80.14 kB / 0.5258 GB, free: 14.97 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.3738, allocations: 0 / 0.5258 GB, free: 14.97 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.703e-05/0.3738, allocations: 20.44 kB / 0.5259 GB, free: 14.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.3739, allocations: 318.9 kB / 0.5262 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.588e-06/0.3739, allocations: 1.406 kB / 0.5262 GB, free: 14.63 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.28e-06/0.3739, allocations: 1.406 kB / 0.5262 GB, free: 14.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.508e-05/0.374, allocations: 59.33 kB / 0.5262 GB, free: 14.56 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.374, allocations: 0 / 0.5262 GB, free: 14.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.925e-05/0.3741, allocations: 69.83 kB / 0.5263 GB, free: 14.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.569e-05/0.3741, allocations: 31.8 kB / 0.5263 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.3741, allocations: 0 / 0.5263 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.3741, allocations: 1.531 kB / 0.5263 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.435e-06/0.3742, allocations: 8 kB / 0.5263 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.3742, allocations: 0 / 0.5263 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.905e-05/0.3742, allocations: 5.078 kB / 0.5263 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.3742, allocations: 3.938 kB / 0.5263 GB, free: 14.44 MB / 398.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 0.0001037/0.3743, allocations: 139 kB / 0.5265 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.268e-06/0.3743, allocations: 3.938 kB / 0.5265 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.147e-05/0.3743, allocations: 3.125 kB / 0.5265 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.3744, allocations: 1.531 kB / 0.5265 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3744, allocations: 4 kB / 0.5265 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-06/0.3744, allocations: 0 / 0.5265 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001027/0.3745, allocations: 147.3 kB / 0.5266 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3745, allocations: 0 / 0.5266 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.034e-06/0.3745, allocations: 5.391 kB / 0.5266 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.3745, allocations: 3.938 kB / 0.5266 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.036e-06/0.3745, allocations: 1.031 kB / 0.5266 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.3745, allocations: 0 / 0.5266 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3745, allocations: 1.344 kB / 0.5266 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001176/0.3746, allocations: 101.4 kB / 0.5267 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.323e-05/0.3747, allocations: 81.05 kB / 0.5268 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.3747, allocations: 1.531 kB / 0.5268 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.997e-06/0.3747, allocations: 0 / 0.5268 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.729e-05/0.3748, allocations: 5.062 kB / 0.5268 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.3748, allocations: 1.219 kB / 0.5268 GB, free: 13.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.208e-05/0.3748, allocations: 75.28 kB / 0.5269 GB, free: 13.79 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3748, allocations: 0 / 0.5269 GB, free: 13.79 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001573/0.3764, allocations: 280.2 kB / 0.5272 GB, free: 13.75 MB / 398.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.001822/0.3783, allocations: 0.9444 MB / 0.5281 GB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001189/0.3784, allocations: 64.7 kB / 0.5281 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3784, allocations: 7.875 kB / 0.5282 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.139e-05/0.3784, allocations: 54.16 kB / 0.5282 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.3786, allocations: 7.156 kB / 0.5282 GB, free: 12.81 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005701/0.3792, allocations: 162.1 kB / 0.5284 GB, free: 12.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.3795, allocations: 0.674 MB / 0.529 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.512e-06/0.3795, allocations: 0 / 0.529 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.973e-05/0.3795, allocations: 10.28 kB / 0.529 GB, free: 11.94 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3795, allocations: 0 / 0.529 GB, free: 11.94 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03137/0.4109, allocations: 8.207 MB / 0.537 GB, free: 7.582 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.537/7.948, allocations: 7.531 kB / 0.5371 GB, free: 7.578 MB / 398.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)