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.001254/0.001254, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001524/0.001524, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.447/1.447, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.2858/0.2858, allocations: 44.92 MB / 358.8 MB, free: 6.254 MB / 286.1 MB " [Timeout remaining time 179] 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.002287/0.002287, allocations: 63.91 kB / 0.4931 GB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3434, allocations: 65.48 MB / 0.557 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001604/0.345, allocations: 0.4955 MB / 0.5575 GB, free: 7.156 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008341/0.3534, allocations: 4.95 MB / 0.5623 GB, free: 2.293 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.013e-05/0.3534, allocations: 0 / 0.5623 GB, free: 2.293 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.818e-05/0.3534, allocations: 4 kB / 0.5623 GB, free: 2.289 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.742e-06/0.3534, allocations: 0 / 0.5623 GB, free: 2.289 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.008366/0.3618, allocations: 3.263 MB / 0.5655 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.644e-05/0.3618, allocations: 4 kB / 0.5655 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.652e-05/0.3619, allocations: 3.984 kB / 0.5655 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.655e-05/0.3619, allocations: 3.984 kB / 0.5655 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.646e-05/0.3619, allocations: 0 / 0.5655 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.901e-06/0.3619, allocations: 0 / 0.5655 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03341/0.3953, allocations: 21.05 MB / 0.5861 GB, free: 9.949 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.546e-05/0.3953, allocations: 0 / 0.5861 GB, free: 9.949 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.58e-05/0.3954, allocations: 11.98 kB / 0.5861 GB, free: 9.938 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03881/0.4342, allocations: 27.6 MB / 0.6131 GB, free: 14.29 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.4342, allocations: 0 / 0.6131 GB, free: 14.29 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4342, allocations: 0 / 0.6131 GB, free: 14.29 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.4342, allocations: 0 / 0.6131 GB, free: 14.29 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.007533/0.4417, allocations: 0.6021 MB / 0.6136 GB, free: 13.65 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/0.4418, allocations: 8.031 kB / 0.6136 GB, free: 13.64 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.087e-05/0.4418, allocations: 30.75 kB / 0.6137 GB, free: 13.6 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.647e-05/0.4419, allocations: 4.875 kB / 0.6137 GB, free: 13.6 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.896e-05/0.442, allocations: 109.2 kB / 0.6138 GB, free: 13.46 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.985e-06/0.442, allocations: 4 kB / 0.6138 GB, free: 13.46 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.442, allocations: 0 / 0.6138 GB, free: 13.46 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.187e-05/0.4421, allocations: 33.69 kB / 0.6138 GB, free: 13.42 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.4421, allocations: 0 / 0.6138 GB, free: 13.42 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.524e-06/0.4421, allocations: 0 / 0.6138 GB, free: 13.42 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.4421, allocations: 0 / 0.6138 GB, free: 13.42 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.754e-05/0.4421, allocations: 0 / 0.6138 GB, free: 13.42 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000152/0.4423, allocations: 132.6 kB / 0.6139 GB, free: 13.25 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.335e-05/0.4423, allocations: 18.58 kB / 0.614 GB, free: 13.22 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.759e-05/0.4423, allocations: 8.953 kB / 0.614 GB, free: 13.21 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.158e-06/0.4423, allocations: 0 / 0.614 GB, free: 13.21 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.679e-05/0.4424, allocations: 60.25 kB / 0.614 GB, free: 13.14 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.4424, allocations: 0 / 0.614 GB, free: 13.14 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001856/0.4426, allocations: 67.34 kB / 0.6141 GB, free: 13.06 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.4426, allocations: 77.11 kB / 0.6142 GB, free: 12.96 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.118e-05/0.4427, allocations: 93.98 kB / 0.6143 GB, free: 12.86 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.4427, allocations: 25.7 kB / 0.6143 GB, free: 12.83 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.322e-05/0.4427, allocations: 84.08 kB / 0.6144 GB, free: 12.75 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.124e-05/0.4427, allocations: 4 kB / 0.6144 GB, free: 12.74 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.04e-05/0.4428, allocations: 13.7 kB / 0.6144 GB, free: 12.72 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.4429, allocations: 318.8 kB / 0.6147 GB, free: 12.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.185e-05/0.4429, allocations: 4 kB / 0.6147 GB, free: 12.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.422e-06/0.4429, allocations: 0 / 0.6147 GB, free: 12.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.595e-05/0.443, allocations: 64.33 kB / 0.6148 GB, free: 12.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.443, allocations: 0 / 0.6148 GB, free: 12.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.397e-05/0.4431, allocations: 63.33 kB / 0.6148 GB, free: 12.25 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.578e-05/0.4431, allocations: 33.7 kB / 0.6148 GB, free: 12.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.4431, allocations: 0 / 0.6148 GB, free: 12.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.4431, allocations: 0 / 0.6148 GB, free: 12.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.4431, allocations: 0 / 0.6148 GB, free: 12.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.4431, allocations: 0 / 0.6148 GB, free: 12.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.084e-05/0.4432, allocations: 7.938 kB / 0.6149 GB, free: 12.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.4432, allocations: 8.031 kB / 0.6149 GB, free: 12.19 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.0001005/0.4433, allocations: 135.5 kB / 0.615 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.008e-05/0.4433, allocations: 7.922 kB / 0.615 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.105e-05/0.4433, allocations: 7 kB / 0.615 GB, free: 12.03 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.4433, allocations: 0 / 0.615 GB, free: 12.03 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.4433, allocations: 0 / 0.615 GB, free: 12.03 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.4433, allocations: 3.938 kB / 0.615 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.558e-05/0.4434, allocations: 116.8 kB / 0.6151 GB, free: 11.87 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.4434, allocations: 0 / 0.6151 GB, free: 11.87 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.4434, allocations: 4 kB / 0.6151 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.4434, allocations: 4 kB / 0.6151 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.659e-06/0.4434, allocations: 3.984 kB / 0.6151 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.4434, allocations: 0 / 0.6151 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4434, allocations: 0 / 0.6151 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001031/0.4435, allocations: 94.72 kB / 0.6152 GB, free: 11.74 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.452e-06/0.4435, allocations: 3.984 kB / 0.6152 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.4435, allocations: 0 / 0.6152 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.097e-05/0.4435, allocations: 8.031 kB / 0.6152 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.734e-05/0.4436, allocations: 7.984 kB / 0.6152 GB, free: 11.72 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-06/0.4436, allocations: 3.938 kB / 0.6152 GB, free: 11.71 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.061e-05/0.4436, allocations: 75.28 kB / 0.6153 GB, free: 11.64 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4436, allocations: 0 / 0.6153 GB, free: 11.64 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01012/0.4537, allocations: 3.784 MB / 0.619 GB, free: 7.855 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.0219/0.4756, allocations: 1.513 MB / 0.6205 GB, free: 6.328 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000148/0.4758, allocations: 63.34 kB / 0.6205 GB, free: 6.254 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4758, allocations: 0 / 0.6205 GB, free: 6.254 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 4.575e-05/0.4758, allocations: 55.41 kB / 0.6206 GB, free: 6.188 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001451/0.476, allocations: 7.875 kB / 0.6206 GB, free: 6.18 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008602/0.4846, allocations: 349 kB / 0.6209 GB, free: 5.797 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.4849, allocations: 0.669 MB / 0.6216 GB, free: 5.102 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 8.196e-06/0.4849, allocations: 0 / 0.6216 GB, free: 5.102 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.267e-05/0.4849, allocations: 19.36 kB / 0.6216 GB, free: 5.082 MB / 462.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4849, allocations: 0 / 0.6216 GB, free: 5.082 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2037/0.6886, allocations: 113.9 MB / 0.7329 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.97/19.65, allocations: 8.844 kB / 0.7329 GB, free: 3.043 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 & /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.789434537058696] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 19.7948371830862 20.025806903 19.589143689 Calling exit ...