Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001212/0.001212, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001421, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2218/0.2218, allocations: 46.12 MB / 344.3 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002257/0.002257, allocations: 75.88 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3253, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001543/0.3269, allocations: 494.2 kB / 0.5311 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007848/0.3347, allocations: 4.887 MB / 0.5358 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.73e-05/0.3348, allocations: 0 / 0.5358 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.356e-05/0.3349, allocations: 0 / 0.5358 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.012e-06/0.3349, allocations: 0 / 0.5358 GB, free: 9.246 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:214:3-483:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.007755/0.3426, allocations: 2.925 MB / 0.5387 GB, free: 7.605 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.323e-05/0.3427, allocations: 2.344 kB / 0.5387 GB, free: 7.605 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.569e-05/0.3428, allocations: 0 / 0.5387 GB, free: 7.605 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.976e-05/0.3428, allocations: 5.094 kB / 0.5387 GB, free: 7.602 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.121e-05/0.3428, allocations: 5.016 kB / 0.5387 GB, free: 7.598 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.051e-06/0.3428, allocations: 0 / 0.5387 GB, free: 7.598 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02935/0.3722, allocations: 18.82 MB / 0.5571 GB, free: 6.57 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.285e-05/0.3722, allocations: 0 / 0.5571 GB, free: 6.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.343e-05/0.3723, allocations: 0 / 0.5571 GB, free: 6.57 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03854/0.4108, allocations: 27.48 MB / 0.5839 GB, free: 11.05 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.518e-06/0.4108, allocations: 4 kB / 0.5839 GB, free: 11.04 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4109, allocations: 0 / 0.5839 GB, free: 11.04 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.4109, allocations: 0 / 0.5839 GB, free: 11.04 MB / 446.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.007276/0.4182, allocations: 0.6697 MB / 0.5846 GB, free: 10.32 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.4182, allocations: 8.031 kB / 0.5846 GB, free: 10.31 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.584e-05/0.4183, allocations: 42.73 kB / 0.5846 GB, free: 10.26 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.4183, allocations: 4.922 kB / 0.5846 GB, free: 10.25 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.4184, allocations: 167 kB / 0.5848 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.4184, allocations: 0 / 0.5848 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-06/0.4185, allocations: 3.938 kB / 0.5848 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.566e-05/0.4186, allocations: 29.7 kB / 0.5848 GB, free: 10.01 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.4186, allocations: 0 / 0.5848 GB, free: 10.01 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.4186, allocations: 0 / 0.5848 GB, free: 10.01 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-06/0.4186, allocations: 3.938 kB / 0.5848 GB, free: 10.01 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.851e-05/0.4186, allocations: 0 / 0.5848 GB, free: 10.01 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001507/0.4188, allocations: 161.6 kB / 0.585 GB, free: 9.801 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.893e-05/0.4188, allocations: 14.58 kB / 0.585 GB, free: 9.777 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.378e-05/0.4189, allocations: 12.95 kB / 0.585 GB, free: 9.762 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.328e-06/0.4189, allocations: 0 / 0.585 GB, free: 9.762 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.585e-05/0.4189, allocations: 56.27 kB / 0.5851 GB, free: 9.691 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.4189, allocations: 0 / 0.5851 GB, free: 9.691 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001833/0.4191, allocations: 75.33 kB / 0.5851 GB, free: 9.605 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.4192, allocations: 77.11 kB / 0.5852 GB, free: 9.512 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.439e-05/0.4192, allocations: 89.86 kB / 0.5853 GB, free: 9.414 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.4192, allocations: 25.7 kB / 0.5853 GB, free: 9.383 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.148e-05/0.4193, allocations: 80.14 kB / 0.5854 GB, free: 9.301 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.249e-05/0.4193, allocations: 4 kB / 0.5854 GB, free: 9.297 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.074e-05/0.4193, allocations: 9.719 kB / 0.5854 GB, free: 9.281 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.4195, allocations: 318.8 kB / 0.5857 GB, free: 8.961 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.555e-05/0.4195, allocations: 12.11 kB / 0.5857 GB, free: 8.949 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.332e-06/0.4195, allocations: 0 / 0.5857 GB, free: 8.949 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.457e-05/0.4196, allocations: 64.2 kB / 0.5858 GB, free: 8.871 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4196, allocations: 0 / 0.5858 GB, free: 8.871 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.416e-05/0.4197, allocations: 55.41 kB / 0.5858 GB, free: 8.805 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.719e-05/0.4197, allocations: 41.69 kB / 0.5859 GB, free: 8.758 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.4197, allocations: 3.938 kB / 0.5859 GB, free: 8.754 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.4197, allocations: 0 / 0.5859 GB, free: 8.754 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.4198, allocations: 96 / 0.5859 GB, free: 8.754 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.4198, allocations: 4 kB / 0.5859 GB, free: 8.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.714e-05/0.4198, allocations: 3.938 kB / 0.5859 GB, free: 8.746 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.4198, allocations: 4 kB / 0.5859 GB, free: 8.742 MB / 446.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.715e-05/0.4199, allocations: 135.5 kB / 0.586 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.524e-06/0.4199, allocations: 0 / 0.586 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.744e-06/0.4199, allocations: 7.125 kB / 0.586 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.4199, allocations: 0 / 0.586 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.4199, allocations: 3.938 kB / 0.586 GB, free: 8.586 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.42, allocations: 11.92 kB / 0.586 GB, free: 8.574 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001019/0.4201, allocations: 141.7 kB / 0.5862 GB, free: 8.387 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.4201, allocations: 0 / 0.5862 GB, free: 8.387 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.4201, allocations: 0 / 0.5862 GB, free: 8.387 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.4201, allocations: 4 kB / 0.5862 GB, free: 8.383 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.513e-06/0.4201, allocations: 0 / 0.5862 GB, free: 8.383 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.4201, allocations: 0 / 0.5862 GB, free: 8.383 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4201, allocations: 3.938 kB / 0.5862 GB, free: 8.379 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001045/0.4202, allocations: 98.77 kB / 0.5863 GB, free: 8.258 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.106e-05/0.4203, allocations: 77.11 kB / 0.5864 GB, free: 8.164 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.115e-05/0.4203, allocations: 0 / 0.5864 GB, free: 8.164 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.864e-06/0.4203, allocations: 0 / 0.5864 GB, free: 8.164 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.901e-05/0.4203, allocations: 11.98 kB / 0.5864 GB, free: 8.152 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.4203, allocations: 3.938 kB / 0.5864 GB, free: 8.148 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.577e-05/0.4204, allocations: 75.28 kB / 0.5864 GB, free: 8.074 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4204, allocations: 0 / 0.5864 GB, free: 8.074 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01052/0.4309, allocations: 3.784 MB / 0.5901 GB, free: 4.289 MB / 446.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.01957/0.4505, allocations: 1.51 MB / 0.5916 GB, free: 2.754 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001443/0.4507, allocations: 63.41 kB / 0.5917 GB, free: 2.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.4507, allocations: 0 / 0.5917 GB, free: 2.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.796e-05/0.4507, allocations: 63.41 kB / 0.5917 GB, free: 2.605 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001394/0.4509, allocations: 10.22 kB / 0.5917 GB, free: 2.598 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006468/0.4574, allocations: 348.8 kB / 0.5921 GB, free: 2.215 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.4577, allocations: 0.669 MB / 0.5927 GB, free: 1.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.526e-06/0.4577, allocations: 0 / 0.5927 GB, free: 1.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.886e-05/0.4578, allocations: 11.44 kB / 0.5927 GB, free: 1.508 MB / 446.1 MB Notification: Performance of SimCode: time 6.02e-07/0.4578, allocations: 0 / 0.5927 GB, free: 1.508 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1871/0.6449, allocations: 113.8 MB / 0.7039 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.54/16.18, allocations: 3.938 kB / 0.7039 GB, free: 15.54 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe 2>&1)