Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.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.TestMatrices2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2",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.001351/0.001351, allocations: 109.8 kB / 17.78 MB, free: 5.266 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.001254/0.001254, allocations: 183.9 kB / 18.71 MB, free: 4.34 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.4/1.4, 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.217/0.217, allocations: 44.19 MB / 336.8 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 71.84 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3673, allocations: 60.82 MB / 0.5184 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001811/0.3691, allocations: 0.4922 MB / 0.5189 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007077/0.3762, allocations: 4.819 MB / 0.5236 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.303e-05/0.3763, allocations: 0 / 0.5236 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.459e-05/0.3763, allocations: 0 / 0.5236 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.041e-05/0.3764, allocations: 5.406 kB / 0.5236 GB, free: 15.81 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.008414/0.3848, allocations: 2.939 MB / 0.5265 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.238e-05/0.3849, allocations: 5.375 kB / 0.5265 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.933e-05/0.3849, allocations: 1.375 kB / 0.5265 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.794e-05/0.3849, allocations: 5.359 kB / 0.5265 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.567e-05/0.385, allocations: 4 kB / 0.5265 GB, free: 14.62 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.142e-06/0.385, allocations: 0 / 0.5265 GB, free: 14.62 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03146/0.4164, allocations: 18.81 MB / 0.5449 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.308e-05/0.4165, allocations: 0 / 0.5449 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.288e-05/0.4165, allocations: 0 / 0.5449 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04596/0.4625, allocations: 27.48 MB / 0.5717 GB, free: 5.59 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.117e-05/0.4626, allocations: 4 kB / 0.5717 GB, free: 5.586 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.4626, allocations: 0 / 0.5717 GB, free: 5.586 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.4626, allocations: 0 / 0.5717 GB, free: 5.586 MB / 430.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.0086/0.4712, allocations: 0.6775 MB / 0.5724 GB, free: 4.852 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.4713, allocations: 8.031 kB / 0.5724 GB, free: 4.844 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.212e-05/0.4713, allocations: 30.75 kB / 0.5724 GB, free: 4.805 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.06e-05/0.4713, allocations: 0.9375 kB / 0.5724 GB, free: 4.805 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.4715, allocations: 170.9 kB / 0.5726 GB, free: 4.598 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.4715, allocations: 4 kB / 0.5726 GB, free: 4.594 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.4715, allocations: 0 / 0.5726 GB, free: 4.594 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000108/0.4716, allocations: 29.64 kB / 0.5726 GB, free: 4.559 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.4716, allocations: 4 kB / 0.5726 GB, free: 4.555 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.4716, allocations: 4 kB / 0.5726 GB, free: 4.551 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.4717, allocations: 0 / 0.5726 GB, free: 4.551 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.802e-05/0.4717, allocations: 0 / 0.5726 GB, free: 4.551 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000154/0.4718, allocations: 149.6 kB / 0.5727 GB, free: 4.355 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.217e-05/0.4719, allocations: 22.59 kB / 0.5728 GB, free: 4.324 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.566e-05/0.4719, allocations: 4.859 kB / 0.5728 GB, free: 4.316 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.4719, allocations: 0 / 0.5728 GB, free: 4.316 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.721e-05/0.472, allocations: 72.2 kB / 0.5728 GB, free: 4.23 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.143e-06/0.472, allocations: 0 / 0.5728 GB, free: 4.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001886/0.4722, allocations: 67.39 kB / 0.5729 GB, free: 4.152 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.34e-05/0.4723, allocations: 81.05 kB / 0.573 GB, free: 4.055 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.098e-05/0.4723, allocations: 89.86 kB / 0.5731 GB, free: 3.957 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.4723, allocations: 25.7 kB / 0.5731 GB, free: 3.926 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.279e-05/0.4724, allocations: 80.14 kB / 0.5732 GB, free: 3.844 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.163e-05/0.4724, allocations: 3.953 kB / 0.5732 GB, free: 3.84 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.131e-05/0.4724, allocations: 13.84 kB / 0.5732 GB, free: 3.82 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.4726, allocations: 322.8 kB / 0.5735 GB, free: 3.496 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.588e-06/0.4726, allocations: 0 / 0.5735 GB, free: 3.496 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.176e-06/0.4726, allocations: 3.938 kB / 0.5735 GB, free: 3.492 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.026e-05/0.4727, allocations: 64.25 kB / 0.5736 GB, free: 3.414 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.4727, allocations: 0 / 0.5736 GB, free: 3.414 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.053e-05/0.4728, allocations: 59.41 kB / 0.5736 GB, free: 3.344 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.156e-05/0.4728, allocations: 33.7 kB / 0.5736 GB, free: 3.305 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.4729, allocations: 8.094 kB / 0.5736 GB, free: 3.297 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.4729, allocations: 0 / 0.5736 GB, free: 3.297 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.4729, allocations: 0 / 0.5736 GB, free: 3.297 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.4729, allocations: 0 / 0.5736 GB, free: 3.297 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.068e-05/0.4729, allocations: 3.938 kB / 0.5737 GB, free: 3.293 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.994e-06/0.4729, allocations: 0 / 0.5737 GB, free: 3.293 MB / 430.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.0001026/0.473, allocations: 139.5 kB / 0.5738 GB, free: 3.141 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.304e-06/0.473, allocations: 0 / 0.5738 GB, free: 3.141 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.198e-05/0.4731, allocations: 3.125 kB / 0.5738 GB, free: 3.137 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.4731, allocations: 4 kB / 0.5738 GB, free: 3.133 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.4731, allocations: 3.938 kB / 0.5738 GB, free: 3.129 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.4731, allocations: 7.938 kB / 0.5738 GB, free: 3.121 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.4732, allocations: 149.7 kB / 0.5739 GB, free: 2.926 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.4732, allocations: 0 / 0.5739 GB, free: 2.926 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.4732, allocations: 0 / 0.5739 GB, free: 2.926 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-06/0.4732, allocations: 0 / 0.5739 GB, free: 2.926 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.4733, allocations: 0 / 0.5739 GB, free: 2.926 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.4733, allocations: 4 kB / 0.574 GB, free: 2.922 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4733, allocations: 3.984 kB / 0.574 GB, free: 2.918 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001136/0.4734, allocations: 94.77 kB / 0.574 GB, free: 2.801 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.466e-05/0.4734, allocations: 85.05 kB / 0.5741 GB, free: 2.699 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.4735, allocations: 0 / 0.5741 GB, free: 2.699 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.246e-06/0.4735, allocations: 0 / 0.5741 GB, free: 2.699 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.986e-05/0.4735, allocations: 4 kB / 0.5741 GB, free: 2.695 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.4735, allocations: 3.938 kB / 0.5741 GB, free: 2.691 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.053e-05/0.4735, allocations: 75.28 kB / 0.5742 GB, free: 2.617 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4735, allocations: 4 kB / 0.5742 GB, free: 2.613 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01128/0.4848, allocations: 3.784 MB / 0.5779 GB, free: 14.83 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.02129/0.5062, allocations: 1.505 MB / 0.5794 GB, free: 13.31 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001728/0.5064, allocations: 71.33 kB / 0.5794 GB, free: 13.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.5064, allocations: 3.938 kB / 0.5794 GB, free: 13.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.118e-05/0.5064, allocations: 55.41 kB / 0.5795 GB, free: 13.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001544/0.5066, allocations: 7.938 kB / 0.5795 GB, free: 13.15 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008457/0.5151, allocations: 336.9 kB / 0.5798 GB, free: 12.78 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.5154, allocations: 0.6805 MB / 0.5805 GB, free: 12.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.967e-06/0.5155, allocations: 0 / 0.5805 GB, free: 12.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.244e-05/0.5155, allocations: 7.438 kB / 0.5805 GB, free: 12.06 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5155, allocations: 4 kB / 0.5805 GB, free: 12.06 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1982/0.7137, allocations: 113.8 MB / 0.6916 GB, free: 10.11 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.27/15.98, allocations: 8.719 kB / 0.6917 GB, free: 10.1 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_0_0_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe 2>&1)