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.00109/0.00109, allocations: 112.8 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.001007/0.001007, allocations: 180.9 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.297/1.297, allocations: 222.9 MB / 242.4 MB, free: 15.15 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.2047/0.2047, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3894/0.3907, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.002355/0.3931, allocations: 498.4 kB / 0.5189 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00304/0.3962, allocations: 1.521 MB / 0.5204 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.748e-05/0.3962, allocations: 0 / 0.5204 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.386e-05/0.3963, allocations: 0 / 0.5204 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.544e-06/0.3963, allocations: 0 / 0.5204 GB, free: 1.891 MB / 382.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.001426/0.3977, allocations: 218.9 kB / 0.5206 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.067e-05/0.3978, allocations: 6.375 kB / 0.5206 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.887e-05/0.3979, allocations: 5.5 kB / 0.5206 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.6e-05/0.3979, allocations: 1.156 kB / 0.5206 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.869e-05/0.3979, allocations: 5.078 kB / 0.5206 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.592e-06/0.3979, allocations: 0 / 0.5206 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001683/0.3996, allocations: 0.7028 MB / 0.5213 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.048e-05/0.3996, allocations: 1.188 kB / 0.5213 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.993e-05/0.3997, allocations: 5.281 kB / 0.5213 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001635/0.4013, allocations: 0.6337 MB / 0.5219 GB, free: 1.605 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.4013, allocations: 0 / 0.5219 GB, free: 1.605 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4014, allocations: 1.219 kB / 0.5219 GB, free: 1.605 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.4014, allocations: 4 kB / 0.5219 GB, free: 1.602 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.0008801/0.4023, allocations: 368.1 kB / 0.5223 GB, free: 1.203 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.4023, allocations: 9.688 kB / 0.5223 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.004e-05/0.4024, allocations: 32.5 kB / 0.5223 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/0.4024, allocations: 0.9375 kB / 0.5223 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.932e-05/0.4025, allocations: 166.6 kB / 0.5225 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.4025, allocations: 384 / 0.5225 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.093e-05/0.4025, allocations: 6.141 kB / 0.5225 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.419e-05/0.4026, allocations: 40.89 kB / 0.5225 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.4027, allocations: 0.7031 kB / 0.5225 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.4027, allocations: 5.062 kB / 0.5225 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.4027, allocations: 0 / 0.5225 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.23e-05/0.4027, allocations: 1.062 kB / 0.5225 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001196/0.4029, allocations: 144.7 kB / 0.5227 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.762e-05/0.4029, allocations: 17.59 kB / 0.5227 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.191e-05/0.403, allocations: 14.53 kB / 0.5227 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.001e-05/0.403, allocations: 4 kB / 0.5227 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.403, allocations: 66.33 kB / 0.5228 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.353e-06/0.403, allocations: 3.938 kB / 0.5228 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002011/0.4032, allocations: 61.7 kB / 0.5228 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.4033, allocations: 77.77 kB / 0.5229 GB, free: 456 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.003e-05/0.4033, allocations: 91.58 kB / 0.523 GB, free: 356 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.556e-06/0.4034, allocations: 25.7 kB / 0.523 GB, free: 324 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.126e-05/0.4034, allocations: 80.27 kB / 0.5231 GB, free: 240 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.216e-05/0.4034, allocations: 5.125 kB / 0.5231 GB, free: 236 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.856e-05/0.4035, allocations: 16.7 kB / 0.5231 GB, free: 216 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.4036, allocations: 311.4 kB / 0.5234 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.479e-05/0.4036, allocations: 5.734 kB / 0.5234 GB, free: 15.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.947e-06/0.4036, allocations: 1.156 kB / 0.5234 GB, free: 15.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.584e-05/0.4037, allocations: 61.17 kB / 0.5235 GB, free: 15.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.4037, allocations: 0.6562 kB / 0.5235 GB, free: 15.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000113/0.4038, allocations: 67.67 kB / 0.5235 GB, free: 15.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.212e-05/0.4039, allocations: 35.95 kB / 0.5236 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.4039, allocations: 0 / 0.5236 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.404, allocations: 0.5156 kB / 0.5236 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.404, allocations: 1.531 kB / 0.5236 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.404, allocations: 0.6094 kB / 0.5236 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.021e-05/0.404, allocations: 0 / 0.5236 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.404, allocations: 1.5 kB / 0.5236 GB, free: 15.72 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.0001182/0.4042, allocations: 139.5 kB / 0.5237 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.968e-05/0.4042, allocations: 12.44 kB / 0.5237 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.364e-05/0.4042, allocations: 3.734 kB / 0.5237 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.4042, allocations: 1.5 kB / 0.5237 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.4042, allocations: 0 / 0.5237 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.4042, allocations: 0.5625 kB / 0.5237 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.4044, allocations: 145.1 kB / 0.5239 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.4044, allocations: 5.438 kB / 0.5239 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.954e-06/0.4044, allocations: 0.7031 kB / 0.5239 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.4044, allocations: 3.938 kB / 0.5239 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.4045, allocations: 5.344 kB / 0.5239 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.4045, allocations: 4.516 kB / 0.5239 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.4045, allocations: 0 / 0.5239 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001373/0.4046, allocations: 93.81 kB / 0.524 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.595e-05/0.4047, allocations: 81.75 kB / 0.524 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.4047, allocations: 1.438 kB / 0.524 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.735e-05/0.4047, allocations: 0.6562 kB / 0.524 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.211e-05/0.4048, allocations: 1.469 kB / 0.524 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-06/0.4048, allocations: 6.25 kB / 0.5241 GB, free: 15.15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.175e-05/0.4048, allocations: 79.22 kB / 0.5241 GB, free: 15.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4048, allocations: 0 / 0.5241 GB, free: 15.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001079/0.4059, allocations: 122.9 kB / 0.5242 GB, free: 15.06 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.002439/0.4084, allocations: 0.7072 MB / 0.5249 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000145/0.4085, allocations: 58.23 kB / 0.525 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4086, allocations: 0 / 0.525 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.839e-05/0.4087, allocations: 63.11 kB / 0.5251 GB, free: 14.26 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002192/0.4089, allocations: 8.453 kB / 0.5251 GB, free: 14.26 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008427/0.4097, allocations: 118.8 kB / 0.5252 GB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.4101, allocations: 0.6754 MB / 0.5258 GB, free: 13.42 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.056e-05/0.4101, allocations: 0 / 0.5258 GB, free: 13.42 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.656e-05/0.4102, allocations: 8.188 kB / 0.5258 GB, free: 13.41 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4102, allocations: 3.938 kB / 0.5258 GB, free: 13.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03101/0.4412, allocations: 4.716 MB / 0.5305 GB, free: 11.21 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.515/7.956, allocations: 9.219 kB / 0.5305 GB, free: 11.21 MB / 398.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)