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.001326/0.001326, allocations: 118 kB / 17.78 MB, free: 5.125 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.001311/0.001311, allocations: 183 kB / 18.72 MB, free: 4.203 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.452/1.452, 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.2106/0.2106, allocations: 44.18 MB / 336.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 67.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3382, allocations: 60.83 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.00148/0.3397, allocations: 496.9 kB / 0.5189 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001755/0.3415, allocations: 1.564 MB / 0.5204 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.824e-05/0.3415, allocations: 4 kB / 0.5204 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.867e-05/0.3415, allocations: 1.375 kB / 0.5204 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.392e-06/0.3415, allocations: 0 / 0.5204 GB, free: 1.852 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.0009018/0.3424, allocations: 272 kB / 0.5207 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.95e-05/0.3425, allocations: 2.688 kB / 0.5207 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.429e-05/0.3425, allocations: 0.7031 kB / 0.5207 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.518e-05/0.3425, allocations: 1.031 kB / 0.5207 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.197e-05/0.3425, allocations: 6.25 kB / 0.5207 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.402e-06/0.3426, allocations: 0 / 0.5207 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007596/0.3433, allocations: 497.1 kB / 0.5212 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.955e-06/0.3433, allocations: 0 / 0.5212 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.943e-05/0.3433, allocations: 2.25 kB / 0.5212 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004544/0.3438, allocations: 304.6 kB / 0.5215 GB, free: 1.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.3438, allocations: 0 / 0.5215 GB, free: 1.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3438, allocations: 0 / 0.5215 GB, free: 1.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.3438, allocations: 4 kB / 0.5215 GB, free: 1.59 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.0002831/0.3441, allocations: 377.7 kB / 0.5218 GB, free: 1.184 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.3441, allocations: 9.812 kB / 0.5218 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.194e-05/0.3441, allocations: 31.69 kB / 0.5219 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.093e-05/0.3442, allocations: 0.9375 kB / 0.5219 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.638e-05/0.3442, allocations: 166.8 kB / 0.522 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.3442, allocations: 384 / 0.522 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.874e-06/0.3442, allocations: 2.344 kB / 0.522 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.129e-05/0.3443, allocations: 44.69 kB / 0.5221 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.3443, allocations: 0 / 0.5221 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.744e-06/0.3443, allocations: 1.5 kB / 0.5221 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.3443, allocations: 0 / 0.5221 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.624e-05/0.3444, allocations: 1.188 kB / 0.5221 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.594e-05/0.3444, allocations: 145.8 kB / 0.5222 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.319e-05/0.3445, allocations: 16.98 kB / 0.5222 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.162e-05/0.3445, allocations: 6.047 kB / 0.5222 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.3445, allocations: 4 kB / 0.5222 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.3445, allocations: 70.53 kB / 0.5223 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3445, allocations: 0 / 0.5223 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001389/0.3447, allocations: 65.75 kB / 0.5224 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.3447, allocations: 77.86 kB / 0.5224 GB, free: 444 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.849e-05/0.3447, allocations: 91.52 kB / 0.5225 GB, free: 344 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.891e-06/0.3447, allocations: 29.64 kB / 0.5226 GB, free: 308 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.797e-06/0.3447, allocations: 80.89 kB / 0.5226 GB, free: 224 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.42e-05/0.3447, allocations: 5.344 kB / 0.5226 GB, free: 220 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.186e-05/0.3448, allocations: 16.69 kB / 0.5227 GB, free: 200 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.478e-05/0.3449, allocations: 310.8 kB / 0.523 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.119e-05/0.3449, allocations: 1.938 kB / 0.523 GB, free: 15.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.45e-06/0.3449, allocations: 0.8438 kB / 0.523 GB, free: 15.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.337e-05/0.3449, allocations: 64.08 kB / 0.523 GB, free: 15.81 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3449, allocations: 0.7969 kB / 0.523 GB, free: 15.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.61e-05/0.345, allocations: 67.91 kB / 0.5231 GB, free: 15.74 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.345, allocations: 36.59 kB / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.345, allocations: 4.547 kB / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.3451, allocations: 1.031 kB / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.3451, allocations: 0 / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.3451, allocations: 4.938 kB / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.427e-05/0.3451, allocations: 1.219 kB / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.652e-06/0.3451, allocations: 1.281 kB / 0.5231 GB, free: 15.7 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.742e-05/0.3452, allocations: 134.4 kB / 0.5233 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.606e-05/0.3452, allocations: 12.77 kB / 0.5233 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.096e-05/0.3452, allocations: 4.031 kB / 0.5233 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.3452, allocations: 0.7031 kB / 0.5233 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.3452, allocations: 0.9688 kB / 0.5233 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.3452, allocations: 0 / 0.5233 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.3453, allocations: 146.2 kB / 0.5234 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.3453, allocations: 3.938 kB / 0.5234 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.032e-06/0.3453, allocations: 0.9062 kB / 0.5234 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.3453, allocations: 3.938 kB / 0.5234 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-06/0.3453, allocations: 5.938 kB / 0.5234 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.3453, allocations: 4 kB / 0.5234 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3453, allocations: 1.938 kB / 0.5234 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001029/0.3454, allocations: 87.41 kB / 0.5235 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.143e-05/0.3455, allocations: 82.95 kB / 0.5236 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.3455, allocations: 1.984 kB / 0.5236 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.717e-06/0.3455, allocations: 1.062 kB / 0.5236 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.315e-05/0.3455, allocations: 0 / 0.5236 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.3455, allocations: 1.984 kB / 0.5236 GB, free: 15.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.261e-05/0.3455, allocations: 79.28 kB / 0.5237 GB, free: 15.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3455, allocations: 0 / 0.5237 GB, free: 15.06 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003188/0.3459, allocations: 63.27 kB / 0.5237 GB, free: 15.05 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.0007536/0.3466, allocations: 0.719 MB / 0.5244 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.479e-05/0.3467, allocations: 61.34 kB / 0.5245 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3467, allocations: 5.25 kB / 0.5245 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.749e-05/0.3467, allocations: 55.59 kB / 0.5246 GB, free: 14.24 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001209/0.3469, allocations: 1.344 kB / 0.5246 GB, free: 14.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003157/0.3472, allocations: 135.8 kB / 0.5247 GB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/0.3475, allocations: 0.6754 MB / 0.5253 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.292e-06/0.3475, allocations: 1.406 kB / 0.5253 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.3e-05/0.3475, allocations: 7.438 kB / 0.5254 GB, free: 13.38 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3475, allocations: 0 / 0.5254 GB, free: 13.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02489/0.3724, allocations: 2.099 MB / 0.5274 GB, free: 12.69 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.654/8.026, allocations: 5.312 kB / 0.5274 GB, free: 12.68 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)