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.001819/0.001819, allocations: 121 kB / 18.5 MB, free: 4.562 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.002264/0.002264, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.489/1.489, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.248/0.248, allocations: 44.9 MB / 355.8 MB, free: 12.29 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.001924/0.001924, allocations: 69.92 kB / 0.4885 GB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1175, allocations: 65.42 MB / 0.5524 GB, free: 10.12 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001737/0.1192, allocations: 485 kB / 0.5529 GB, free: 9.648 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008263/0.1275, allocations: 4.925 MB / 0.5577 GB, free: 4.695 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.327e-05/0.1275, allocations: 4 kB / 0.5577 GB, free: 4.691 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.266e-05/0.1275, allocations: 0 / 0.5577 GB, free: 4.691 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.642e-06/0.1276, allocations: 0 / 0.5577 GB, free: 4.691 MB / 414.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.00697/0.1345, allocations: 2.932 MB / 0.5606 GB, free: 1.77 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.744e-05/0.1346, allocations: 4 kB / 0.5606 GB, free: 1.766 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.966e-05/0.1346, allocations: 0 / 0.5606 GB, free: 1.766 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.516e-05/0.1346, allocations: 7.984 kB / 0.5606 GB, free: 1.758 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.453e-05/0.1346, allocations: 0 / 0.5606 GB, free: 1.758 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.52e-06/0.1346, allocations: 0 / 0.5606 GB, free: 1.758 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02984/0.1645, allocations: 19.57 MB / 0.5797 GB, free: 14.17 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.281e-05/0.1645, allocations: 4 kB / 0.5797 GB, free: 14.17 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.935e-05/0.1645, allocations: 3.984 kB / 0.5797 GB, free: 14.16 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2824/0.4469, allocations: 27.47 MB / 0.6065 GB, free: 21.03 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.224e-05/0.4469, allocations: 5.625 kB / 0.6065 GB, free: 21.03 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.4469, allocations: 0 / 0.6065 GB, free: 21.03 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.4469, allocations: 1.406 kB / 0.6065 GB, free: 21.03 MB / 446.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.02021/0.4671, allocations: 0.6678 MB / 0.6072 GB, free: 20.46 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.4672, allocations: 9.656 kB / 0.6072 GB, free: 20.46 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.313e-05/0.4672, allocations: 1.594 kB / 0.6072 GB, free: 20.46 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.578e-05/0.4672, allocations: 37.89 kB / 0.6072 GB, free: 20.42 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.02e-05/0.4672, allocations: 1.688 kB / 0.6072 GB, free: 20.42 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.104e-05/0.4673, allocations: 168.2 kB / 0.6074 GB, free: 20.22 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.968e-06/0.4673, allocations: 0 / 0.6074 GB, free: 20.22 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.524e-06/0.4673, allocations: 1.656 kB / 0.6074 GB, free: 20.22 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.747e-05/0.4674, allocations: 29.98 kB / 0.6074 GB, free: 20.19 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.4674, allocations: 6.047 kB / 0.6074 GB, free: 20.19 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.652e-06/0.4674, allocations: 1.281 kB / 0.6074 GB, free: 20.19 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.4674, allocations: 0 / 0.6074 GB, free: 20.19 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.653e-05/0.4674, allocations: 1.125 kB / 0.6074 GB, free: 20.19 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.426e-05/0.4675, allocations: 153.8 kB / 0.6076 GB, free: 20 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.838e-05/0.4676, allocations: 19.27 kB / 0.6076 GB, free: 19.97 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.157e-05/0.4676, allocations: 6.922 kB / 0.6076 GB, free: 19.96 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.569e-06/0.4676, allocations: 2.219 kB / 0.6076 GB, free: 19.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.4676, allocations: 64.23 kB / 0.6077 GB, free: 19.89 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.4676, allocations: 0 / 0.6077 GB, free: 19.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001786/0.4678, allocations: 62.56 kB / 0.6077 GB, free: 19.83 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.339e-05/0.4678, allocations: 78.8 kB / 0.6078 GB, free: 19.74 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.805e-05/0.4678, allocations: 94.77 kB / 0.6079 GB, free: 19.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.681e-06/0.4678, allocations: 25.7 kB / 0.6079 GB, free: 19.61 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.859e-06/0.4679, allocations: 82.3 kB / 0.608 GB, free: 19.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/0.4679, allocations: 7.016 kB / 0.608 GB, free: 19.53 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.267e-05/0.4679, allocations: 13.16 kB / 0.608 GB, free: 19.51 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.175e-05/0.4679, allocations: 315.8 kB / 0.6083 GB, free: 19.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.157e-06/0.4679, allocations: 1.75 kB / 0.6083 GB, free: 19.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.911e-06/0.468, allocations: 2.125 kB / 0.6083 GB, free: 19.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.601e-05/0.468, allocations: 67.38 kB / 0.6084 GB, free: 19.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.468, allocations: 4.312 kB / 0.6084 GB, free: 19.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.419e-05/0.468, allocations: 61.38 kB / 0.6084 GB, free: 19.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.68e-05/0.4681, allocations: 31.86 kB / 0.6085 GB, free: 19.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.878e-06/0.4681, allocations: 0 / 0.6085 GB, free: 19.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.4681, allocations: 1.062 kB / 0.6085 GB, free: 19.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.4681, allocations: 0 / 0.6085 GB, free: 19.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.4681, allocations: 2.578 kB / 0.6085 GB, free: 19.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.591e-05/0.4681, allocations: 6.562 kB / 0.6085 GB, free: 19.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.243e-06/0.4681, allocations: 5 kB / 0.6085 GB, free: 19.02 MB / 446.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 5.308e-05/0.4682, allocations: 146.7 kB / 0.6086 GB, free: 18.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.566e-06/0.4682, allocations: 1.125 kB / 0.6086 GB, free: 18.88 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.997e-06/0.4682, allocations: 4.062 kB / 0.6086 GB, free: 18.88 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.4682, allocations: 2.812 kB / 0.6086 GB, free: 18.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.4682, allocations: 3.625 kB / 0.6086 GB, free: 18.88 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-06/0.4682, allocations: 0 / 0.6086 GB, free: 18.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.958e-05/0.4682, allocations: 151.5 kB / 0.6088 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.4682, allocations: 0 / 0.6088 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-07/0.4682, allocations: 4.531 kB / 0.6088 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.4682, allocations: 0 / 0.6088 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.443e-06/0.4683, allocations: 0.9688 kB / 0.6088 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.4683, allocations: 2.719 kB / 0.6088 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4683, allocations: 1.062 kB / 0.6088 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.782e-05/0.4683, allocations: 94.36 kB / 0.6089 GB, free: 18.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.374e-05/0.4683, allocations: 78.36 kB / 0.609 GB, free: 18.49 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.4684, allocations: 1.75 kB / 0.609 GB, free: 18.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.456e-06/0.4684, allocations: 0 / 0.609 GB, free: 18.49 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.022e-05/0.4684, allocations: 6.891 kB / 0.609 GB, free: 18.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.4684, allocations: 2.375 kB / 0.609 GB, free: 18.49 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.137e-05/0.4684, allocations: 78.94 kB / 0.609 GB, free: 18.42 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4684, allocations: 1.25 kB / 0.609 GB, free: 18.42 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.02437/0.4928, allocations: 3.786 MB / 0.6127 GB, free: 18.32 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.04517/0.5379, allocations: 1.513 MB / 0.6142 GB, free: 17.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001595/0.5381, allocations: 69.94 kB / 0.6143 GB, free: 17.49 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.5381, allocations: 0 / 0.6143 GB, free: 17.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.097e-05/0.5381, allocations: 54.72 kB / 0.6143 GB, free: 17.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001589/0.5383, allocations: 6.969 kB / 0.6143 GB, free: 17.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01806/0.5563, allocations: 347.9 kB / 0.6147 GB, free: 17.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.481e-05/0.5564, allocations: 0.669 MB / 0.6153 GB, free: 16.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.224e-06/0.5564, allocations: 0 / 0.6153 GB, free: 16.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.863e-05/0.5565, allocations: 10.5 kB / 0.6153 GB, free: 16.49 MB / 446.1 MB Notification: Performance of SimCode: time 1.253e-06/0.5565, allocations: 3.625 kB / 0.6153 GB, free: 16.49 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2023/0.7588, allocations: 113.9 MB / 0.7265 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.63/16.39, allocations: 14.39 kB / 0.7266 GB, free: 0.7812 MB / 0.5294 GB " [Timeout remaining time 643] (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: 19.38207237003371] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 16.552560254989658 16.567472638 16.11761026 Calling exit ...