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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 212 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.427/1.427, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.223/0.223, allocations: 44.91 MB / 358.8 MB, free: 6.305 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002073/0.002073, allocations: 67.89 kB / 0.4931 GB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.3402, allocations: 65.47 MB / 0.557 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001607/0.3418, allocations: 494.9 kB / 0.5575 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00781/0.3496, allocations: 4.962 MB / 0.5623 GB, free: 2.324 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.81e-05/0.3496, allocations: 0 / 0.5623 GB, free: 2.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.108e-05/0.3497, allocations: 0 / 0.5623 GB, free: 2.324 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.742e-06/0.3497, allocations: 0 / 0.5623 GB, free: 2.324 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.008785/0.3585, allocations: 3.259 MB / 0.5655 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.611e-05/0.3585, allocations: 3.984 kB / 0.5655 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.461e-05/0.3586, allocations: 4 kB / 0.5655 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.708e-05/0.3586, allocations: 0 / 0.5655 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.781e-05/0.3586, allocations: 7.984 kB / 0.5655 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.47e-06/0.3586, allocations: 0 / 0.5655 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03312/0.3917, allocations: 21.05 MB / 0.5861 GB, free: 9.973 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.495e-05/0.3917, allocations: 0 / 0.5861 GB, free: 9.973 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.991e-05/0.3918, allocations: 3.828 kB / 0.5861 GB, free: 9.973 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04106/0.4328, allocations: 27.6 MB / 0.613 GB, free: 14.32 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.4328, allocations: 0 / 0.613 GB, free: 14.32 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4328, allocations: 0 / 0.613 GB, free: 14.32 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.4328, allocations: 0 / 0.613 GB, free: 14.32 MB / 462.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.008562/0.4414, allocations: 0.6006 MB / 0.6136 GB, free: 13.69 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.4414, allocations: 11.97 kB / 0.6136 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.689e-05/0.4415, allocations: 38.69 kB / 0.6137 GB, free: 13.63 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.776e-05/0.4415, allocations: 4.938 kB / 0.6137 GB, free: 13.63 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.387e-05/0.4416, allocations: 109.2 kB / 0.6138 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.395e-06/0.4416, allocations: 0 / 0.6138 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.4416, allocations: 0 / 0.6138 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.567e-05/0.4417, allocations: 33.64 kB / 0.6138 GB, free: 13.46 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.4417, allocations: 0 / 0.6138 GB, free: 13.46 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.4417, allocations: 3.984 kB / 0.6138 GB, free: 13.45 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.4417, allocations: 0 / 0.6138 GB, free: 13.45 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.912e-05/0.4418, allocations: 4 kB / 0.6138 GB, free: 13.45 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001385/0.4419, allocations: 124.6 kB / 0.6139 GB, free: 13.29 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.762e-05/0.442, allocations: 22.61 kB / 0.614 GB, free: 13.25 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.61e-05/0.442, allocations: 4.859 kB / 0.614 GB, free: 13.25 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.442, allocations: 3.984 kB / 0.614 GB, free: 13.24 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.897e-05/0.442, allocations: 60.25 kB / 0.614 GB, free: 13.17 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.442, allocations: 3.938 kB / 0.614 GB, free: 13.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001901/0.4422, allocations: 67.45 kB / 0.6141 GB, free: 13.09 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.4423, allocations: 77.11 kB / 0.6142 GB, free: 12.99 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.837e-05/0.4423, allocations: 93.86 kB / 0.6143 GB, free: 12.89 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.505e-05/0.4423, allocations: 29.7 kB / 0.6143 GB, free: 12.86 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.733e-05/0.4424, allocations: 80.14 kB / 0.6144 GB, free: 12.77 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.898e-05/0.4424, allocations: 0 / 0.6144 GB, free: 12.77 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.823e-05/0.4424, allocations: 13.7 kB / 0.6144 GB, free: 12.75 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.4426, allocations: 318.8 kB / 0.6147 GB, free: 12.43 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.956e-06/0.4426, allocations: 4.125 kB / 0.6147 GB, free: 12.43 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.669e-06/0.4426, allocations: 0 / 0.6147 GB, free: 12.43 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.772e-05/0.4426, allocations: 68.2 kB / 0.6148 GB, free: 12.35 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4426, allocations: 0 / 0.6148 GB, free: 12.35 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.817e-05/0.4427, allocations: 63.39 kB / 0.6148 GB, free: 12.27 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/0.4427, allocations: 29.7 kB / 0.6148 GB, free: 12.24 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.4428, allocations: 0 / 0.6148 GB, free: 12.24 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.4428, allocations: 0 / 0.6148 GB, free: 12.24 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.4428, allocations: 0 / 0.6148 GB, free: 12.24 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.4428, allocations: 8.094 kB / 0.6148 GB, free: 12.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.742e-05/0.4428, allocations: 3.938 kB / 0.6149 GB, free: 12.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.4428, allocations: 3.938 kB / 0.6149 GB, free: 12.22 MB / 462.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.639e-05/0.4429, allocations: 131.5 kB / 0.615 GB, free: 12.08 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.816e-06/0.4429, allocations: 8 kB / 0.615 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.9e-05/0.4429, allocations: 10.98 kB / 0.615 GB, free: 12.06 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.4429, allocations: 0 / 0.615 GB, free: 12.06 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.4429, allocations: 0 / 0.615 GB, free: 12.06 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4429, allocations: 3.938 kB / 0.615 GB, free: 12.05 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.459e-05/0.443, allocations: 124.7 kB / 0.6151 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.443, allocations: 0 / 0.6151 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.443, allocations: 0 / 0.6151 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.443, allocations: 3.938 kB / 0.6151 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-06/0.443, allocations: 0 / 0.6151 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.443, allocations: 0 / 0.6151 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.443, allocations: 3.984 kB / 0.6151 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001045/0.4431, allocations: 90.78 kB / 0.6152 GB, free: 11.77 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.676e-06/0.4431, allocations: 4.031 kB / 0.6152 GB, free: 11.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.54e-05/0.4432, allocations: 7.984 kB / 0.6152 GB, free: 11.76 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.744e-06/0.4432, allocations: 0 / 0.6152 GB, free: 11.76 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.34e-05/0.4432, allocations: 0 / 0.6152 GB, free: 11.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.4432, allocations: 3.938 kB / 0.6152 GB, free: 11.75 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.218e-05/0.4432, allocations: 75.28 kB / 0.6153 GB, free: 11.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4432, allocations: 0 / 0.6153 GB, free: 11.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01103/0.4542, allocations: 3.787 MB / 0.619 GB, free: 7.891 MB / 462.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.02042/0.4747, allocations: 1.521 MB / 0.6205 GB, free: 6.355 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001508/0.4748, allocations: 55.41 kB / 0.6205 GB, free: 6.289 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4748, allocations: 0 / 0.6205 GB, free: 6.289 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 4.223e-05/0.4749, allocations: 59.41 kB / 0.6206 GB, free: 6.219 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001493/0.475, allocations: 18.34 kB / 0.6206 GB, free: 6.203 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007551/0.4826, allocations: 340.9 kB / 0.6209 GB, free: 5.828 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.4829, allocations: 0.6729 MB / 0.6216 GB, free: 5.129 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 7.955e-06/0.4829, allocations: 0 / 0.6216 GB, free: 5.129 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.936e-05/0.483, allocations: 7.438 kB / 0.6216 GB, free: 5.121 MB / 462.1 MB Notification: Performance of SimCode: time 1.232e-06/0.483, allocations: 4 kB / 0.6216 GB, free: 5.117 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2059/0.6889, allocations: 113.9 MB / 0.7329 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.03/19.72, allocations: 10.22 kB / 0.7329 GB, free: 3.074 MB / 0.5606 GB " [Timeout remaining time 640] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 22.87730429200019] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 19.862730459994054 20.125652371 19.690369301 Calling exit ...