Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.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.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",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.001215/0.001215, allocations: 113.2 kB / 17.78 MB, free: 5.129 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.00122/0.00122, allocations: 181 kB / 18.71 MB, free: 4.207 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.404/1.404, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2103/0.2103, allocations: 44.18 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001997/0.001997, allocations: 71.88 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3498, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001493/0.3514, allocations: 490.4 kB / 0.5189 GB, free: 3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.3532, allocations: 1.559 MB / 0.5204 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.004e-05/0.3533, allocations: 0 / 0.5204 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.345e-05/0.3533, allocations: 1.688 kB / 0.5204 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.671e-06/0.3533, allocations: 0 / 0.5204 GB, free: 1.875 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:171:3-212:15:writable] Warning: Pure function 'ModelicaTest.Math.Matrices' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008744/0.3542, allocations: 271.5 kB / 0.5207 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.521e-05/0.3543, allocations: 0.9688 kB / 0.5207 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.36e-05/0.3543, allocations: 2.766 kB / 0.5207 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.604e-05/0.3543, allocations: 7.922 kB / 0.5207 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.108e-05/0.3543, allocations: 1.25 kB / 0.5207 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.881e-06/0.3544, allocations: 0 / 0.5207 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007748/0.3551, allocations: 0.4908 MB / 0.5212 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.645e-06/0.3552, allocations: 0 / 0.5212 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.785e-05/0.3552, allocations: 1.031 kB / 0.5212 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004705/0.3557, allocations: 300.3 kB / 0.5214 GB, free: 1.613 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3557, allocations: 0 / 0.5214 GB, free: 1.613 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3557, allocations: 1 kB / 0.5214 GB, free: 1.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.3557, allocations: 0 / 0.5214 GB, free: 1.613 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.0003055/0.356, allocations: 381.8 kB / 0.5218 GB, free: 1.203 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.356, allocations: 9.719 kB / 0.5218 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.162e-05/0.3561, allocations: 31.5 kB / 0.5218 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.436e-05/0.3561, allocations: 6.094 kB / 0.5219 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.513e-05/0.3562, allocations: 165.5 kB / 0.522 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.646e-06/0.3562, allocations: 5.453 kB / 0.522 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.3562, allocations: 1.344 kB / 0.522 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.706e-05/0.3563, allocations: 33.19 kB / 0.522 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.3563, allocations: 0 / 0.522 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-06/0.3563, allocations: 5.094 kB / 0.5221 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.3563, allocations: 0.6562 kB / 0.5221 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.711e-05/0.3563, allocations: 1.156 kB / 0.5221 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.434e-05/0.3564, allocations: 148.8 kB / 0.5222 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.805e-05/0.3565, allocations: 21.39 kB / 0.5222 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.325e-05/0.3565, allocations: 6.844 kB / 0.5222 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.637e-06/0.3565, allocations: 0 / 0.5222 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.3566, allocations: 65.95 kB / 0.5223 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3566, allocations: 0 / 0.5223 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001571/0.3567, allocations: 65.56 kB / 0.5223 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.983e-05/0.3568, allocations: 78.77 kB / 0.5224 GB, free: 464 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.857e-05/0.3568, allocations: 89.86 kB / 0.5225 GB, free: 364 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.306e-06/0.3568, allocations: 27.38 kB / 0.5225 GB, free: 332 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.128e-05/0.3568, allocations: 84.08 kB / 0.5226 GB, free: 244 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.023e-05/0.3568, allocations: 1.031 kB / 0.5226 GB, free: 244 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.36e-05/0.3569, allocations: 16.53 kB / 0.5226 GB, free: 224 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.357, allocations: 311.6 kB / 0.5229 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.153e-05/0.357, allocations: 9.344 kB / 0.5229 GB, free: 15.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.074e-06/0.357, allocations: 1.641 kB / 0.5229 GB, free: 15.9 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.448e-05/0.3571, allocations: 60.11 kB / 0.523 GB, free: 15.83 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3571, allocations: 0 / 0.523 GB, free: 15.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.957e-05/0.3572, allocations: 64.33 kB / 0.5231 GB, free: 15.76 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.402e-05/0.3572, allocations: 38.77 kB / 0.5231 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3572, allocations: 9.703 kB / 0.5231 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.3573, allocations: 0 / 0.5231 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.827e-06/0.3573, allocations: 0 / 0.5231 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3573, allocations: 9.719 kB / 0.5231 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.676e-05/0.3573, allocations: 1.125 kB / 0.5231 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.3573, allocations: 0 / 0.5231 GB, free: 15.71 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.000102/0.3574, allocations: 136.1 kB / 0.5232 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.198e-05/0.3575, allocations: 7.891 kB / 0.5233 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.176e-05/0.3575, allocations: 4.859 kB / 0.5233 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.3575, allocations: 0.6562 kB / 0.5233 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.758e-06/0.3575, allocations: 0 / 0.5233 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.3575, allocations: 1.156 kB / 0.5233 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.3576, allocations: 148.8 kB / 0.5234 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3576, allocations: 0.6094 kB / 0.5234 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.3576, allocations: 1.031 kB / 0.5234 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.3576, allocations: 3.938 kB / 0.5234 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.3576, allocations: 1.5 kB / 0.5234 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3576, allocations: 1.344 kB / 0.5234 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3577, allocations: 0.5625 kB / 0.5234 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001067/0.3578, allocations: 96.55 kB / 0.5235 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.891e-05/0.3578, allocations: 82.92 kB / 0.5236 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.3578, allocations: 0.7031 kB / 0.5236 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.465e-06/0.3579, allocations: 4.969 kB / 0.5236 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.181e-05/0.3579, allocations: 1.156 kB / 0.5236 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.319e-06/0.3579, allocations: 1.766 kB / 0.5236 GB, free: 15.15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.269e-05/0.3579, allocations: 75.28 kB / 0.5237 GB, free: 15.08 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3579, allocations: 0 / 0.5237 GB, free: 15.08 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003672/0.3583, allocations: 62.67 kB / 0.5237 GB, free: 15.07 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.0009137/0.3592, allocations: 0.7377 MB / 0.5244 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001646/0.3594, allocations: 62.59 kB / 0.5245 GB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.3594, allocations: 3.938 kB / 0.5245 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.558e-05/0.3595, allocations: 55.94 kB / 0.5246 GB, free: 14.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001443/0.3596, allocations: 2.406 kB / 0.5246 GB, free: 14.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004286/0.3601, allocations: 134.7 kB / 0.5247 GB, free: 14.1 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.3605, allocations: 0.6758 MB / 0.5253 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.694e-06/0.3605, allocations: 0 / 0.5253 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.142e-05/0.3605, allocations: 9.078 kB / 0.5254 GB, free: 13.39 MB / 398.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3605, allocations: 0 / 0.5254 GB, free: 13.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0264/0.3869, allocations: 2.091 MB / 0.5274 GB, free: 12.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.798/8.185, allocations: 6.312 kB / 0.5274 GB, free: 12.73 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices_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_TestMatrices.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1)