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.001694/0.001694, allocations: 117.2 kB / 17.78 MB, free: 5.258 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.001882/0.001882, allocations: 185 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.408/1.408, 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.2304/0.2304, allocations: 44.18 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 67.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3367, allocations: 60.81 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.001445/0.3382, allocations: 0.4904 MB / 0.5189 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.3398, allocations: 1.521 MB / 0.5204 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.888e-05/0.3399, allocations: 1.031 kB / 0.5204 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.628e-05/0.3399, allocations: 0 / 0.5204 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.621e-06/0.3399, allocations: 0 / 0.5204 GB, free: 1.887 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.000775/0.3407, allocations: 218.5 kB / 0.5206 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.364e-05/0.3407, allocations: 2.281 kB / 0.5206 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.044e-05/0.3408, allocations: 5.906 kB / 0.5206 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.481e-05/0.3408, allocations: 7.984 kB / 0.5206 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.644e-05/0.3408, allocations: 1.953 kB / 0.5206 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.039e-06/0.3408, allocations: 3.938 kB / 0.5206 GB, free: 1.809 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001018/0.3419, allocations: 0.6993 MB / 0.5213 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.124e-06/0.3419, allocations: 1.156 kB / 0.5213 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.704e-05/0.3419, allocations: 3.984 kB / 0.5213 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007773/0.3427, allocations: 0.6383 MB / 0.5219 GB, free: 1.598 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3427, allocations: 0 / 0.5219 GB, free: 1.598 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3427, allocations: 2.016 kB / 0.5219 GB, free: 1.598 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.3427, allocations: 4 kB / 0.5219 GB, free: 1.594 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.0003586/0.3431, allocations: 367.7 kB / 0.5223 GB, free: 1.195 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.3431, allocations: 10.16 kB / 0.5223 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.859e-05/0.3432, allocations: 31.36 kB / 0.5223 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.066e-05/0.3432, allocations: 2.438 kB / 0.5223 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.911e-05/0.3432, allocations: 161.8 kB / 0.5225 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.3432, allocations: 384 / 0.5225 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.42e-06/0.3433, allocations: 1.875 kB / 0.5225 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.69e-05/0.3433, allocations: 36.81 kB / 0.5225 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.3433, allocations: 8.719 kB / 0.5225 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.861e-06/0.3434, allocations: 0 / 0.5225 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.296e-06/0.3434, allocations: 1.344 kB / 0.5225 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.532e-05/0.3434, allocations: 1.891 kB / 0.5225 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.001e-05/0.3435, allocations: 148.4 kB / 0.5227 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.946e-05/0.3435, allocations: 16.77 kB / 0.5227 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.102e-05/0.3435, allocations: 7.047 kB / 0.5227 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.326e-06/0.3435, allocations: 4 kB / 0.5227 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.3436, allocations: 62.36 kB / 0.5227 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3436, allocations: 0 / 0.5227 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001371/0.3437, allocations: 68.34 kB / 0.5228 GB, free: 0.543 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.641e-05/0.3438, allocations: 78.98 kB / 0.5229 GB, free: 460 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.523e-05/0.3438, allocations: 90.47 kB / 0.523 GB, free: 360 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.971e-06/0.3438, allocations: 30.8 kB / 0.523 GB, free: 324 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.454e-06/0.3438, allocations: 80.14 kB / 0.5231 GB, free: 240 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.289e-05/0.3438, allocations: 5.281 kB / 0.5231 GB, free: 236 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.097e-05/0.3438, allocations: 11.58 kB / 0.5231 GB, free: 220 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.114e-05/0.3439, allocations: 316.6 kB / 0.5234 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.397e-06/0.344, allocations: 2.172 kB / 0.5234 GB, free: 15.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.38e-06/0.344, allocations: 1.094 kB / 0.5234 GB, free: 15.9 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.345e-05/0.344, allocations: 64.47 kB / 0.5235 GB, free: 15.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.344, allocations: 0 / 0.5235 GB, free: 15.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.398e-05/0.3441, allocations: 64.03 kB / 0.5235 GB, free: 15.76 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.188e-05/0.3441, allocations: 36.73 kB / 0.5236 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3442, allocations: 4 kB / 0.5236 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.3442, allocations: 0.7031 kB / 0.5236 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.01e-07/0.3442, allocations: 0 / 0.5236 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.3442, allocations: 1.688 kB / 0.5236 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.388e-05/0.3442, allocations: 0 / 0.5236 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.3442, allocations: 2.422 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 9.61e-05/0.3443, allocations: 138.8 kB / 0.5237 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.141e-05/0.3443, allocations: 11.92 kB / 0.5237 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.738e-06/0.3444, allocations: 4.109 kB / 0.5237 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.3444, allocations: 1.25 kB / 0.5237 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.3444, allocations: 0 / 0.5237 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.3444, allocations: 1.375 kB / 0.5237 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001084/0.3445, allocations: 149.9 kB / 0.5239 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.3445, allocations: 0 / 0.5239 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.3445, allocations: 0 / 0.5239 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.3445, allocations: 3.938 kB / 0.5239 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.3445, allocations: 6.531 kB / 0.5239 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.736e-06/0.3445, allocations: 7.922 kB / 0.5239 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3445, allocations: 5.031 kB / 0.5239 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.344e-05/0.3446, allocations: 87.73 kB / 0.524 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.126e-05/0.3447, allocations: 82.36 kB / 0.524 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.186e-05/0.3447, allocations: 2.094 kB / 0.524 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.744e-06/0.3447, allocations: 0 / 0.524 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.29e-05/0.3447, allocations: 1.547 kB / 0.524 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.3447, allocations: 1.125 kB / 0.524 GB, free: 15.15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.2e-05/0.3448, allocations: 79.31 kB / 0.5241 GB, free: 15.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3448, allocations: 0 / 0.5241 GB, free: 15.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004553/0.3452, allocations: 123.4 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.00104/0.3463, allocations: 0.7154 MB / 0.5249 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.943e-05/0.3464, allocations: 58.05 kB / 0.525 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3464, allocations: 0 / 0.525 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.055e-05/0.3465, allocations: 60.66 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.0001233/0.3466, allocations: 2.266 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.0003837/0.347, allocations: 124.9 kB / 0.5252 GB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/0.3473, allocations: 0.6745 MB / 0.5258 GB, free: 13.42 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.853e-06/0.3473, allocations: 1.219 kB / 0.5258 GB, free: 13.42 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.367e-05/0.3473, allocations: 12.08 kB / 0.5258 GB, free: 13.41 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3473, allocations: 0 / 0.5258 GB, free: 13.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02876/0.3761, allocations: 4.72 MB / 0.5305 GB, free: 11.21 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.786/8.162, allocations: 5.875 kB / 0.5305 GB, free: 11.2 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)