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.001542/0.001547, allocations: 116.8 kB / 17.78 MB, free: 5.254 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.001601/0.001601, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.421/1.421, 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.2178/0.2178, allocations: 44.19 MB / 336.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 67.83 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3576/0.3596, allocations: 60.82 MB / 0.5184 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001402/0.361, allocations: 494.2 kB / 0.5189 GB, free: 2.969 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002323/0.3634, allocations: 2.094 MB / 0.5209 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.328e-05/0.3634, allocations: 0 / 0.5209 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.175e-05/0.3634, allocations: 4 kB / 0.5209 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.821e-06/0.3634, allocations: 1.031 kB / 0.5209 GB, free: 1.504 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.001752/0.3652, allocations: 0.7192 MB / 0.5216 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.9e-05/0.3652, allocations: 5 kB / 0.5216 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.354e-05/0.3653, allocations: 6.547 kB / 0.5216 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.343e-05/0.3653, allocations: 1.062 kB / 0.5216 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.73e-05/0.3653, allocations: 13.23 kB / 0.5217 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.32e-06/0.3653, allocations: 0 / 0.5217 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002056/0.3674, allocations: 1.495 MB / 0.5231 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.066e-06/0.3674, allocations: 3.984 kB / 0.5231 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.748e-05/0.3674, allocations: 1.125 kB / 0.5231 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001514/0.369, allocations: 1.547 MB / 0.5246 GB, free: 368 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.369, allocations: 0 / 0.5246 GB, free: 368 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.369, allocations: 3.938 kB / 0.5246 GB, free: 364 kB / 382.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.369, allocations: 0 / 0.5246 GB, free: 364 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.0005235/0.3695, allocations: 421.3 kB / 0.525 GB, free: 15.92 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.3696, allocations: 13.62 kB / 0.5251 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.493e-05/0.3696, allocations: 30.75 kB / 0.5251 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.24e-05/0.3696, allocations: 2.312 kB / 0.5251 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.3697, allocations: 164.4 kB / 0.5252 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.3697, allocations: 384 / 0.5252 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.32e-05/0.3698, allocations: 5.312 kB / 0.5253 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.19e-05/0.3699, allocations: 32.39 kB / 0.5253 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.3699, allocations: 0 / 0.5253 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.961e-06/0.3699, allocations: 0 / 0.5253 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.3699, allocations: 5.375 kB / 0.5253 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.529e-05/0.3699, allocations: 1.375 kB / 0.5253 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001347/0.37, allocations: 151 kB / 0.5254 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.824e-05/0.3701, allocations: 19.89 kB / 0.5255 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.368e-05/0.3701, allocations: 6.234 kB / 0.5255 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-06/0.3701, allocations: 3.938 kB / 0.5255 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.777e-05/0.3702, allocations: 57.64 kB / 0.5255 GB, free: 15.33 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.163e-06/0.3702, allocations: 4 kB / 0.5255 GB, free: 15.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001536/0.3704, allocations: 67.64 kB / 0.5256 GB, free: 15.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/0.3704, allocations: 77.11 kB / 0.5257 GB, free: 15.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.336e-05/0.3705, allocations: 89.86 kB / 0.5257 GB, free: 15.06 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.3705, allocations: 27.08 kB / 0.5258 GB, free: 15.03 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.183e-05/0.3705, allocations: 84.12 kB / 0.5258 GB, free: 14.95 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.432e-05/0.3705, allocations: 1.375 kB / 0.5259 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.198e-05/0.3706, allocations: 11.09 kB / 0.5259 GB, free: 14.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.3707, allocations: 324.3 kB / 0.5262 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.576e-06/0.3707, allocations: 0 / 0.5262 GB, free: 14.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.985e-06/0.3707, allocations: 5.312 kB / 0.5262 GB, free: 14.6 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.186e-05/0.3708, allocations: 63 kB / 0.5262 GB, free: 14.53 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.3708, allocations: 5.375 kB / 0.5262 GB, free: 14.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.764e-05/0.3709, allocations: 60.84 kB / 0.5263 GB, free: 14.46 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.204e-05/0.3709, allocations: 32.58 kB / 0.5263 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.3709, allocations: 0 / 0.5263 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.371, allocations: 4.094 kB / 0.5263 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.371, allocations: 0 / 0.5263 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.371, allocations: 1.375 kB / 0.5263 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.74e-05/0.371, allocations: 7.938 kB / 0.5263 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.892e-06/0.371, allocations: 1.375 kB / 0.5263 GB, free: 14.41 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 8.737e-05/0.3711, allocations: 138.3 kB / 0.5265 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.192e-05/0.3711, allocations: 7.922 kB / 0.5265 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.07e-05/0.3711, allocations: 8.438 kB / 0.5265 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.3711, allocations: 3.938 kB / 0.5265 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.3711, allocations: 4 kB / 0.5265 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.3711, allocations: 0 / 0.5265 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.3713, allocations: 152.4 kB / 0.5266 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.3713, allocations: 0 / 0.5266 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.3713, allocations: 0 / 0.5266 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3713, allocations: 1.375 kB / 0.5266 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-06/0.3713, allocations: 0 / 0.5266 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3713, allocations: 0 / 0.5266 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3713, allocations: 1.375 kB / 0.5266 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.852e-05/0.3714, allocations: 96.39 kB / 0.5267 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.967e-05/0.3714, allocations: 82.42 kB / 0.5268 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.118e-05/0.3715, allocations: 1.375 kB / 0.5268 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.165e-06/0.3715, allocations: 0 / 0.5268 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.335e-05/0.3715, allocations: 1.375 kB / 0.5268 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.3715, allocations: 0 / 0.5268 GB, free: 13.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.817e-05/0.3715, allocations: 80.66 kB / 0.5269 GB, free: 13.76 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3715, allocations: 0 / 0.5269 GB, free: 13.76 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008856/0.3724, allocations: 280.4 kB / 0.5272 GB, free: 13.72 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.001615/0.3741, allocations: 0.9473 MB / 0.5281 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.791e-05/0.3742, allocations: 60.41 kB / 0.5281 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3742, allocations: 0 / 0.5281 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.179e-05/0.3742, allocations: 62.53 kB / 0.5282 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001136/0.3743, allocations: 2.469 kB / 0.5282 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004431/0.3748, allocations: 159.8 kB / 0.5284 GB, free: 12.62 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.3751, allocations: 0.6766 MB / 0.529 GB, free: 11.92 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.063e-06/0.3751, allocations: 5.703 kB / 0.529 GB, free: 11.92 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.434e-05/0.3751, allocations: 8.25 kB / 0.529 GB, free: 11.91 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3751, allocations: 0 / 0.529 GB, free: 11.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03364/0.4088, allocations: 8.207 MB / 0.537 GB, free: 7.559 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.939/8.348, allocations: 11.34 kB / 0.5371 GB, free: 7.551 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)