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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001481/0.001481, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001609/0.001609, allocations: 209.9 kB / 24.54 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 230.5 MB / 258.2 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2217/0.2217, allocations: 46.93 MB / 361.6 MB, free: 4.293 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.00352/0.00352, allocations: 87.84 kB / 0.497 GB, free: 7.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3248, allocations: 66.08 MB / 0.5615 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001525/0.3263, allocations: 492.4 kB / 0.562 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007212/0.3335, allocations: 4.963 MB / 0.5668 GB, free: 14.85 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.52e-05/0.3335, allocations: 4 kB / 0.5668 GB, free: 14.85 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.542e-05/0.3336, allocations: 0 / 0.5668 GB, free: 14.85 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.581e-06/0.3336, allocations: 0 / 0.5668 GB, free: 14.85 MB / 414.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.007309/0.3409, allocations: 3.274 MB / 0.57 GB, free: 11.58 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.324e-05/0.3409, allocations: 4 kB / 0.57 GB, free: 11.57 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.877e-05/0.341, allocations: 0 / 0.57 GB, free: 11.57 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.336e-05/0.341, allocations: 0 / 0.57 GB, free: 11.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.764e-05/0.341, allocations: 3.984 kB / 0.57 GB, free: 11.57 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.162e-06/0.341, allocations: 0 / 0.57 GB, free: 11.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03111/0.3721, allocations: 21.05 MB / 0.5906 GB, free: 6.5 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.209e-05/0.3721, allocations: 0 / 0.5906 GB, free: 6.5 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.216e-05/0.3722, allocations: 15.92 kB / 0.5906 GB, free: 6.484 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03949/0.4116, allocations: 27.6 MB / 0.6175 GB, free: 10.84 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.4117, allocations: 0 / 0.6175 GB, free: 10.84 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4117, allocations: 0 / 0.6175 GB, free: 10.84 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.4117, allocations: 0 / 0.6175 GB, free: 10.84 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.007234/0.4189, allocations: 0.5983 MB / 0.6181 GB, free: 10.2 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.4189, allocations: 8.031 kB / 0.6181 GB, free: 10.19 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.23e-05/0.419, allocations: 34.69 kB / 0.6182 GB, free: 10.15 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.199e-05/0.419, allocations: 0.9375 kB / 0.6182 GB, free: 10.15 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.28e-05/0.4191, allocations: 113.7 kB / 0.6183 GB, free: 10.01 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.4191, allocations: 7.938 kB / 0.6183 GB, free: 10 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.4191, allocations: 0 / 0.6183 GB, free: 10 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.931e-05/0.4192, allocations: 29.7 kB / 0.6183 GB, free: 9.969 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.4192, allocations: 3.938 kB / 0.6183 GB, free: 9.965 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.713e-06/0.4192, allocations: 0 / 0.6183 GB, free: 9.965 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.4192, allocations: 0 / 0.6183 GB, free: 9.965 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.628e-05/0.4192, allocations: 0 / 0.6183 GB, free: 9.965 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001331/0.4194, allocations: 128.6 kB / 0.6184 GB, free: 9.797 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.545e-05/0.4194, allocations: 22.56 kB / 0.6185 GB, free: 9.766 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.476e-05/0.4194, allocations: 4.859 kB / 0.6185 GB, free: 9.758 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.734e-06/0.4194, allocations: 4.094 kB / 0.6185 GB, free: 9.754 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.019e-05/0.4195, allocations: 56.27 kB / 0.6185 GB, free: 9.684 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.4195, allocations: 0 / 0.6185 GB, free: 9.684 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001675/0.4197, allocations: 67.34 kB / 0.6186 GB, free: 9.605 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/0.4197, allocations: 81.09 kB / 0.6187 GB, free: 9.508 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.952e-05/0.4198, allocations: 93.98 kB / 0.6187 GB, free: 9.406 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.4198, allocations: 25.7 kB / 0.6188 GB, free: 9.375 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.328e-05/0.4198, allocations: 80.14 kB / 0.6188 GB, free: 9.293 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.4198, allocations: 4 kB / 0.6189 GB, free: 9.289 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.681e-05/0.4199, allocations: 9.719 kB / 0.6189 GB, free: 9.273 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.42, allocations: 318.8 kB / 0.6192 GB, free: 8.953 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.116e-06/0.42, allocations: 0 / 0.6192 GB, free: 8.953 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.599e-06/0.42, allocations: 4 kB / 0.6192 GB, free: 8.949 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.736e-05/0.4201, allocations: 72.27 kB / 0.6192 GB, free: 8.863 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.4201, allocations: 0 / 0.6192 GB, free: 8.863 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.27e-05/0.4201, allocations: 59.39 kB / 0.6193 GB, free: 8.793 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.984e-05/0.4202, allocations: 37.7 kB / 0.6193 GB, free: 8.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.4202, allocations: 0 / 0.6193 GB, free: 8.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.4202, allocations: 0 / 0.6193 GB, free: 8.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.4202, allocations: 0 / 0.6193 GB, free: 8.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.887e-06/0.4202, allocations: 0 / 0.6193 GB, free: 8.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.562e-05/0.4202, allocations: 0 / 0.6193 GB, free: 8.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.313e-06/0.4202, allocations: 8.031 kB / 0.6193 GB, free: 8.742 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.788e-05/0.4203, allocations: 143.4 kB / 0.6195 GB, free: 8.586 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.895e-06/0.4203, allocations: 0 / 0.6195 GB, free: 8.586 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.054e-05/0.4203, allocations: 3 kB / 0.6195 GB, free: 8.582 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.4203, allocations: 4 kB / 0.6195 GB, free: 8.578 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.4203, allocations: 0 / 0.6195 GB, free: 8.578 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.4203, allocations: 0 / 0.6195 GB, free: 8.578 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.482e-05/0.4204, allocations: 120.7 kB / 0.6196 GB, free: 8.418 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.4204, allocations: 0 / 0.6196 GB, free: 8.418 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.4204, allocations: 4 kB / 0.6196 GB, free: 8.414 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.4204, allocations: 7.938 kB / 0.6196 GB, free: 8.406 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-06/0.4204, allocations: 0 / 0.6196 GB, free: 8.406 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.4204, allocations: 3.938 kB / 0.6196 GB, free: 8.402 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.4204, allocations: 0 / 0.6196 GB, free: 8.402 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001085/0.4205, allocations: 98.75 kB / 0.6197 GB, free: 8.281 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.641e-06/0.4205, allocations: 4 kB / 0.6197 GB, free: 8.277 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.112e-05/0.4206, allocations: 0 / 0.6197 GB, free: 8.277 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.656e-06/0.4206, allocations: 4.031 kB / 0.6197 GB, free: 8.273 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.178e-05/0.4206, allocations: 4 kB / 0.6197 GB, free: 8.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/0.4206, allocations: 3.984 kB / 0.6197 GB, free: 8.266 MB / 462.1 MB Notification: Performance of sorting global known variables: time 2.966e-05/0.4206, allocations: 75.28 kB / 0.6198 GB, free: 8.191 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4206, allocations: 0 / 0.6198 GB, free: 8.191 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01003/0.4306, allocations: 3.784 MB / 0.6235 GB, free: 4.406 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.01814/0.4488, allocations: 1.507 MB / 0.625 GB, free: 2.871 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001623/0.4489, allocations: 59.41 kB / 0.625 GB, free: 2.801 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4489, allocations: 0 / 0.625 GB, free: 2.801 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 4.468e-05/0.449, allocations: 63.33 kB / 0.6251 GB, free: 2.727 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00013/0.4491, allocations: 6.891 kB / 0.6251 GB, free: 2.723 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005423/0.4545, allocations: 349 kB / 0.6254 GB, free: 2.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.4548, allocations: 0.6729 MB / 0.6261 GB, free: 1.641 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 6.422e-06/0.4548, allocations: 0 / 0.6261 GB, free: 1.641 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.336e-05/0.4549, allocations: 11.44 kB / 0.6261 GB, free: 1.629 MB / 462.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4549, allocations: 0 / 0.6261 GB, free: 1.629 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4134/0.8682, allocations: 113.8 MB / 0.7373 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.44/16.31, allocations: 1.625 kB / 0.7373 GB, free: 156.9 MB / 0.5606 GB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.091695668641478] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 16.42253596102819 16.439941852 16.024885762 Calling exit ...