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.0016/0.0016, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.00195/0.00195, allocations: 201.2 kB / 24.52 MB, free: 4.156 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.425/1.425, allocations: 230.6 MB / 258.3 MB, free: 8.031 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.2242/0.2242, allocations: 44.92 MB / 359.6 MB, free: 6.316 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2",fmuType="cs",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.001983/0.001983, allocations: 63.91 kB / 0.4938 GB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3432, allocations: 65.48 MB / 0.5578 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001536/0.3448, allocations: 489.3 kB / 0.5583 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008253/0.353, allocations: 4.964 MB / 0.5631 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.412e-05/0.353, allocations: 0 / 0.5631 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.09e-05/0.3531, allocations: 0 / 0.5631 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.563e-06/0.3531, allocations: 3.938 kB / 0.5631 GB, free: 2.344 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.008291/0.3614, allocations: 3.255 MB / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.447e-05/0.3614, allocations: 7.984 kB / 0.5663 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.3e-05/0.3615, allocations: 0 / 0.5663 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.628e-05/0.3615, allocations: 3.984 kB / 0.5663 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.452e-05/0.3615, allocations: 0 / 0.5663 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.98e-06/0.3615, allocations: 0 / 0.5663 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03416/0.3956, allocations: 21.05 MB / 0.5868 GB, free: 10 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.379e-05/0.3957, allocations: 0 / 0.5868 GB, free: 10 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.058e-05/0.3957, allocations: 15.75 kB / 0.5869 GB, free: 9.992 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04003/0.4357, allocations: 27.6 MB / 0.6138 GB, free: 14.34 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.05e-05/0.4357, allocations: 0 / 0.6138 GB, free: 14.34 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4357, allocations: 0 / 0.6138 GB, free: 14.34 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.4357, allocations: 0 / 0.6138 GB, free: 14.34 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.01028/0.446, allocations: 0.5982 MB / 0.6144 GB, free: 13.71 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/0.4461, allocations: 11.97 kB / 0.6144 GB, free: 13.7 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.689e-05/0.4461, allocations: 4.188 kB / 0.6144 GB, free: 13.7 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.804e-05/0.4461, allocations: 30.75 kB / 0.6144 GB, free: 13.66 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.701e-05/0.4462, allocations: 8.688 kB / 0.6145 GB, free: 13.65 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.492e-05/0.4462, allocations: 105.2 kB / 0.6146 GB, free: 13.52 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-06/0.4463, allocations: 0 / 0.6146 GB, free: 13.52 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.4463, allocations: 3.938 kB / 0.6146 GB, free: 13.52 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.922e-05/0.4464, allocations: 33.69 kB / 0.6146 GB, free: 13.48 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.4464, allocations: 0 / 0.6146 GB, free: 13.48 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-06/0.4464, allocations: 0 / 0.6146 GB, free: 13.48 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.4464, allocations: 4 kB / 0.6146 GB, free: 13.47 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.727e-05/0.4464, allocations: 7.938 kB / 0.6146 GB, free: 13.46 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001583/0.4466, allocations: 120.7 kB / 0.6147 GB, free: 13.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.976e-05/0.4466, allocations: 14.58 kB / 0.6147 GB, free: 13.28 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.994e-05/0.4466, allocations: 16.88 kB / 0.6147 GB, free: 13.26 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.755e-06/0.4467, allocations: 0 / 0.6147 GB, free: 13.26 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.307e-05/0.4467, allocations: 56.27 kB / 0.6148 GB, free: 13.19 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.4467, allocations: 4 kB / 0.6148 GB, free: 13.19 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.000205/0.4469, allocations: 63.41 kB / 0.6149 GB, free: 13.11 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.249e-05/0.447, allocations: 77.11 kB / 0.6149 GB, free: 13.02 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.575e-05/0.447, allocations: 97.78 kB / 0.615 GB, free: 12.91 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.447, allocations: 25.7 kB / 0.6151 GB, free: 12.88 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.59e-05/0.4471, allocations: 84.14 kB / 0.6151 GB, free: 12.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.4471, allocations: 0 / 0.6151 GB, free: 12.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/0.4471, allocations: 9.719 kB / 0.6151 GB, free: 12.78 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.4473, allocations: 319 kB / 0.6154 GB, free: 12.46 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.176e-05/0.4473, allocations: 7.938 kB / 0.6155 GB, free: 12.45 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.701e-06/0.4473, allocations: 0 / 0.6155 GB, free: 12.45 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.581e-05/0.4474, allocations: 60.27 kB / 0.6155 GB, free: 12.38 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.4474, allocations: 0 / 0.6155 GB, free: 12.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.814e-05/0.4474, allocations: 63.39 kB / 0.6156 GB, free: 12.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.612e-05/0.4475, allocations: 33.7 kB / 0.6156 GB, free: 12.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.4475, allocations: 0 / 0.6156 GB, free: 12.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.4475, allocations: 8.078 kB / 0.6156 GB, free: 12.26 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.4475, allocations: 0 / 0.6156 GB, free: 12.26 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.4475, allocations: 0 / 0.6156 GB, free: 12.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.871e-05/0.4475, allocations: 11.88 kB / 0.6156 GB, free: 12.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.4475, allocations: 4 kB / 0.6156 GB, free: 12.24 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 0.0001029/0.4476, allocations: 139.5 kB / 0.6158 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.819e-06/0.4476, allocations: 4 kB / 0.6158 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.142e-05/0.4476, allocations: 3 kB / 0.6158 GB, free: 12.08 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.4476, allocations: 0 / 0.6158 GB, free: 12.08 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.4477, allocations: 4 kB / 0.6158 GB, free: 12.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.4477, allocations: 3.938 kB / 0.6158 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.831e-05/0.4478, allocations: 120.8 kB / 0.6159 GB, free: 11.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.4478, allocations: 3.984 kB / 0.6159 GB, free: 11.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.4478, allocations: 3.938 kB / 0.6159 GB, free: 11.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.4478, allocations: 0 / 0.6159 GB, free: 11.91 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.4478, allocations: 0 / 0.6159 GB, free: 11.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.4478, allocations: 0 / 0.6159 GB, free: 11.91 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.4478, allocations: 0 / 0.6159 GB, free: 11.91 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001074/0.4479, allocations: 98.77 kB / 0.616 GB, free: 11.79 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.121e-06/0.4479, allocations: 4 kB / 0.616 GB, free: 11.78 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.4479, allocations: 4 kB / 0.616 GB, free: 11.78 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.536e-06/0.4479, allocations: 0 / 0.616 GB, free: 11.78 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.811e-05/0.4479, allocations: 3.938 kB / 0.616 GB, free: 11.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.4479, allocations: 0 / 0.616 GB, free: 11.77 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.41e-05/0.448, allocations: 79.22 kB / 0.6161 GB, free: 11.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 6e-08/0.448, allocations: 0 / 0.6161 GB, free: 11.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01183/0.4598, allocations: 3.784 MB / 0.6198 GB, free: 7.91 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.02041/0.4802, allocations: 1.511 MB / 0.6213 GB, free: 6.387 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001693/0.4804, allocations: 63.34 kB / 0.6213 GB, free: 6.312 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.4804, allocations: 4.062 kB / 0.6213 GB, free: 6.309 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 4.609e-05/0.4804, allocations: 59.39 kB / 0.6214 GB, free: 6.238 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001508/0.4806, allocations: 3.938 kB / 0.6214 GB, free: 6.234 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009934/0.4905, allocations: 344.9 kB / 0.6217 GB, free: 5.855 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.4908, allocations: 0.6729 MB / 0.6224 GB, free: 5.156 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 7.885e-06/0.4908, allocations: 0 / 0.6224 GB, free: 5.156 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.895e-05/0.4909, allocations: 11.44 kB / 0.6224 GB, free: 5.145 MB / 462.1 MB Notification: Performance of SimCode: time 2.225e-06/0.4909, allocations: 0 / 0.6224 GB, free: 5.145 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1897/0.6806, allocations: 114 MB / 0.7337 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.28/18.96, allocations: 14.28 kB / 0.7337 GB, free: 3.086 MB / 0.5606 GB " [Timeout remaining time 641] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.072518300963566] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 19.162348504003603 19.406092175 18.96758618 Calling exit ...